Function at 0x406b90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x447885
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4551b0]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4551b0]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov eax, dword [esp + 0xfc]
mov esi, ecx
lea ebp, [esi + 4]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x70], ebp
je 0x406bf0
mov eax, ebp
call fcn.0042f98f
mov dword [esp + 0xf4], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0xf4], 1
mov edx, dword [esi]
push ecx
push edx
call fcn.00405d90
test al, al
jne 0x406c4b
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x406c2d
push eax
call fcn.00431474
add esp, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
cmp ebp, ebx
je 0x406c44
mov eax, ebp
call fcn.0042f99d
xor al, al
jmp 0x4071ea
lea eax, [esp + 0x74]
push eax
call fcn.00404040
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0xf8], 2
call fcn.004056c0
test al, al
jne 0x406c7a
lea esi, [esp + 0x74]
call fcn.00406440
jmp 0x406c1c
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
lea eax, [esp + 0x38]
lea ecx, [esp + 0x74]
mov byte [esp + 0xf4], 3
call fcn.00404b90
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x406cb4
mov edx, dword [esp + 0x40]
sub edx, eax
jne 0x406cce
push eax
call fcn.00431474
add esp, 4
lea esi, [esp + 0x74]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00406440
jmp 0x406c1c
lea eax, [esp + 0xc4]
push eax
call fcn.00409db0
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0xc8]
mov byte [esp + 0xf8], 5
call fcn.00409f30
test al, al
jne 0x406d56
lea ecx, [esp + 0xa8]
call fcn.00401940
lea edx, [esp + 0xc4]
push edx
mov byte [esp + 0xf8], 3
call fcn.00409e80
lea esi, [esp + 0x38]
call fcn.00402eb0
lea esi, [esp + 0x74]
call fcn.00406440
lea esi, [esp + 0x28]
call fcn.00402eb0
jmp 0x406c39
lea esi, [esp + 0x14]
call fcn.0042f60d
push 2
push 0x40000000
lea eax, [esp + 0xb0]
call fcn.0042f64a
test al, al
jne 0x406d95
lea eax, [esp + 0x14]
call fcn.0042f625
lea ecx, [esp + 0xa8]
call fcn.00401940
lea eax, [esp + 0xc4]
push eax
jmp 0x406d29
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
mov dword [esp + 0x48], ebx
jne 0x406da7
mov dword [esp + 0x1c], ebx
jmp 0x406db1
mov eax, dword [esp + 0x40]
sub eax, ecx
mov dword [esp + 0x1c], eax
xor edi, edi
lea esi, [esp + 0x38]
call fcn.00403030
mov edi, dword [esp + 0x1c]
push eax
lea esi, [esp + 0x4c]
lea eax, [esp + 0x18]
call fcn.0042f6bf
test al, al
jne 0x406dfb
lea esi, [esp + 0x14]
call fcn.0042f6f1
mov eax, esi
call fcn.0042f625
lea ecx, [esp + 0xa8]
call fcn.00401940
lea ecx, [esp + 0xc4]
push ecx
jmp 0x406d29
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
jne 0x406e07
xor eax, eax
jmp 0x406e0d
mov eax, dword [esp + 0x40]
sub eax, ecx
cmp dword [esp + 0x48], eax
je 0x406e28
lea esi, [esp + 0x14]
call fcn.0042f6f1
mov eax, esi
call fcn.0042f625
jmp 0x406d15
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x406e36
mov dword [esp + 0x5c], ebx
jmp 0x406e40
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov dword [esp + 0x5c], ecx
lea edx, [esp + 0x5c]
push edx
lea esi, [esp + 0x4c]
mov edi, 4
lea eax, [esp + 0x18]
call fcn.0042f6bf
test al, al
jne 0x406e69
lea esi, [esp + 0x14]
call fcn.0042f6f1
jmp 0x406d76
cmp dword [esp + 0x48], edi
jne 0x406dd2
lea eax, [esp + 0x28]
call fcn.00407510
test al, al
jne 0x406ee3
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
jne 0x406e8e
mov dword [esp + 0x1c], ebx
jmp 0x406e98
mov eax, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x1c], eax
xor edi, edi
lea esi, [esp + 0x28]
call fcn.00403030
mov edi, dword [esp + 0x1c]
push eax
lea esi, [esp + 0x4c]
lea eax, [esp + 0x18]
call fcn.0042f6bf
test al, al
je 0x406e13
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
jne 0x406ec9
xor eax, eax
jmp 0x406ecf
mov eax, dword [esp + 0x30]
sub eax, ecx
cmp dword [esp + 0x48], eax
je 0x406ee3
lea esi, [esp + 0x14]
call fcn.0042f6f1
jmp 0x406d76
lea esi, [esp + 0x54]
lea eax, [esp + 0x14]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.0042f713
test al, al
je 0x406f0f
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ecx
push edx
lea edi, [esp + 0x1c]
call fcn.0042f7eb
lea esi, [esp + 0x14]
call fcn.0042f6f1
cmp ebp, ebx
je 0x406f29
mov eax, ebp
call fcn.0042f99d
xor ebp, ebp
mov dword [esp + 0x70], ebp
mov esi, dword [esp + 0x20]
add esi, 8
cmp esi, ebx
mov dword [esp + 0x4c], esi
mov byte [esp + 0x50], bl
je 0x406f45
call fcn.0042f90e
mov byte [esp + 0x50], al
mov byte [esp + 0xf4], 7
mov edi, dword [esp + 0x18]
xor esi, esi
jmp 0x406f60
mov ecx, edi
lea ebx, [esp + 0xa8]
call fcn.0042fa86
mov bl, al
mov byte [esp + 0x27], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
test bl, bl
jne 0x40718f
cmp eax, 0x20
je 0x406f8c
cmp eax, 0x21
jne 0x406f94
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 1
cmp esi, 0xa
jb 0x406f60
lea esi, [esp + 0x18]
call fcn.0042f60d
push 3
push 0x80000000
lea eax, [esp + 0xb0]
mov byte [esp + 0xfc], 8
call fcn.0042f64a
test al, al
jne 0x407022
lea eax, [esp + 0x18]
call fcn.0042f625
lea edi, [esp + 0x4c]
call fcn.00404020
lea eax, [esp + 0x14]
call fcn.0042f625
lea ecx, [esp + 0xa8]
call fcn.00401940
lea eax, [esp + 0xc4]
push eax
mov byte [esp + 0xf8], 3
call fcn.00409e80
lea esi, [esp + 0x38]
call fcn.00402eb0
lea esi, [esp + 0x74]
call fcn.00406440
lea esi, [esp + 0x28]
call fcn.00402eb0
test ebp, ebp
jmp 0x406c3b
lea ecx, [esp + 0x18]
push ecx
call fcn.0042f7d0
test al, al
jne 0x407061
lea eax, [esp + 0x18]
call fcn.0042f625
lea edi, [esp + 0x4c]
call fcn.00404020
lea eax, [esp + 0x14]
call fcn.0042f625
lea ecx, [esp + 0xa8]
call fcn.00401940
lea edx, [esp + 0xc4]
push edx
jmp 0x406ff3
lea esi, [esp + 0x20]
call fcn.0042f60d
push 4
push 0x40000000
mov eax, edi
call fcn.0042f64a
test al, al
jne 0x407088
mov eax, esi
call fcn.0042f625
jmp 0x406fc4
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov byte [esp + 0xf4], 0xa
mov ebx, dword [esp + 0x54]
lea eax, [ebx + 8]
lea ecx, [esp + 0x60]
call fcn.00402f70
push ebx
xor edi, edi
lea esi, [esp + 0x64]
call fcn.00403030
push eax
lea edx, [esp + 0x24]
lea eax, [esp + 0x20]
call fcn.0042f689
test al, al
je 0x40722b
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp ebx, eax
jne 0x40722b
cmp dword [esp + 0x58], ecx
jne 0x40722b
lea ecx, [esp + 0x20]
push ecx
call fcn.0042f7d0
test al, al
jne 0x40710d
call fcn.00402eb0
lea eax, [esp + 0x20]
call fcn.0042f625
jmp 0x407030
mov dword [esp + 0x1c], edi
xor edi, edi
call fcn.00403030
push eax
lea esi, [esp + 0x20]
mov edi, ebx
lea eax, [esp + 0x24]
call fcn.0042f6bf
test al, al
je 0x407214
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, ebx
jne 0x407214
mov eax, dword [esp + 0x58]
cmp ecx, eax
jne 0x407214
push eax
push ebx
lea edi, [esp + 0x28]
call fcn.0042f7eb
test al, al
je 0x40715e
mov byte [esp + 0x27], 1
lea esi, [esp + 0x20]
call fcn.0042f6f1
lea esi, [esp + 0x18]
call fcn.0042f6f1
lea esi, [esp + 0x60]
call fcn.00402eb0
lea eax, [esp + 0x20]
call fcn.0042f625
lea eax, [esp + 0x18]
call fcn.0042f625
mov bl, byte [esp + 0x27]
lea edi, [esp + 0x4c]
call fcn.00404020
lea eax, [esp + 0x14]
call fcn.0042f625
lea ecx, [esp + 0xa8]
call fcn.00401940
lea edx, [esp + 0xc4]
push edx
mov byte [esp + 0xf8], 3
call fcn.00409e80
lea esi, [esp + 0x38]
call fcn.00402eb0
lea esi, [esp + 0x74]
call fcn.00406440
lea esi, [esp + 0x28]
call fcn.00402eb0
test ebp, ebp
je 0x4071e8
mov eax, ebp
call fcn.0042f99d
mov al, bl
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00431b07
add esp, 0xe4
ret 4
lea esi, [esp + 0x60]
call fcn.00402eb0
lea eax, [esp + 0x20]
call fcn.0042f625
jmp 0x406fc4
lea esi, [esp + 0x60]
call fcn.00402eb0
lea eax, [esp + 0x20]
call fcn.0042f625
lea eax, [esp + 0x18]
call fcn.0042f625
lea edi, [esp + 0x4c]
call fcn.00404020
lea eax, [esp + 0x14]
call fcn.0042f625
lea ecx, [esp + 0xa8]
call fcn.00401940
lea ecx, [esp + 0xc4]
push ecx
jmp 0x406ff3