Function at 0x46e4c0
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x5842f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5cca0c]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x40c]
test ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ebx
je 0x46e544
push ebx
call edi
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jg 0x46e544
lea eax, [esi + esi]
call fcn.00553150
mov eax, esp
test eax, eax
je 0x46e544
push esi
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0x3a8
mov word [eax], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [ebp - 0x10]
cmp dword [ebx + 0x24], 0x10
jb 0x46e552
mov ebx, dword [ebx + 0x10]
jmp 0x46e555
add ebx, 0x10
test ebx, ebx
jne 0x46e55d
xor edi, edi
jmp 0x46e59e
push ebx
call edi
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jg 0x46e59a
lea eax, [edi + edi]
call fcn.00553150
mov esi, esp
test esi, esi
je 0x46e59a
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0x3a8
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x46e59c
xor eax, eax
mov edi, eax
xor esi, esi
push 0x3fe
lea eax, [ebp + 2]
push esi
push eax
mov word [ebp], si
call fcn.00552500
add esp, 0xc
push edi
push 0x200
lea ecx, [ebp]
push ecx
push 0x59648c
push str.game
push str.current_game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x46e6ce
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x46e60f
lea esi, [eax + eax]
mov eax, esi
call fcn.00553150
mov eax, esp
push 0x3a8
push esi
lea ecx, [ebp]
push ecx
push eax
call fcn.00401180
mov esi, eax
push 0xc
xor ebx, ebx
push 0x597ff4
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0040c1c0
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 4], ebx
call fcn.0046dc30
mov edx, esi
lea ecx, [edx + 1]
mov bl, byte [edx]
add edx, 1
test bl, bl
jne 0x46e641
sub edx, ecx
push edx
push esi
mov ecx, eax
call fcn.0040c1c0
cmp dword [ebp - 0x18], 0x10
jb 0x46e667
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0055215c
add esp, 4
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x46e670
sub eax, edx
cmp eax, dword [ebp + 0x410]
jle 0x46e688
or eax, 0xffffffff
jmp 0x46e6d3
push edi
push 0x59648c
push str.game
push str.current_game
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x46e6a3
mov ecx, dword [ebp - 0x14]
sub eax, edx
push eax
push esi
push ecx
call fcn.00552de0
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x46e6c1
sub eax, edx
jmp 0x46e6d3
mov eax, 0xfffffffe
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00552d63
add ebp, 0x404
mov esp, ebp
pop ebp
ret 8