Function at 0x407239
Capabilities:
Read .ini file

Disassembly:
push 0x70
push 0x4e9ba0
call fcn.004b6e00
mov esi, ecx
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x58], ecx
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x78], edi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x54]
call fcn.004070e9
test edi, edi
jne 0x40727c
xor eax, eax
inc eax
jmp 0x407555
mov eax, dword [esi]
test eax, eax
jne 0x407555
push dword [ebp - 0x60]
call fcn.00487778
pop ecx
lea eax, [eax*4 + 3]
mov dword [ebp - 0x7c], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0047efc0
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x4072e7
test eax, eax
je 0x407550
mov byte [eax], 0x5f
mov dword [ebp - 0x64], ebx
lea ecx, [eax + 1]
mov dword [ebp - 0x5c], ecx
lea eax, [ebp - 0x64]
push eax
push ebx
mov eax, dword [ebp - 0x7c]
dec eax
push eax
push ecx
push 0xffffffffffffffff
push dword [ebp - 0x60]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jg 0x407322
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407555
cmp dword [ebp - 0x64], 0
je 0x407332
mov eax, 0x574
jmp 0x407555
push dword [esi + 8]
push 0x24
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x68]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
mov edx, dword [ebp - 0x58]
test eax, eax
jne 0x40736a
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], 1
test edx, edx
jne 0x407366
mov ecx, 0x1400
mov dword [ebp - 0x4c], ecx
jmp 0x40736d
mov ecx, dword [edi]
jmp 0x407361
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x6c], 0
je 0x40737e
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x6c]
mov dword [edx], eax
mov edx, dword [ebp - 0x58]
cmp dword [ebp - 0x70], 0
je 0x40738f
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x70]
mov dword [edx], eax
mov edx, dword [ebp - 0x58]
test edx, edx
jne 0x4073a9
cmp dword [ebp - 0x48], 1
jne 0x4073a5
lea eax, [ecx + ecx]
mov dword [edi], eax
xor eax, eax
jmp 0x407555
mov dword [edi], ecx
jmp 0x40739e
cmp dword [edi], ecx
jb 0x40754b
cmp dword [ebp - 0x44], 0
je 0x40748a
cmp dword [ebp - 0x48], 1
jne 0x407457
push ecx
mov ecx, esi
call fcn.00407117
test al, al
je 0x40754b
push dword [esi + 8]
push dword [ebp - 0x4c]
push dword [esi + 0xc]
push dword [ebp - 0x5c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x407317
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [esi + 0xc]
push ecx
push dword [ebp - 0x4c]
push dword [esi + 0xc]
call fcn.004079f3
test eax, eax
jne 0x407555
mov eax, dword [edi]
shr eax, 1
push eax
mov ecx, dword [ebp - 0x58]
push ecx
push 0xffffffffffffffff
push dword [esi + 0xc]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x407450
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add eax, eax
mov dword [edi], eax
mov eax, 0xea
jmp 0x407555
add eax, eax
jmp 0x40739c
mov dword [edi], ecx
push dword [esi + 8]
push ecx
push edx
push dword [ebp - 0x5c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x407317
push edi
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
push ecx
push dword [ebp - 0x4c]
push ecx
call fcn.004079f3
jmp 0x407555
mov eax, dword [ebp - 0x48]
sub eax, 1
je 0x4074ea
sub eax, 3
mov dword [edi], ecx
push dword [esi + 8]
je 0x4074b7
push ecx
push edx
push dword [ebp - 0x5c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
jne 0x40739e
jmp 0x407317
push 0x14
lea eax, [ebp - 0x30]
push eax
push 0x4d36cb
push dword [ebp - 0x5c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x407317
lea eax, [ebp - 0x30]
push eax
call fcn.0048dee0
pop ecx
mov ecx, dword [ebp - 0x58]
mov dword [ecx], eax
jmp 0x40739e
mov eax, dword [edi]
cmp eax, 2
jb 0x40754b
shr eax, 1
mov dword [ebp - 0x4c], eax
push eax
mov ecx, esi
call fcn.00407117
test al, al
je 0x407550
push dword [esi + 8]
push dword [ebp - 0x4c]
push dword [esi + 0xc]
push 0x4d36cb
push dword [ebp - 0x5c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x407317
mov eax, dword [edi]
shr eax, 1
push eax
mov ecx, dword [ebp - 0x58]
push ecx
push 0xffffffffffffffff
push dword [esi + 0xc]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x40739e
jmp 0x407317
push 8
pop eax
jmp 0x407555
mov eax, 0x3e9
lea esp, [ebp - 0x90]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18