Function at 0x42ca70
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x471200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [esp + 0x40]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x18], edi
call fcn.0045854a
xor ebx, ebx
push 0x5c
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], ebx
call fcn.004512ef
inc eax
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.00451277
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 1
call fcn.0045861d
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], bl
call fcn.004584d6
push str.MCPType.ini
lea ecx, [esp + 0x54]
call fcn.00458853
lea edx, [esp + 0x50]
lea ecx, [edi + 0x120]
push edx
call fcn.0045861d
mov eax, dword [edi + 0xd0]
lea ebp, [edi + 0xcc]
cmp eax, ebx
je 0x42cb4e
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x18], eax
jbe 0x42cb4e
mov ecx, dword [ebp + 4]
mov esi, dword [ecx + eax*4]
cmp esi, ebx
je 0x42cb42
lea edx, [esi + 0xc]
push 1
push edx
call fcn.00451847
lea eax, [esi + 8]
push 1
push eax
call fcn.00451847
mov esi, dword [esi]
cmp esi, ebx
jne 0x42cb22
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x42cb18
mov eax, dword [ebp + 4]
push eax
call fcn.00458a71
mov ecx, dword [ebp + 0x14]
add esp, 4
mov dword [ebp + 4], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
call fcn.00453470
lea esi, [edi + 0xe8]
mov dword [ebp + 0x14], ebx
cmp dword [esi + 4], ebx
je 0x42cbc0
mov ecx, dword [esi + 8]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x18], eax
jbe 0x42cbc0
mov ecx, dword [esi + 4]
mov edi, dword [ecx + eax*4]
cmp edi, ebx
je 0x42cbb0
lea edx, [edi + 0xc]
push 1
push edx
call fcn.00451847
lea eax, [edi + 8]
push 1
push eax
call fcn.00451847
mov edi, dword [edi]
cmp edi, ebx
jne 0x42cb90
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x42cb86
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 4]
push eax
call fcn.00458a71
mov ecx, dword [esi + 0x14]
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.00453470
push 0xffffffffffffffff
lea ecx, [edi + 0x104]
push ebx
mov dword [esi + 0x14], ebx
call fcn.00453198
push 0x2000
call fcn.00458a48
mov ebx, eax
mov ecx, 0x800
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x54]
add esp, 4
mov dword [esp + 0x20], ebx
push ecx
push 0x1000
push ebx
push str.MCPTypeList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [esp + 0x2c]
call fcn.00453105
lea edx, [esp + 0x2c]
mov byte [esp + 0x48], 2
push edx
push ebx
call fcn.004308d0
add esp, 8
xor edi, edi
test eax, eax
mov dword [esp + 0x24], eax
jle 0x42cd0e
mov eax, dword [esp + 0x30]
lea ecx, [eax + edi*8]
push ecx
lea ecx, [esp + 0x14]
call fcn.00458243
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 3
lea eax, [edx + edi*8 + 4]
push eax
call fcn.00458243
mov ecx, dword [0x4ad780]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x50], 5
call fcn.0041e9c0
test eax, eax
je 0x42cca7
add eax, 0xc
lea ecx, [esp + 0x18]
push eax
call fcn.0045861d
jmp 0x42ccbf
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
add ecx, 0x104
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.0045335f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, ebp
call fcn.00429800
mov ecx, eax
call fcn.0045866d
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 4
call fcn.004584d6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 3
call fcn.004584d6
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 2
call fcn.004584d6
mov eax, dword [esp + 0x24]
inc edi
cmp edi, eax
jl 0x42cc4c
mov eax, dword [0x4b1d3c]
test eax, eax
je 0x42cd3a
mov edx, dword [esp + 0x50]
push edx
push 0
push str.CheckMCPType
push str.MCPSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x118], eax
jmp 0x42cd48
mov edx, dword [esp + 0x14]
mov dword [edx + 0x118], 0
mov ecx, 0x800
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x50]
push eax
push 0x1000
push ebx
push 0x4b1a08
push str.MCPTypeRange
push str.MCPSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebx
call fcn.0043f601
add esp, 4
test eax, eax
je 0x42d063
push 0x2c
push ebx
mov edi, ebx
call fcn.0043f8c6
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x42cea1
push edi
lea ecx, [esp + 0x14]
mov word [ebx], 0
call fcn.0045854a
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 6
call fcn.004517d2
lea ecx, [esp + 0x10]
call fcn.00451724
mov ecx, dword [0x4ad780]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x50], 7
call fcn.0041e9c0
test eax, eax
je 0x42ce6d
add eax, 0xc
lea ecx, [esp + 0x18]
push eax
call fcn.0045861d
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], ecx
push edx
push eax
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.0041e9c0
mov edi, eax
test edi, edi
jne 0x42ce60
mov eax, dword [esi + 4]
test eax, eax
jne 0x42ce2d
mov eax, dword [esi + 8]
push 1
push eax
mov ecx, esi
call fcn.0040dcd0
mov ecx, esi
call fcn.0042d6c0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov edi, eax
push edx
mov dword [edi + 4], ecx
lea ecx, [edi + 8]
call fcn.0045866d
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx*4]
mov dword [edi], edx
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x14]
mov dword [eax + ecx*4], edi
mov edx, dword [esp + 0x1c]
lea ecx, [edi + 0xc]
push edx
call fcn.0045866d
lea edi, [ebx + 2]
push 0x2c
push edi
call fcn.0043f8c6
add esp, 8
lea ecx, [esp + 0x18]
mov ebx, eax
mov byte [esp + 0x48], 6
call fcn.004584d6
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 2
call fcn.004584d6
test ebx, ebx
jne 0x42cd9b
push edi
call fcn.0043f601
add esp, 4
test eax, eax
je 0x42d05f
push edi
lea ecx, [esp + 0x14]
call fcn.0045854a
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 8
call fcn.004517d2
lea ecx, [esp + 0x10]
call fcn.00451724
mov eax, dword [0x4ad780]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov byte [esp + 0x48], 9
push eax
mov ebx, eax
call fcn.0045186b
xor edx, edx
div dword [ebp + 8]
mov ebp, dword [ebp + 4]
test ebp, ebp
je 0x42d043
mov edi, dword [ebp + edx*4]
test edi, edi
je 0x42d043
mov ecx, dword [edi + 8]
push ebx
push ecx
call fcn.0043f64f
add esp, 8
test eax, eax
je 0x42cf25
mov edi, dword [edi]
test edi, edi
jne 0x42cf09
jmp 0x42d043
test edi, edi
je 0x42d043
add edi, 0xc
lea ecx, [esp + 0x18]
push edi
call fcn.0045861d
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
mov ebp, eax
call fcn.0045186b
xor edx, edx
div dword [esi + 8]
mov eax, dword [esi + 4]
test eax, eax
mov ebx, edx
je 0x42cf88
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x42cf88
mov eax, dword [edi + 8]
push ebp
push eax
call fcn.0043f64f
add esp, 8
test eax, eax
je 0x42cf80
mov edi, dword [edi]
test edi, edi
jne 0x42cf67
jmp 0x42cf88
test edi, edi
jne 0x42d036
mov eax, dword [esi + 4]
test eax, eax
jne 0x42cfbe
mov ebp, dword [esi + 8]
lea edi, [ebp*4]
push edi
call fcn.00458a48
mov edx, eax
mov ecx, edi
mov dword [esi + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x42cff4
mov eax, dword [esi + 0x18]
push 0x10
lea ecx, [esi + 0x14]
push eax
push ecx
call fcn.00453450
mov ecx, dword [esi + 0x18]
mov edx, ecx
shl edx, 4
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0xc]
jl 0x42cff4
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0x10
dec ecx
jne 0x42cfe6
mov edi, dword [esi + 0x10]
mov ebp, dword [esi + 0xc]
inc ebp
push 1
mov eax, dword [edi]
mov dword [esi + 0xc], ebp
lea ebp, [edi + 8]
mov dword [esi + 0x10], eax
push ebp
call fcn.00451819
lea ecx, [edi + 0xc]
push 1
push ecx
call fcn.00451819
mov edx, dword [esp + 0x24]
mov ecx, ebp
push edx
mov dword [edi + 4], ebx
call fcn.0045866d
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx*4]
mov dword [edi], ecx
mov edx, dword [esi + 4]
mov dword [edx + ebx*4], edi
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 0xc]
push eax
call fcn.0045866d
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 8
call fcn.004584d6
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 2
call fcn.004584d6
mov ebx, dword [esp + 0x20]
push ebx
call fcn.00458a71
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 0
call fcn.00453138
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], 0xffffffff
call fcn.004584d6
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 8