Function at 0x406390
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5153c8
push 0x496320
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
sub esp, 0x58
mov eax, dword [0x527064]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x64], esi
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x60], eax
mov edi, dword [ebx + 0x14]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x5c], 0x4752434d
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
test edi, edi
jne 0x406423
lea eax, [edi + 1]
jmp 0x4066cb
mov eax, dword [esi]
test eax, eax
jne 0x4066cb
mov dword [ebp - 4], eax
mov eax, 0x10
call fcn.00491550
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x406484
test eax, eax
jne 0x406492
mov eax, 0x3e9
jmp 0x4066cb
mov byte [eax], 0x5f
mov dword [ebp - 0x68], 0
inc eax
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0xa
push eax
push 0xffffffffffffffff
push 0x4f86ac
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x40662f
cmp dword [ebp - 0x68], 0
je 0x4064d2
mov eax, 0x574
jmp 0x4066cb
push dword [esi + 8]
push 0x24
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x6c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
mov ecx, dword [ebp - 0x60]
test eax, eax
jne 0x40650e
mov dword [ebp - 0x4c], eax
mov edx, 1
mov dword [ebp - 0x50], edx
test ecx, ecx
jne 0x406507
mov eax, 0x1400
mov dword [ebp - 0x54], eax
jmp 0x406514
mov eax, dword [edi]
mov dword [ebp - 0x54], eax
jmp 0x406514
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
test ecx, ecx
jne 0x406526
cmp edx, 1
jne 0x40651f
add eax, eax
mov dword [edi], eax
jmp 0x4066c9
cmp dword [edi], eax
mov ecx, dword [ebp - 0x60]
jae 0x406537
mov eax, 8
jmp 0x4066cb
cmp dword [ebp - 0x4c], 0
je 0x406609
cmp edx, 1
jne 0x4065d9
push eax
mov ecx, esi
call fcn.00406250
test al, al
je 0x40652d
push dword [esi + 8]
push dword [ebp - 0x54]
push dword [esi + 0xc]
push dword [ebp - 0x64]
push dword [esi + 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
call eax
test eax, eax
je 0x40662f
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push eax
push ecx
push dword [ebp - 0x54]
push eax
call fcn.00406ac0
test eax, eax
jne 0x4066cb
mov eax, dword [edi]
shr eax, 1
push eax
mov ecx, dword [ebp - 0x60]
push ecx
push 0xffffffffffffffff
push dword [esi + 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x40651d
push 0
push 0
push 0xffffffffffffffff
push dword [esi + 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add eax, eax
mov dword [edi], eax
mov eax, 0xea
jmp 0x4066cb
mov dword [edi], eax
push dword [esi + 8]
push eax
push ecx
push dword [ebp - 0x64]
push dword [esi + 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
call eax
test eax, eax
je 0x40662f
push edi
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
push ecx
push dword [ebp - 0x54]
push ecx
call fcn.00406ac0
jmp 0x4066cb
sub edx, 1
je 0x406668
sub edx, 3
mov dword [edi], eax
push dword [esi + 8]
je 0x40663a
push eax
push ecx
push dword [ebp - 0x64]
push dword [esi + 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
call eax
test eax, eax
jne 0x4066c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4066cb
push 0x14
lea eax, [ebp - 0x38]
push eax
push 0x4f7ee2
push dword [ebp - 0x64]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40662f
lea eax, [ebp - 0x38]
push eax
call fcn.004a3e64
add esp, 4
mov ecx, dword [ebp - 0x60]
mov dword [ecx], eax
jmp 0x4066c9
mov eax, dword [edi]
cmp eax, 2
jb 0x40652d
shr eax, 1
mov dword [ebp - 0x54], eax
push eax
mov ecx, esi
call fcn.00406250
test al, al
je 0x406488
push dword [esi + 8]
push dword [ebp - 0x54]
push dword [esi + 0xc]
push 0x4f7ee2
push dword [ebp - 0x64]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40662f
mov eax, dword [edi]
shr eax, 1
push eax
mov ecx, dword [ebp - 0x60]
push ecx
push 0xffffffffffffffff
push dword [esi + 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x40662f
xor eax, eax
lea esp, [ebp - 0x80]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004908ad
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18