Function at 0x4152b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4931a1
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x2b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb190]
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 0x415302
mov eax, dword [ebx + 0x254]
jmp 0x415308
lea eax, [ebx + 0x254]
push eax
call fcn.00435a20
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x4156e8
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.004440d6
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.00467850
add esp, 0x10
cmp byte [ebx + 0x26c], 0
jne 0x41540f
cmp dword [ebx + 0x268], 8
jb 0x4153ba
mov eax, dword [ebx + 0x254]
jmp 0x4153c0
lea eax, [ebx + 0x254]
mov ebp, dword [esp + 0x14]
push eax
push ebp
push esi
push 0x49ab28
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 0x4153e1
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebx + 0x270]
call fcn.00402220
cmp dword [ebx + 0x284], 4
jbe 0x415413
mov byte [ebx + 0x26c], 1
jmp 0x415413
mov ebp, dword [esp + 0x14]
cmp dword [ebx + 0x268], 8
jb 0x415424
mov eax, dword [ebx + 0x254]
jmp 0x41542a
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 0x4156af
jmp 0x415472
xor edi, edi
mov edx, dword [esp + 0x18]
push edx
push str.Game_d
lea eax, [esp + 0xc8]
push 0x104
push eax
call fcn.00467806
lea eax, [esp + 0xd0]
add esp, 0x10
lea edx, [eax + 2]
jmp 0x4154a0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4154a0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x54]
call fcn.00402220
lea edi, [ebx + 0x250]
mov ecx, 8
cmp dword [edi + 0x18], ecx
jb 0x4154d6
mov eax, dword [edi + 4]
jmp 0x4154d9
lea eax, [edi + 4]
cmp dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x50]
jae 0x4154e7
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.004135c0
cmp eax, 1
jne 0x415689
mov esi, dword [ebx + 0x2b0]
cmp esi, dword [ebx + 0x2b4]
jbe 0x41552f
call fcn.00467a4e
mov ebp, dword [ebx + 0x2a4]
mov dword [esp + 0x2c], esi
lea esp, [esp]
mov edi, dword [ebx + 0x2b4]
cmp dword [ebx + 0x2b0], edi
jbe 0x415553
call fcn.00467a4e
mov eax, dword [ebx + 0x2a4]
test ebp, ebp
je 0x415561
cmp ebp, eax
je 0x415566
call fcn.00467a4e
cmp esi, edi
je 0x41566b
test ebp, ebp
jne 0x4155d3
call fcn.00467a4e
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x415583
call fcn.00467a4e
push 1
push 1
add esi, 0x3c
lea eax, [esp + 0x38]
push esi
push eax
call fcn.00435c20
add esp, 0x10
cmp dword [esp + 0xbc], 8
mov ebx, dword [esp + 0xa8]
jae 0x4155b0
lea ebx, [esp + 0xa8]
mov edi, dword [eax + 0x14]
mov ecx, edi
cmp ecx, edi
jae 0x4155b9
mov esi, dword [esp + 0xb8]
mov edx, edi
cmp edi, esi
jb 0x4155c8
mov edx, esi
cmp dword [eax + 0x18], 8
jb 0x4155d8
mov ecx, dword [eax + 4]
jmp 0x4155db
mov eax, dword [ebp]
jmp 0x415579
lea ecx, [eax + 4]
mov eax, ebx
test edx, edx
jbe 0x415606
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x4155f6
add ecx, 2
add eax, 2
sub edx, 1
jne 0x4155e1
jmp 0x415606
mov cx, word [ecx]
cmp cx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
add eax, 1
jne 0x415616
cmp edi, esi
jae 0x41560f
or eax, 0xffffffff
jmp 0x415616
xor eax, eax
cmp edi, esi
setne al
test eax, eax
sete bl
cmp dword [esp + 0x48], 8
mov byte [esp + 0x2d4], 1
jb 0x415637
mov edx, dword [esp + 0x34]
push edx
call fcn.004440cb
add esp, 4
test bl, bl
jne 0x41567d
test ebp, ebp
jne 0x415666
call fcn.00467a4e
xor eax, eax
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [eax + 0x10]
jb 0x415654
call fcn.00467a4e
add dword [esp + 0x2c], 0x58
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
jmp 0x415540
mov eax, dword [ebp]
jmp 0x415646
lea edx, [esp + 0x68]
push edx
lea ecx, [ebx + 0x28c]
call fcn.00414b10
jmp 0x415681
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.00467850
add esp, 0xc
test edi, edi
jg 0x415470
xor edi, edi
push esi
call fcn.004440cb
add esp, 4
cmp dword [esp + 0x64], 8
jb 0x4156cc
mov eax, dword [esp + 0x50]
push eax
call fcn.004440cb
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.004103e0
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.004677ab
add esp, 0x2c4
ret