Function at 0x406c7c
Capabilities:
Read .ini file

Disassembly:
push 0x68
push 0x4424d0
call fcn.004141a0
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 - 0x74], edi
lea ecx, [ebp - 0x54]
call fcn.00407145
test edi, edi
jne 0x406cb9
xor eax, eax
inc eax
jmp 0x406f81
mov eax, dword [esi]
test eax, eax
jne 0x406f81
push dword [ebp - 0x60]
call fcn.0041889d
pop ecx
lea eax, [eax*4 + 3]
mov dword [ebp - 0x78], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004141f0
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x406d24
test eax, eax
je 0x406f7c
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 - 0x78]
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 0x406d5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406f81
cmp dword [ebp - 0x64], 0
je 0x406d6f
mov eax, 0x574
jmp 0x406f81
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 0x406da7
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], 1
test edx, edx
jne 0x406da3
mov ecx, 0x1400
mov dword [ebp - 0x4c], ecx
jmp 0x406daa
mov ecx, dword [edi]
jmp 0x406d9e
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x6c], 0
je 0x406dbb
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x6c]
mov dword [edx], eax
mov edx, dword [ebp - 0x58]
test edx, edx
jne 0x406dd5
cmp dword [ebp - 0x48], 1
jne 0x406dd1
lea eax, [ecx + ecx]
mov dword [edi], eax
xor eax, eax
jmp 0x406f81
mov dword [edi], ecx
jmp 0x406dca
cmp dword [edi], ecx
jb 0x406f77
cmp dword [ebp - 0x44], 0
je 0x406eb6
cmp dword [ebp - 0x48], 1
jne 0x406e83
push ecx
mov ecx, esi
call fcn.00407173
test al, al
je 0x406f77
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 0x406d54
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.00406a46
test eax, eax
jne 0x406f81
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 0x406e7c
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 0x406f81
add eax, eax
jmp 0x406dc8
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 0x406d54
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.00406a46
jmp 0x406f81
mov eax, dword [ebp - 0x48]
sub eax, 1
je 0x406f16
sub eax, 3
mov dword [edi], ecx
push dword [esi + 8]
je 0x406ee3
push ecx
push edx
push dword [ebp - 0x5c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
jne 0x406dca
jmp 0x406d54
push 0x14
lea eax, [ebp - 0x30]
push eax
push 0x43cfe6
push dword [ebp - 0x5c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x406d54
lea eax, [ebp - 0x30]
push eax
call fcn.0041977e
pop ecx
mov ecx, dword [ebp - 0x58]
mov dword [ecx], eax
jmp 0x406dca
mov eax, dword [edi]
cmp eax, 2
jb 0x406f77
shr eax, 1
mov dword [ebp - 0x4c], eax
push eax
mov ecx, esi
call fcn.00407173
test al, al
je 0x406f7c
push dword [esi + 8]
push dword [ebp - 0x4c]
push dword [esi + 0xc]
push 0x43cfe6
push dword [ebp - 0x5c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x406d54
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 0x406dca
jmp 0x406d54
push 8
pop eax
jmp 0x406f81
mov eax, 0x3e9
lea esp, [ebp - 0x88]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18