Function at 0x4159f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2de4
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x4c3014]
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 0x415a37
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 0x4b7d9c
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 0x4b7d98
push dword [ebp - 0x22c]
push 0x4b7830
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x415bd3
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.0042c700
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x20]
jmp 0x415cc4
cmp edi, 0x70
jne 0x415bed
mov eax, dword [str.D2A9F12D]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b783c]
jmp 0x415cc4
cmp edi, 0x1b1
jne 0x415c0a
mov eax, dword [str.164F5CE1]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b7848]
jmp 0x415cc4
cmp edi, 0x1b2
jne 0x415c27
mov eax, dword [str.FE906B39]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b7854]
jmp 0x415cc4
cmp edi, 0x1b3
jne 0x415c44
mov eax, dword [str.4AE68B88]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b7860]
jmp 0x415cc4
cmp edi, 0x2a6
jne 0x415c5e
mov eax, dword [str.86777CCC]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b786c]
jmp 0x415cc4
cmp edi, 0x10a
jne 0x415c78
mov eax, dword [str.E397DF64]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b7878]
jmp 0x415cc4
cmp edi, 0xfb
jne 0x415c92
mov eax, dword [str.4C682A92]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b7884]
jmp 0x415cc4
cmp edi, 0x97
jne 0x415cac
mov eax, dword [str.1FD37E48]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b7890]
jmp 0x415cc4
cmp edi, 0xa6
jne 0x415cca
mov eax, dword [str.3CE0FCF7]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b789c]
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.00411bf0
jmp 0x415cf8
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.0044627d
mov esp, ebp
pop ebp
ret 8