Function at 0x4520c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465f7d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x548
mov eax, dword [0x483230]
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x554], ecx
mov ax, word [0x4749c4]
mov word [ebp - 0x444], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x442]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea ecx, [ebp - 0x444]
push ecx
call dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHService::GetWorkDirectory_wchar_t__const__unsigned_short_int_]
add esp, 8
mov dx, word [0x4749c8]
mov word [ebp - 0x23c], dx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x23a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x444]
push eax
push str._sPhraseInfo.ini
push 0x104
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
mov byte [ebp - 0x31], 1
mov dx, word [0x4749f0]
mov word [ebp - 0x30], dx
xor eax, eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov cx, word [0x4749f4]
mov word [ebp - 0x544], cx
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x542]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x548]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x548]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::TrimLeft]
lea ecx, [ebp - 0x548]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::TrimRight]
mov eax, 1
test eax, eax
je 0x4522e7
movzx ecx, byte [ebp - 0x31]
push ecx
push str.Phrase_d
push 0x10
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x23c]
push eax
push 0x80
lea ecx, [ebp - 0x544]
push ecx
push 0x474a0c
lea edx, [ebp - 0x30]
push edx
push str.ServerChatShort
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx eax, word [ebp - 0x544]
test eax, eax
je 0x4522cc
lea ecx, [ebp - 0x544]
push ecx
lea ecx, [ebp - 0x54c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::TrimLeft]
lea ecx, [ebp - 0x54c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::TrimRight]
lea edx, [ebp - 0x548]
push edx
lea eax, [ebp - 0x54c]
push eax
call fcn.004527d0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4522b4
mov dl, byte [ebp - 0x31]
mov byte [ebp - 0x54d], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x548]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov al, byte [ebp - 0x54d]
jmp 0x452307
mov al, byte [ebp - 0x31]
add al, 1
mov byte [ebp - 0x31], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
movzx ecx, word [ebp - 0x544]
test ecx, ecx
je 0x4522e0
movzx edx, byte [ebp - 0x31]
cmp edx, 0x10
jl 0x4522e2
jmp 0x4522e7
jmp 0x4521d8
mov byte [ebp - 0x54e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x548]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov al, byte [ebp - 0x54e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00460cbd
pop edi
mov esp, ebp
pop ebp
ret 4