Function at 0x414bb0
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x492d32
mov eax, dword fs:[0]
push eax
sub esp, 0x4f0
mov eax, dword [0x4ba190]
xor eax, esp
mov dword [esp + 0x4ec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba190]
xor eax, esp
push eax
lea eax, [esp + 0x504]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
mov ebx, ecx
mov word [esp + 0x64], ax
mov eax, 0x4bc788
mov dword [esp + 0x18], ebx
mov byte [ebx + 0x26c], 0
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x414c15
sub eax, edx
sar eax, 1
push eax
push 0x4bc788
lea ecx, [esp + 0x68]
call fcn.00402210
mov ecx, dword [0x4b83a8]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x518], edi
call fcn.00407790
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x518], 1
call fcn.00402110
mov ebp, 8
mov byte [esp + 0x50c], 0
cmp dword [esp + 0x40], ebp
jb 0x414c88
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00443d03
add esp, 4
push 0x206
lea eax, [esp + 0xf6]
xor edx, edx
push edi
push eax
mov word [esp + 0xfc], dx
call fcn.00467480
mov eax, dword [esp + 0x70]
add esp, 0xc
cmp dword [esp + 0x78], ebp
jae 0x414cb6
lea eax, [esp + 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x103
lea ecx, [esp + 0xf8]
push ecx
push 0x499b28
push str.DefSkin
push str.PARAM
call esi
lea eax, [esp + 0xf0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x414ce5
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xf4]
push edx
lea ecx, [ebx + 0x34c]
call fcn.00402210
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x78], ebp
jae 0x414d16
lea eax, [esp + 0x64]
push eax
call fcn.004356f0
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
cmp ebp, edi
jne 0x414d33
cmp dword [esp + 0x78], 8
jmp 0x415107
xor ecx, ecx
lea eax, [ebp + 0x20]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00443d0e
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
jne 0x414d63
cmp dword [esp + 0x78], 8
jmp 0x415107
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x414d72
lea eax, [esp + 0x64]
push eax
push ebp
push edi
push 0x499b28
push str.LastGame
push str.PARAM
call esi
mov eax, edi
lea edx, [eax + 2]
jmp 0x414d90
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414d90
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebx + 0x270]
call fcn.00402210
mov eax, dword [ebx + 0x284]
cmp eax, 4
jbe 0x414dbe
mov byte [ebx + 0x26c], 1
mov eax, 7
xor ecx, ecx
mov dword [esp + 0xb0], eax
xor edx, edx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xec], eax
xor eax, eax
mov dword [esp + 0xac], ecx
mov word [esp + 0x9c], dx
mov dword [esp + 0xc8], ecx
mov word [esp + 0xb8], dx
mov dword [esp + 0xe8], ecx
mov word [esp + 0xd8], ax
lea eax, [ebp + 0x20]
push eax
push ecx
push edi
call fcn.00467480
mov eax, dword [esp + 0x70]
mov esi, 8
add esp, 0xc
cmp dword [esp + 0x78], esi
jae 0x414e2c
lea eax, [esp + 0x64]
push eax
push 0
push str.LocalGameCount
push str.PARAM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], cx
mov byte [esp + 0x50c], 3
test eax, eax
jle 0x4150b5
mov edx, dword [esp + 0x14]
push edx
push str.Game_d
lea eax, [esp + 0x300]
push 0x104
push eax
call fcn.0046743e
lea eax, [esp + 0x308]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414ea4
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2fc]
push ecx
lea ecx, [esp + 0x84]
call fcn.00402210
mov ecx, dword [esp + 0x64]
cmp dword [esp + 0x78], esi
jae 0x414ed6
lea ecx, [esp + 0x64]
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], esi
jae 0x414eed
lea eax, [esp + 0x80]
push ecx
push ebp
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor edx, edx
xor eax, eax
lea ecx, [esp + 0x98]
push ecx
mov word [edi + ebp*2 - 4], dx
lea edx, [esp + 0x64]
push edx
mov word [edi + ebp*2 - 2], ax
lea eax, [esp + 0x84]
push eax
push ebp
push edi
mov ecx, ebx
call fcn.00413450
cmp eax, 1
jne 0x41508e
mov esi, dword [ebx + 0x2b0]
cmp esi, dword [ebx + 0x2b4]
jbe 0x414f3f
call fcn.0046767e
mov edi, dword [ebx + 0x2a4]
mov ebp, esi
jmp 0x414f50
mov esi, dword [ebx + 0x2b4]
add ebx, 0x2a4
cmp dword [ebx + 0xc], esi
jbe 0x414f66
call fcn.0046767e
mov eax, dword [ebx]
test edi, edi
je 0x414f70
cmp edi, eax
je 0x414f75
call fcn.0046767e
cmp ebp, esi
je 0x41506e
push 1
push 1
lea ecx, [esp + 0xdc]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.004358f0
add esp, 0x10
mov esi, eax
mov byte [esp + 0x50c], 4
test edi, edi
jne 0x414fe0
call fcn.0046767e
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x414fb5
call fcn.0046767e
push 1
push 1
lea eax, [ebp + 0x3c]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.004358f0
add esp, 0x10
cmp dword [esi + 0x18], 8
mov ecx, dword [esi + 0x14]
mov byte [esp + 0x50c], 5
jb 0x414fe4
mov esi, dword [esi + 4]
jmp 0x414fe7
mov eax, dword [edi]
jmp 0x414fab
add esi, 4
mov edx, dword [eax + 0x14]
push ecx
push esi
push edx
push 0
mov ecx, eax
call fcn.00404b10
test eax, eax
mov esi, 8
sete bl
cmp dword [esp + 0x40], esi
jb 0x415013
mov eax, dword [esp + 0x2c]
push eax
call fcn.00443d03
add esp, 4
xor ecx, ecx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], cx
mov byte [esp + 0x50c], 3
cmp dword [esp + 0x5c], esi
jb 0x415045
mov edx, dword [esp + 0x48]
push edx
call fcn.00443d03
add esp, 4
test bl, bl
jne 0x415082
test edi, edi
jne 0x41506a
call fcn.0046767e
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x41505e
call fcn.0046767e
mov ebx, dword [esp + 0x18]
add ebp, 0x58
jmp 0x414f50
mov eax, dword [edi]
jmp 0x415054
lea eax, [esp + 0x98]
push eax
mov ecx, ebx
call fcn.004149a0
mov esi, 8
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov eax, 1
add dword [esp + 0x14], eax
sub dword [esp + 0x1c], eax
lea eax, [ebp + 0x20]
push eax
push 0
push edi
call fcn.00467480
add esp, 0xc
cmp dword [esp + 0x1c], 0
jg 0x414e7b
push edi
call fcn.00443d03
add esp, 4
cmp dword [esp + 0x94], esi
jb 0x4150d7
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00443d03
add esp, 4
xor edx, edx
lea ecx, [esp + 0x98]
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], dx
call fcn.004103c0
cmp dword [esp + 0x78], esi
jb 0x415116
mov eax, dword [esp + 0x64]
push eax
call fcn.00443d03
add esp, 4
mov ecx, dword [esp + 0x504]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4ec]
xor ecx, esp
call fcn.004673e3
add esp, 0x4fc
ret