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

Disassembly:
push 0xffffffffffffffff
push 0x449745
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4581b0]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4581b0]
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 0x406c10
mov eax, ebp
call fcn.004315fe
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.00405db0
test al, al
jne 0x406c6b
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x406c4d
push eax
call fcn.00433114
add esp, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
cmp ebp, ebx
je 0x406c64
mov eax, ebp
call fcn.0043160c
xor al, al
jmp 0x40720a
lea eax, [esp + 0x74]
push eax
call fcn.00404060
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0xf8], 2
call fcn.004056e0
test al, al
jne 0x406c9a
lea esi, [esp + 0x74]
call fcn.00406460
jmp 0x406c3c
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.00404bb0
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x406cd4
mov edx, dword [esp + 0x40]
sub edx, eax
jne 0x406cee
push eax
call fcn.00433114
add esp, 4
lea esi, [esp + 0x74]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00406460
jmp 0x406c3c
lea eax, [esp + 0xc4]
push eax
call fcn.00409d90
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.00409f10
test al, al
jne 0x406d76
lea ecx, [esp + 0xa8]
call fcn.00401950
lea edx, [esp + 0xc4]
push edx
mov byte [esp + 0xf8], 3
call fcn.00409e60
lea esi, [esp + 0x38]
call fcn.00402e30
lea esi, [esp + 0x74]
call fcn.00406460
lea esi, [esp + 0x28]
call fcn.00402e30
jmp 0x406c59
lea esi, [esp + 0x14]
call fcn.00431163
push 2
push 0x40000000
lea eax, [esp + 0xb0]
call fcn.004312b9
test al, al
jne 0x406db5
lea eax, [esp + 0x14]
call fcn.00431294
lea ecx, [esp + 0xa8]
call fcn.00401950
lea eax, [esp + 0xc4]
push eax
jmp 0x406d49
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
mov dword [esp + 0x48], ebx
jne 0x406dc7
mov dword [esp + 0x1c], ebx
jmp 0x406dd1
mov eax, dword [esp + 0x40]
sub eax, ecx
mov dword [esp + 0x1c], eax
xor edi, edi
lea esi, [esp + 0x38]
call fcn.00402fb0
mov edi, dword [esp + 0x1c]
push eax
lea esi, [esp + 0x4c]
lea eax, [esp + 0x18]
call fcn.0043132e
test al, al
jne 0x406e1b
lea esi, [esp + 0x14]
call fcn.00431360
mov eax, esi
call fcn.00431294
lea ecx, [esp + 0xa8]
call fcn.00401950
lea ecx, [esp + 0xc4]
push ecx
jmp 0x406d49
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
jne 0x406e27
xor eax, eax
jmp 0x406e2d
mov eax, dword [esp + 0x40]
sub eax, ecx
cmp dword [esp + 0x48], eax
je 0x406e48
lea esi, [esp + 0x14]
call fcn.00431360
mov eax, esi
call fcn.00431294
jmp 0x406d35
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x406e56
mov dword [esp + 0x5c], ebx
jmp 0x406e60
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.0043132e
test al, al
jne 0x406e89
lea esi, [esp + 0x14]
call fcn.00431360
jmp 0x406d96
cmp dword [esp + 0x48], edi
jne 0x406df2
lea eax, [esp + 0x28]
call fcn.00407530
test al, al
jne 0x406f03
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
jne 0x406eae
mov dword [esp + 0x1c], ebx
jmp 0x406eb8
mov eax, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x1c], eax
xor edi, edi
lea esi, [esp + 0x28]
call fcn.00402fb0
mov edi, dword [esp + 0x1c]
push eax
lea esi, [esp + 0x4c]
lea eax, [esp + 0x18]
call fcn.0043132e
test al, al
je 0x406e33
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
jne 0x406ee9
xor eax, eax
jmp 0x406eef
mov eax, dword [esp + 0x30]
sub eax, ecx
cmp dword [esp + 0x48], eax
je 0x406f03
lea esi, [esp + 0x14]
call fcn.00431360
jmp 0x406d96
lea esi, [esp + 0x54]
lea eax, [esp + 0x14]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.00431382
test al, al
je 0x406f2f
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ecx
push edx
lea edi, [esp + 0x1c]
call fcn.0043145a
lea esi, [esp + 0x14]
call fcn.00431360
cmp ebp, ebx
je 0x406f49
mov eax, ebp
call fcn.0043160c
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 0x406f65
call fcn.0043157d
mov byte [esp + 0x50], al
mov byte [esp + 0xf4], 7
mov edi, dword [esp + 0x18]
xor esi, esi
jmp 0x406f80
mov ecx, edi
lea ebx, [esp + 0xa8]
call fcn.004316f5
mov bl, al
mov byte [esp + 0x27], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
test bl, bl
jne 0x4071af
cmp eax, 0x20
je 0x406fac
cmp eax, 0x21
jne 0x406fb4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 1
cmp esi, 0xa
jb 0x406f80
lea esi, [esp + 0x18]
call fcn.00431163
push 3
push 0x80000000
lea eax, [esp + 0xb0]
mov byte [esp + 0xfc], 8
call fcn.004312b9
test al, al
jne 0x407042
lea eax, [esp + 0x18]
call fcn.00431294
lea edi, [esp + 0x4c]
call fcn.00404040
lea eax, [esp + 0x14]
call fcn.00431294
lea ecx, [esp + 0xa8]
call fcn.00401950
lea eax, [esp + 0xc4]
push eax
mov byte [esp + 0xf8], 3
call fcn.00409e60
lea esi, [esp + 0x38]
call fcn.00402e30
lea esi, [esp + 0x74]
call fcn.00406460
lea esi, [esp + 0x28]
call fcn.00402e30
test ebp, ebp
jmp 0x406c5b
lea ecx, [esp + 0x18]
push ecx
call fcn.0043143f
test al, al
jne 0x407081
lea eax, [esp + 0x18]
call fcn.00431294
lea edi, [esp + 0x4c]
call fcn.00404040
lea eax, [esp + 0x14]
call fcn.00431294
lea ecx, [esp + 0xa8]
call fcn.00401950
lea edx, [esp + 0xc4]
push edx
jmp 0x407013
lea esi, [esp + 0x20]
call fcn.00431163
push 4
push 0x40000000
mov eax, edi
call fcn.004312b9
test al, al
jne 0x4070a8
mov eax, esi
call fcn.00431294
jmp 0x406fe4
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.00402ef0
push ebx
xor edi, edi
lea esi, [esp + 0x64]
call fcn.00402fb0
push eax
lea edx, [esp + 0x24]
lea eax, [esp + 0x20]
call fcn.004312f8
test al, al
je 0x40724b
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp ebx, eax
jne 0x40724b
cmp dword [esp + 0x58], ecx
jne 0x40724b
lea ecx, [esp + 0x20]
push ecx
call fcn.0043143f
test al, al
jne 0x40712d
call fcn.00402e30
lea eax, [esp + 0x20]
call fcn.00431294
jmp 0x407050
mov dword [esp + 0x1c], edi
xor edi, edi
call fcn.00402fb0
push eax
lea esi, [esp + 0x20]
mov edi, ebx
lea eax, [esp + 0x24]
call fcn.0043132e
test al, al
je 0x407234
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, ebx
jne 0x407234
mov eax, dword [esp + 0x58]
cmp ecx, eax
jne 0x407234
push eax
push ebx
lea edi, [esp + 0x28]
call fcn.0043145a
test al, al
je 0x40717e
mov byte [esp + 0x27], 1
lea esi, [esp + 0x20]
call fcn.00431360
lea esi, [esp + 0x18]
call fcn.00431360
lea esi, [esp + 0x60]
call fcn.00402e30
lea eax, [esp + 0x20]
call fcn.00431294
lea eax, [esp + 0x18]
call fcn.00431294
mov bl, byte [esp + 0x27]
lea edi, [esp + 0x4c]
call fcn.00404040
lea eax, [esp + 0x14]
call fcn.00431294
lea ecx, [esp + 0xa8]
call fcn.00401950
lea edx, [esp + 0xc4]
push edx
mov byte [esp + 0xf8], 3
call fcn.00409e60
lea esi, [esp + 0x38]
call fcn.00402e30
lea esi, [esp + 0x74]
call fcn.00406460
lea esi, [esp + 0x28]
call fcn.00402e30
test ebp, ebp
je 0x407208
mov eax, ebp
call fcn.0043160c
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.004337a7
add esp, 0xe4
ret 4
lea esi, [esp + 0x60]
call fcn.00402e30
lea eax, [esp + 0x20]
call fcn.00431294
jmp 0x406fe4
lea esi, [esp + 0x60]
call fcn.00402e30
lea eax, [esp + 0x20]
call fcn.00431294
lea eax, [esp + 0x18]
call fcn.00431294
lea edi, [esp + 0x4c]
call fcn.00404040
lea eax, [esp + 0x14]
call fcn.00431294
lea ecx, [esp + 0xa8]
call fcn.00401950
lea ecx, [esp + 0xc4]
push ecx
jmp 0x407013