Function at 0x425800
Capabilities:
Check os version
Contain obfuscated stackstrings
Get number of processors
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x48c3c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x380
push ebx
push ebp
push esi
push edi
xor esi, esi
push str.Config_rmServer.ini
lea eax, [esp + 0x14]
mov edi, ecx
push esi
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.Staff2.dll_class_CString___cdecl_STAFFGetInstancePathAndFilename_struct_HINSTANCE_____char_const__]
add esp, 0xc
mov ebx, 1
mov ecx, 3
mov eax, 4
mov dword [esp + 0x398], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], esi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ebx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x150], eax
mov dword [esp + 0x158], eax
mov dword [esp + 0x160], eax
mov eax, 6
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
mov eax, 7
mov dword [esp + 0x130], ebx
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], eax
mov dword [esp + 0x178], eax
mov dword [esp + 0x17c], eax
mov eax, 8
mov dword [esp + 0x134], ebx
mov dword [esp + 0x180], eax
mov dword [esp + 0x184], eax
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], eax
mov eax, 9
mov dword [esp + 0x138], ebx
mov dword [esp + 0x194], eax
mov dword [esp + 0x198], eax
mov dword [esp + 0x19c], eax
mov dword [esp + 0x1a0], eax
mov dword [esp + 0x1a4], eax
mov eax, 0xa
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x144], ebx
mov dword [esp + 0x148], ebx
mov dword [esp + 0x14c], ecx
mov dword [esp + 0x154], 5
mov dword [esp + 0x15c], 2
mov dword [esp + 0x16c], ebx
mov dword [esp + 0x190], ecx
mov dword [esp + 0x1a8], eax
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], eax
mov dword [esp + 0x1c0], eax
mov dword [esp + 0x1c4], eax
mov dword [esp + 0x1c8], eax
mov dword [esp + 0x1cc], eax
mov dword [esp + 0x1d0], eax
mov dword [esp + 0x1d4], eax
mov dword [esp + 0x1d8], eax
mov dword [esp + 0x1dc], eax
mov dword [esp + 0x1e0], eax
mov dword [esp + 0x1e4], eax
mov dword [esp + 0x1e8], ebx
mov dword [esp + 0x1ec], ebx
mov dword [esp + 0x1f0], ebx
mov dword [esp + 0x1f4], ebx
mov dword [esp + 0x1f8], ebx
mov dword [esp + 0x1fc], ebx
mov dword [esp + 0x200], ebx
mov dword [esp + 0x204], ebx
mov dword [esp + 0x208], ebx
mov dword [esp + 0x20c], ebx
mov dword [esp + 0x210], ebx
mov dword [esp + 0x214], ebx
mov dword [esp + 0x218], ebx
mov dword [esp + 0x21c], ebx
mov dword [esp + 0x220], ebx
mov dword [esp + 0x224], ebx
mov dword [esp + 0x228], ebx
mov dword [esp + 0x22c], ebx
mov dword [esp + 0x230], ebx
mov dword [esp + 0x234], ebx
mov dword [esp + 0x238], ebx
mov dword [esp + 0x23c], ebx
mov dword [esp + 0x240], ebx
mov dword [esp + 0x244], ebx
mov dword [esp + 0x248], ebx
mov dword [esp + 0x24c], ebx
mov dword [esp + 0x250], ebx
mov dword [esp + 0x254], ebx
mov dword [esp + 0x258], eax
mov dword [esp + 0x25c], eax
mov ebp, dword [esp + 0x3a4]
mov dword [esp + 0x260], eax
cmp bp, 0xbc
mov dword [esp + 0x264], eax
mov dword [esp + 0x268], eax
mov dword [esp + 0x26c], eax
mov dword [esp + 0x270], eax
mov dword [esp + 0x274], eax
mov dword [esp + 0x278], eax
mov dword [esp + 0x27c], eax
mov dword [esp + 0x280], eax
mov dword [esp + 0x284], eax
mov dword [esp + 0x288], eax
mov dword [esp + 0x28c], eax
mov dword [esp + 0x290], eax
mov dword [esp + 0x294], eax
mov dword [esp + 0x298], eax
mov dword [esp + 0x29c], eax
mov dword [esp + 0x2a0], eax
mov dword [esp + 0x2a4], eax
mov dword [esp + 0x2a8], eax
mov dword [esp + 0x2ac], eax
mov dword [esp + 0x2b0], eax
mov dword [esp + 0x2b4], eax
mov dword [esp + 0x2b8], eax
mov dword [esp + 0x2bc], eax
mov dword [esp + 0x2c0], eax
mov dword [esp + 0x2c4], eax
mov dword [esp + 0x2c8], eax
mov dword [esp + 0x2cc], eax
mov dword [esp + 0x2d0], eax
mov dword [esp + 0x2d4], eax
mov dword [esp + 0x2d8], eax
mov dword [esp + 0x2dc], eax
mov dword [esp + 0x2e0], eax
mov dword [esp + 0x2e4], eax
mov dword [esp + 0x2e8], eax
mov dword [esp + 0x2ec], eax
mov dword [esp + 0x2f0], eax
mov dword [esp + 0x2f4], eax
mov dword [esp + 0x2f8], ecx
mov dword [esp + 0x2fc], ecx
mov dword [esp + 0x300], ecx
mov dword [esp + 0x304], ebx
mov dword [esp + 0x308], ebx
mov dword [esp + 0x30c], ebx
mov dword [esp + 0x310], ebx
mov dword [esp + 0x314], ebx
mov dword [esp + 0x318], ebx
mov dword [esp + 0x31c], ebx
mov dword [esp + 0x320], ebx
mov dword [esp + 0x324], ebx
mov dword [esp + 0x328], ebx
mov word [esp + 0x1c], 0x29
mov word [esp + 0x1e], bx
mov word [esp + 0x20], 0x4a
mov word [esp + 0x22], cx
mov word [esp + 0x24], 0x24
mov word [esp + 0x26], 0x48
mov word [esp + 0x28], 0x4c
mov word [esp + 0x2a], 0x4f
mov word [esp + 0x2c], 0x53
mov word [esp + 0x2e], 0x58
mov word [esp + 0x30], 0x5d
jbe 0x425dd8
cmp dword [esp + 0x3a8], ebx
jne 0x425f71
push esi
push esi
push 0x75
jmp 0x425f6a
mov eax, dword [esp + 0x3a0]
cmp ax, 0xbc
ja 0x425f08
mov ecx, ebp
and eax, 0xffff
and ecx, 0xffff
mov eax, dword [esp + eax*4 + 0x34]
mov esi, dword [esp + ecx*4 + 0x34]
cmp esi, eax
jle 0x425f08
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
xor edx, edx
lea eax, [esp + 0x14]
mov dx, word [esp + esi*2 + 0x1c]
mov byte [esp + 0x398], bl
push edx
push 0x49b020
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x32c]
push ecx
push 0x64
push edx
push str.NoQuest
push eax
push str.MapQuest
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + 0x38f], 0
mov edi, str.NoQuest
lea esi, [esp + 0x32c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x425e90
test al, al
je 0x425e8c
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x425e90
add esi, 2
add edi, 2
test al, al
jne 0x425e68
xor eax, eax
jmp 0x425e95
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x425ef3
lea eax, [esp + 0x32c]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
mov ecx, dword [esp + 0x1c]
add esp, 4
test dword [ecx + 0x4170], eax
jne 0x425ef3
cmp dword [esp + 0x3a8], ebx
jne 0x425eca
push 0
push 0
push 0x75
call fcn.0043fc10
lea ecx, [esp + 0x14]
mov byte [esp + 0x398], 0
call fcn.00489b20
lea ecx, [esp + 0x10]
mov dword [esp + 0x398], 0xffffffff
call fcn.00489b20
xor eax, eax
jmp 0x425f40
lea ecx, [esp + 0x14]
mov byte [esp + 0x398], 0
call fcn.00489b20
mov edi, dword [esp + 0x18]
cmp bp, 0x4a
jne 0x425f2a
xor ecx, ecx
lea eax, [edi + 0x4176]
cmp byte [eax - 2], 5
jne 0x425f21
cmp word [eax], bx
je 0x425f5b
inc ecx
add eax, 0x10
cmp ecx, 5
jl 0x425f16
lea ecx, [esp + 0x10]
mov dword [esp + 0x398], 0xffffffff
call fcn.00489b20
mov eax, ebx
mov ecx, dword [esp + 0x390]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38c
ret 0xc
cmp dword [esp + 0x3a8], ebx
jne 0x425f71
push 0
push 0
push 0x76
mov ecx, edi
call fcn.0043fc10
lea ecx, [esp + 0x10]
mov dword [esp + 0x398], 0xffffffff
call fcn.00489b20
xor eax, eax
jmp 0x425f40