Function at 0x40722f
Capabilities:
Read .ini file

Disassembly:
push 0x70
push 0x4e3970
call fcn.004b17e0
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.004070df
test edi, edi
jne 0x407272
xor eax, eax
inc eax
jmp 0x40754b
mov eax, dword [esi]
test eax, eax
jne 0x40754b
push dword [ebp - 0x60]
call fcn.00482158
pop ecx
lea eax, [eax*4 + 3]
mov dword [ebp - 0x7c], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004799a0
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x4072dd
test eax, eax
je 0x407546
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 0x407318
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40754b
cmp dword [ebp - 0x64], 0
je 0x407328
mov eax, 0x574
jmp 0x40754b
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 0x407360
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], 1
test edx, edx
jne 0x40735c
mov ecx, 0x1400
mov dword [ebp - 0x4c], ecx
jmp 0x407363
mov ecx, dword [edi]
jmp 0x407357
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x6c], 0
je 0x407374
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 0x407385
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x70]
mov dword [edx], eax
mov edx, dword [ebp - 0x58]
test edx, edx
jne 0x40739f
cmp dword [ebp - 0x48], 1
jne 0x40739b
lea eax, [ecx + ecx]
mov dword [edi], eax
xor eax, eax
jmp 0x40754b
mov dword [edi], ecx
jmp 0x407394
cmp dword [edi], ecx
jb 0x407541
cmp dword [ebp - 0x44], 0
je 0x407480
cmp dword [ebp - 0x48], 1
jne 0x40744d
push ecx
mov ecx, esi
call fcn.0040710d
test al, al
je 0x407541
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 0x40730d
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.004079e9
test eax, eax
jne 0x40754b
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 0x407446
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 0x40754b
add eax, eax
jmp 0x407392
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 0x40730d
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.004079e9
jmp 0x40754b
mov eax, dword [ebp - 0x48]
sub eax, 1
je 0x4074e0
sub eax, 3
mov dword [edi], ecx
push dword [esi + 8]
je 0x4074ad
push ecx
push edx
push dword [ebp - 0x5c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
jne 0x407394
jmp 0x40730d
push 0x14
lea eax, [ebp - 0x30]
push eax
push 0x4cd6c7
push dword [ebp - 0x5c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40730d
lea eax, [ebp - 0x30]
push eax
call fcn.004888c0
pop ecx
mov ecx, dword [ebp - 0x58]
mov dword [ecx], eax
jmp 0x407394
mov eax, dword [edi]
cmp eax, 2
jb 0x407541
shr eax, 1
mov dword [ebp - 0x4c], eax
push eax
mov ecx, esi
call fcn.0040710d
test al, al
je 0x407546
push dword [esi + 8]
push dword [ebp - 0x4c]
push dword [esi + 0xc]
push 0x4cd6c7
push dword [ebp - 0x5c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40730d
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 0x407394
jmp 0x40730d
push 8
pop eax
jmp 0x40754b
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