Function at 0x45cf00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4723ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x548
mov eax, dword [0x4921d0]
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x554], ecx
mov ax, word [0x48217c]
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 [0x482180]
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 [0x4821a8]
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 [0x4821ac]
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]
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 0x45d127
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 0x4821c4
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 0x45d10c
lea ecx, [ebp - 0x544]
push ecx
lea ecx, [ebp - 0x54c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
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.0045d4d0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x45d0f4
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 0x45d147
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 0x45d120
movzx edx, byte [ebp - 0x31]
cmp edx, 0x10
jl 0x45d122
jmp 0x45d127
jmp 0x45d018
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.0046c78d
pop edi
mov esp, ebp
pop ebp
ret 4