Function at 0x413560
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f434
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x4be014]
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 0x4135a7
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 0x4b3d1c
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 0x4b3d18
push dword [ebp - 0x22c]
push 0x4b37ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x413743
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.004292a0
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x20]
jmp 0x413834
cmp edi, 0x70
jne 0x41375d
mov eax, dword [str.D2A9F12D]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b37b8]
jmp 0x413834
cmp edi, 0x1b1
jne 0x41377a
mov eax, dword [str.164F5CE1]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b37c4]
jmp 0x413834
cmp edi, 0x1b2
jne 0x413797
mov eax, dword [str.FE906B39]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b37d0]
jmp 0x413834
cmp edi, 0x1b3
jne 0x4137b4
mov eax, dword [str.4AE68B88]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b37dc]
jmp 0x413834
cmp edi, 0x2a6
jne 0x4137ce
mov eax, dword [str.86777CCC]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b37e8]
jmp 0x413834
cmp edi, 0x10a
jne 0x4137e8
mov eax, dword [str.E397DF64]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b37f4]
jmp 0x413834
cmp edi, 0xfb
jne 0x413802
mov eax, dword [str.4C682A92]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b3800]
jmp 0x413834
cmp edi, 0x97
jne 0x41381c
mov eax, dword [str.1FD37E48]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b380c]
jmp 0x413834
cmp edi, 0xa6
jne 0x41383a
mov eax, dword [str.3CE0FCF7]
mov dword [ebp - 0x260], eax
mov eax, dword [0x4b3818]
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.00410080
jmp 0x413868
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.004429bd
mov esp, ebp
pop ebp
ret 8