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

Disassembly:
push 0xffffffffffffffff
push 0x493152
mov eax, dword fs:[0]
push eax
sub esp, 0x4f0
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x4ec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb190]
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, 0x4bd788
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 0x414d85
sub eax, edx
sar eax, 1
push eax
push 0x4bd788
lea ecx, [esp + 0x68]
call fcn.00402220
mov ecx, dword [0x4b93a8]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x518], edi
call fcn.004077c0
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x518], 1
call fcn.00402120
mov ebp, 8
mov byte [esp + 0x50c], 0
cmp dword [esp + 0x40], ebp
jb 0x414df8
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004440cb
add esp, 4
push 0x206
lea eax, [esp + 0xf6]
xor edx, edx
push edi
push eax
mov word [esp + 0xfc], dx
call fcn.00467850
mov eax, dword [esp + 0x70]
add esp, 0xc
cmp dword [esp + 0x78], ebp
jae 0x414e26
lea eax, [esp + 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x103
lea ecx, [esp + 0xf8]
push ecx
push 0x49ab28
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 0x414e55
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xf4]
push edx
lea ecx, [ebx + 0x34c]
call fcn.00402220
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x78], ebp
jae 0x414e86
lea eax, [esp + 0x64]
push eax
call fcn.00435a20
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
cmp ebp, edi
jne 0x414ea3
cmp dword [esp + 0x78], 8
jmp 0x415277
xor ecx, ecx
lea eax, [ebp + 0x20]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004440d6
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
jne 0x414ed3
cmp dword [esp + 0x78], 8
jmp 0x415277
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x414ee2
lea eax, [esp + 0x64]
push eax
push ebp
push edi
push 0x49ab28
push str.LastGame
push str.PARAM
call esi
mov eax, edi
lea edx, [eax + 2]
jmp 0x414f00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414f00
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebx + 0x270]
call fcn.00402220
mov eax, dword [ebx + 0x284]
cmp eax, 4
jbe 0x414f2e
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.00467850
mov eax, dword [esp + 0x70]
mov esi, 8
add esp, 0xc
cmp dword [esp + 0x78], esi
jae 0x414f9c
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 0x415225
mov edx, dword [esp + 0x14]
push edx
push str.Game_d
lea eax, [esp + 0x300]
push 0x104
push eax
call fcn.00467806
lea eax, [esp + 0x308]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415014
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2fc]
push ecx
lea ecx, [esp + 0x84]
call fcn.00402220
mov ecx, dword [esp + 0x64]
cmp dword [esp + 0x78], esi
jae 0x415046
lea ecx, [esp + 0x64]
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], esi
jae 0x41505d
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.004135c0
cmp eax, 1
jne 0x4151fe
mov esi, dword [ebx + 0x2b0]
cmp esi, dword [ebx + 0x2b4]
jbe 0x4150af
call fcn.00467a4e
mov edi, dword [ebx + 0x2a4]
mov ebp, esi
jmp 0x4150c0
mov esi, dword [ebx + 0x2b4]
add ebx, 0x2a4
cmp dword [ebx + 0xc], esi
jbe 0x4150d6
call fcn.00467a4e
mov eax, dword [ebx]
test edi, edi
je 0x4150e0
cmp edi, eax
je 0x4150e5
call fcn.00467a4e
cmp ebp, esi
je 0x4151de
push 1
push 1
lea ecx, [esp + 0xdc]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.00435c20
add esp, 0x10
mov esi, eax
mov byte [esp + 0x50c], 4
test edi, edi
jne 0x415150
call fcn.00467a4e
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x415125
call fcn.00467a4e
push 1
push 1
lea eax, [ebp + 0x3c]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00435c20
add esp, 0x10
cmp dword [esi + 0x18], 8
mov ecx, dword [esi + 0x14]
mov byte [esp + 0x50c], 5
jb 0x415154
mov esi, dword [esi + 4]
jmp 0x415157
mov eax, dword [edi]
jmp 0x41511b
add esi, 4
mov edx, dword [eax + 0x14]
push ecx
push esi
push edx
push 0
mov ecx, eax
call fcn.00404b70
test eax, eax
mov esi, 8
sete bl
cmp dword [esp + 0x40], esi
jb 0x415183
mov eax, dword [esp + 0x2c]
push eax
call fcn.004440cb
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 0x4151b5
mov edx, dword [esp + 0x48]
push edx
call fcn.004440cb
add esp, 4
test bl, bl
jne 0x4151f2
test edi, edi
jne 0x4151da
call fcn.00467a4e
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4151ce
call fcn.00467a4e
mov ebx, dword [esp + 0x18]
add ebp, 0x58
jmp 0x4150c0
mov eax, dword [edi]
jmp 0x4151c4
lea eax, [esp + 0x98]
push eax
mov ecx, ebx
call fcn.00414b10
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.00467850
add esp, 0xc
cmp dword [esp + 0x1c], 0
jg 0x414feb
push edi
call fcn.004440cb
add esp, 4
cmp dword [esp + 0x94], esi
jb 0x415247
mov ecx, dword [esp + 0x80]
push ecx
call fcn.004440cb
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.004103e0
cmp dword [esp + 0x78], esi
jb 0x415286
mov eax, dword [esp + 0x64]
push eax
call fcn.004440cb
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.004677ab
add esp, 0x4fc
ret