Function at 0x46b520
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486c2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x550
mov eax, dword [0x4b33f0]
mov dword [ebp - 0x18], eax
push esi
push edi
mov dword [ebp - 0x558], ecx
cmp dword [ebp + 8], 0
jne 0x46b55b
xor al, al
jmp 0x46b8c3
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 6]
cmp ecx, 0x33
jne 0x46b56e
mov al, 1
jmp 0x46b8c3
mov dx, word [0x49def4]
mov word [ebp - 0x434], dx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x432]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHService::GetWorkDirectory_wchar_t__const__unsigned_short_int_]
add esp, 8
mov cx, word [0x49def8]
mov word [ebp - 0x224], cx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [ebp - 0x434]
push edx
push str._sServerInfo.INI
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
mov byte [ebp - 0x43a], 0
jmp 0x46b5fa
mov cl, byte [ebp - 0x43a]
add cl, 1
mov byte [ebp - 0x43a], cl
movzx edx, byte [ebp - 0x43a]
cmp edx, 0xa
jge 0x46b69c
mov ax, word [0x49df20]
mov word [ebp - 0x544], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x542]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx ecx, byte [ebp - 0x43a]
add ecx, 1
push ecx
push str.GameID_d
push 0x80
lea edx, [ebp - 0x544]
push edx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x224]
push eax
push 0
lea ecx, [ebp - 0x544]
push ecx
push str.GameID
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x440], eax
mov edx, dword [ebp + 8]
movzx eax, word [edx + 6]
cmp eax, dword [ebp - 0x440]
jne 0x46b697
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 6]
push edx
mov ecx, dword [ebp - 0x558]
call fcn.0046bf70
mov al, 1
jmp 0x46b8c3
jmp 0x46b5eb
call dword [sym.imp.PlatformData.dll_public:_static_class_CGlobalUserInfo____cdecl_CGlobalUserInfo::GetInstance_void_]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
call dword [sym.imp.PlatformData.dll_public:_struct_tagGlobalUserData____thiscall_CGlobalUserInfo::GetGlobalUserData_void_]
mov esi, eax
mov ecx, dword [ebp - 0x228]
call dword [sym.imp.PlatformData.dll_public:_struct_tagGlobalUserData____thiscall_CGlobalUserInfo::GetGlobalUserData_void_]
mov ecx, dword [esi + 0x120]
add ecx, dword [eax + 0x118]
mov edx, dword [esi + 0x124]
adc edx, dword [eax + 0x11c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x438], 0
lea eax, [ebp - 0x438]
push eax
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 6]
push edx
mov ecx, dword [ebp - 0x558]
add ecx, 0x20
call fcn.004304d0
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x439], al
movzx eax, byte [ebp - 0x439]
cmp eax, 1
jne 0x46b78d
push 0xc0
call sub.MFC71U.DLL_CWordArray::CWordArray
add esp, 4
mov dword [ebp - 0x550], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x550], 0
je 0x46b754
mov ecx, dword [ebp - 0x550]
call fcn.0046a770
mov dword [ebp - 0x55c], eax
jmp 0x46b75e
mov dword [ebp - 0x55c], 0
mov ecx, dword [ebp - 0x55c]
mov dword [ebp - 0x54c], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x54c]
mov dword [ebp - 0x438], edx
cmp dword [ebp - 0x438], 0
jne 0x46b78d
xor al, al
jmp 0x46b8c3
movzx eax, byte [ebp - 0x439]
cmp eax, 1
jne 0x46b7c2
mov ecx, dword [ebp + 8]
add ecx, 0x57
mov dword [ebp - 0x548], ecx
mov edx, dword [ebp - 0x438]
add edx, 0xbc
push edx
mov eax, dword [ebp - 0x548]
push eax
call dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHService::GetModuleVersion_wchar_t_const___unsigned_long_int__]
add esp, 8
push 0x97
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x438]
add edx, 0x18
push edx
call sub.MSVCR71.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
mov cx, word [eax]
push ecx
mov ecx, dword [ebp - 0x558]
call fcn.0046c510
mov edx, dword [ebp - 0x438]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x438]
cmp dword [eax + 8], 0
jne 0x46b82f
mov ecx, dword [ebp - 0x438]
mov dword [ebp - 0x554], ecx
lea edx, [ebp - 0x554]
push edx
mov ecx, dword [ebp - 0x558]
add ecx, 0x90
call fcn.0044f6d0
mov al, 1
jmp 0x46b8c3
movzx eax, byte [ebp - 0x439]
cmp eax, 1
jne 0x46b88e
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 6]
push edx
mov ecx, dword [ebp - 0x558]
add ecx, 0x20
call fcn.0046cb00
mov ecx, dword [ebp - 0x438]
mov dword [eax], ecx
mov edx, dword [ebp - 0x558]
cmp dword [edx + 0xa4], 0
je 0x46b88c
mov eax, dword [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x558]
mov edx, dword [ecx + 0xa4]
mov eax, dword [ebp - 0x558]
mov ecx, dword [eax + 0xa4]
mov edx, dword [edx]
call dword [edx + 0x14]
jmp 0x46b8c1
mov eax, dword [ebp - 0x558]
cmp dword [eax + 0xa4], 0
je 0x46b8c1
mov ecx, dword [ebp - 0x438]
push ecx
mov edx, dword [ebp - 0x558]
mov eax, dword [edx + 0xa4]
mov ecx, dword [ebp - 0x558]
mov ecx, dword [ecx + 0xa4]
mov edx, dword [eax]
call dword [edx + 0x18]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x18]
call fcn.0048124d
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4