Function at 0x415910
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2c94
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x4c2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x270], esi
jmp 0x415957
lea ecx, [ebp - 0x228]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x200
mov byte [ebp - 4], 1
lea eax, [ebp - 0x224]
xorps xmm0, xmm0
mov byte [ebp - 0x24], 0
push 0
push eax
movups xmmword [ebp - 0x23], xmm0
mov word [ebp - 0x13], 0
mov byte [ebp - 0x11], 0
call sub.VCRUNTIME140.dll_memset
push 0x2d
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x238], 0x7800
push 0
push eax
mov dword [ebp - 0x234], 0
mov word [ebp - 0x230], 0x300
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
push dword [esi + 8]
mov esi, dword [sym.imp.WS2_32.dll_htonl]
call esi
mov dword [ebp - 0x26c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x268], eax
lea eax, [edi - 0x64]
push eax
call esi
push edi
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x22c]
push 0x4b6db8
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
add esp, 0xc
lea ecx, [ebp - 0x228]
push 0x104
push 0x105
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBufferSetLength]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x228]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push 0x5c
lea ecx, [ebp - 0x228]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
inc eax
lea ecx, [ebp - 0x228]
push eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push str.MapCode.ini
lea ecx, [ebp - 0x228]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push dword [ebp - 0x228]
lea eax, [ebp - 0x224]
push 0x100
push eax
push 0x4b6db4
push dword [ebp - 0x22c]
push 0x4b6830
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x415af3
push ecx
lea eax, [ebp - 0x224]
mov ecx, esp
push eax
lea esi, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__11]
mov ecx, esi
call fcn.0042c590
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x20]
jmp 0x415be4
cmp edi, 0x70
jne 0x415b0d
mov eax, dword [str.D2A9F12D]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b683c]
jmp 0x415be4
cmp edi, 0x1b1
jne 0x415b2a
mov eax, dword [str.164F5CE1]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b6848]
jmp 0x415be4
cmp edi, 0x1b2
jne 0x415b47
mov eax, dword [str.FE906B39]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b6854]
jmp 0x415be4
cmp edi, 0x1b3
jne 0x415b64
mov eax, dword [str.4AE68B88]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b6860]
jmp 0x415be4
cmp edi, 0x2a6
jne 0x415b7e
mov eax, dword [str.86777CCC]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b686c]
jmp 0x415be4
cmp edi, 0x10a
jne 0x415b98
mov eax, dword [str.E397DF64]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b6878]
jmp 0x415be4
cmp edi, 0xfb
jne 0x415bb2
mov eax, dword [str.4C682A92]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b6884]
jmp 0x415be4
cmp edi, 0x97
jne 0x415bcc
mov eax, dword [str.1FD37E48]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b6890]
jmp 0x415be4
cmp edi, 0xa6
jne 0x415bea
mov eax, dword [str.3CE0FCF7]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b689c]
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x26c]
push 0x2d
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x238]
push eax
call fcn.00411b10
jmp 0x415c18
lea ecx, [ebp - 0x22c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x228]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044612d
mov esp, ebp
pop ebp
ret 8