Function at 0x406920
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a108
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x425010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov edx, esi
lea edi, [edx + 2]
jmp 0x406960
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406960
sub edx, edi
xor eax, eax
sar edx, 1
je 0x406b8d
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x5c], ax
cmp word [esi], ax
jne 0x40698e
xor ecx, ecx
jmp 0x4069a2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406993
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x5c]
call fcn.00408800
push 1
push ecx
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x90], 0x20
call fcn.00408200
mov esi, eax
test esi, esi
jns 0x4069dc
xor esi, esi
jmp 0x406b7a
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
push esi
push eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x5c]
call fcn.00407c40
mov edi, eax
lea eax, [ebp - 0x44]
cmp eax, edi
je 0x406a47
cmp dword [ebp - 0x30], 8
jb 0x406a2a
push dword [ebp - 0x44]
call fcn.0040bdac
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
push edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.00408070
cmp dword [ebp - 0x60], 8
jb 0x406a58
push dword [ebp - 0x74]
call fcn.0040bdac
add esp, 4
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00407c40
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x406aa1
cmp dword [ebp - 0x18], 8
jb 0x406a84
push dword [ebp - 0x2c]
call fcn.0040bdac
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00408070
cmp dword [ebp - 0x60], 8
jb 0x406ab2
push dword [ebp - 0x74]
call fcn.0040bdac
add esp, 4
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.0040caea
add esp, 4
mov dword [ebx + 0x1180], eax
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x406adb
xor esi, esi
jmp 0x406b30
cmp dword [ebp - 0x1c], 0
jne 0x406ae8
mov esi, 2
jmp 0x406b30
lea eax, [ebp - 0x8c]
push eax
call fcn.00406bb0
cmp dword [ebp - 0x78], 8
lea ecx, [ebp - 0x8c]
lea eax, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x8c]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push 0x844
push ebx
push str.login
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
lea ecx, [ebp - 0x8c]
mov esi, eax
call fcn.00407b20
cmp dword [ebp - 0x18], 8
jb 0x406b41
push dword [ebp - 0x2c]
call fcn.0040bdac
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x406b66
push dword [ebp - 0x44]
call fcn.0040bdac
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
cmp dword [ebp - 0x48], 8
jb 0x406b8b
push dword [ebp - 0x5c]
call fcn.0040bdac
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040bdb1
mov esp, ebp
pop ebp
ret 4