Function at 0x415140
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x492d81
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x4ba190]
xor eax, esp
mov dword [esp + 0x2b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba190]
xor eax, esp
push eax
lea eax, [esp + 0x2cc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x268], 8
mov dword [esp + 0x20], ebx
jb 0x415192
mov eax, dword [ebx + 0x254]
jmp 0x415198
lea eax, [ebx + 0x254]
push eax
call fcn.004356f0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x415578
lea ebp, [eax + 0x20]
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00443d0e
mov esi, eax
xor eax, eax
xor edi, edi
mov word [esp + 0x70], ax
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], edi
mov dword [esp + 0xa0], eax
mov dword [esp + 0x9c], edi
mov word [esp + 0x8c], cx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xbc], edi
mov word [esp + 0xac], dx
push ebp
push edi
push esi
mov dword [esp + 0x2e4], edi
call fcn.00467480
add esp, 0x10
cmp byte [ebx + 0x26c], 0
jne 0x41529f
cmp dword [ebx + 0x268], 8
jb 0x41524a
mov eax, dword [ebx + 0x254]
jmp 0x415250
lea eax, [ebx + 0x254]
mov ebp, dword [esp + 0x14]
push eax
push ebp
push esi
push 0x499b28
push str.LastGame
push str.PARAM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x415271
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebx + 0x270]
call fcn.00402210
cmp dword [ebx + 0x284], 4
jbe 0x4152a3
mov byte [ebx + 0x26c], 1
jmp 0x4152a3
mov ebp, dword [esp + 0x14]
cmp dword [ebx + 0x268], 8
jb 0x4152b4
mov eax, dword [ebx + 0x254]
jmp 0x4152ba
lea eax, [ebx + 0x254]
push eax
push edi
push str.LocalGameCount
push str.PARAM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], cx
cmp eax, edi
mov byte [esp + 0x2d4], 1
jle 0x41553f
jmp 0x415302
xor edi, edi
mov edx, dword [esp + 0x18]
push edx
push str.Game_d
lea eax, [esp + 0xc8]
push 0x104
push eax
call fcn.0046743e
lea eax, [esp + 0xd0]
add esp, 0x10
lea edx, [eax + 2]
jmp 0x415330
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x415330
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x54]
call fcn.00402210
lea edi, [ebx + 0x250]
mov ecx, 8
cmp dword [edi + 0x18], ecx
jb 0x415366
mov eax, dword [edi + 4]
jmp 0x415369
lea eax, [edi + 4]
cmp dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x50]
jae 0x415377
lea ecx, [esp + 0x50]
push eax
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor edx, edx
lea ecx, [esp + 0x68]
push ecx
push edi
mov word [esi + ebp*2 - 4], dx
lea edx, [esp + 0x54]
push edx
push ebp
xor eax, eax
push esi
mov ecx, ebx
mov word [esi + ebp*2 - 2], ax
call fcn.00413450
cmp eax, 1
jne 0x415519
mov esi, dword [ebx + 0x2b0]
cmp esi, dword [ebx + 0x2b4]
jbe 0x4153bf
call fcn.0046767e
mov ebp, dword [ebx + 0x2a4]
mov dword [esp + 0x2c], esi
lea esp, [esp]
mov edi, dword [ebx + 0x2b4]
cmp dword [ebx + 0x2b0], edi
jbe 0x4153e3
call fcn.0046767e
mov eax, dword [ebx + 0x2a4]
test ebp, ebp
je 0x4153f1
cmp ebp, eax
je 0x4153f6
call fcn.0046767e
cmp esi, edi
je 0x4154fb
test ebp, ebp
jne 0x415463
call fcn.0046767e
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x415413
call fcn.0046767e
push 1
push 1
add esi, 0x3c
lea eax, [esp + 0x38]
push esi
push eax
call fcn.004358f0
add esp, 0x10
cmp dword [esp + 0xbc], 8
mov ebx, dword [esp + 0xa8]
jae 0x415440
lea ebx, [esp + 0xa8]
mov edi, dword [eax + 0x14]
mov ecx, edi
cmp ecx, edi
jae 0x415449
mov esi, dword [esp + 0xb8]
mov edx, edi
cmp edi, esi
jb 0x415458
mov edx, esi
cmp dword [eax + 0x18], 8
jb 0x415468
mov ecx, dword [eax + 4]
jmp 0x41546b
mov eax, dword [ebp]
jmp 0x415409
lea ecx, [eax + 4]
mov eax, ebx
test edx, edx
jbe 0x415496
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x415486
add ecx, 2
add eax, 2
sub edx, 1
jne 0x415471
jmp 0x415496
mov cx, word [ecx]
cmp cx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
add eax, 1
jne 0x4154a6
cmp edi, esi
jae 0x41549f
or eax, 0xffffffff
jmp 0x4154a6
xor eax, eax
cmp edi, esi
setne al
test eax, eax
sete bl
cmp dword [esp + 0x48], 8
mov byte [esp + 0x2d4], 1
jb 0x4154c7
mov edx, dword [esp + 0x34]
push edx
call fcn.00443d03
add esp, 4
test bl, bl
jne 0x41550d
test ebp, ebp
jne 0x4154f6
call fcn.0046767e
xor eax, eax
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [eax + 0x10]
jb 0x4154e4
call fcn.0046767e
add dword [esp + 0x2c], 0x58
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
jmp 0x4153d0
mov eax, dword [ebp]
jmp 0x4154d6
lea edx, [esp + 0x68]
push edx
lea ecx, [ebx + 0x28c]
call fcn.004149a0
jmp 0x415511
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
inc dword [esp + 0x18]
lea eax, [ebp + 0x20]
push eax
push 0
dec edi
push esi
mov dword [esp + 0x28], edi
call fcn.00467480
add esp, 0xc
test edi, edi
jg 0x415300
xor edi, edi
push esi
call fcn.00443d03
add esp, 4
cmp dword [esp + 0x64], 8
jb 0x41555c
mov eax, dword [esp + 0x50]
push eax
call fcn.00443d03
add esp, 4
xor ecx, ecx
mov word [esp + 0x50], cx
lea ecx, [esp + 0x68]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
call fcn.004103c0
mov ecx, dword [esp + 0x2cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.004673e3
add esp, 0x2c4
ret