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

Disassembly:
push 0xffffffffffffffff
push 0x5646c3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], ebx
mov eax, dword [ecx]
mov edx, dword [eax + 0x78]
call edx
mov edi, eax
mov eax, dword [esp + 0x40]
lea esi, [esp + 0x40]
mov dword [esp + 0x18], edi
call fcn.004992f0
mov dword [esp + 0x2c], 1
mov eax, esi
call fcn.00499c50
test al, al
je 0x405d7a
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
mov ecx, edi
call edx
mov edi, esi
call fcn.00499530
mov edi, dword [esp + 0x18]
mov esi, 0x604de0
lea eax, [esp + 0x40]
call fcn.0049a660
test al, al
je 0x405dc3
mov eax, dword [edi]
mov edx, dword [eax + 0x54]
mov ecx, edi
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x70]
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call edx
mov byte [esp + 0x2c], 2
lea edi, [esp + 0x40]
call fcn.00499530
mov byte [esp + 0x2c], 1
lea ecx, [esp + 0x34]
call fcn.00499450
mov edi, dword [esp + 0x18]
lea eax, [edi + 0x8f0]
call fcn.00403be0
test al, al
je 0x405e4f
push 0
or edi, 0xffffffff
mov eax, 0x5fd800
lea esi, [esp + 0x20]
call fcn.004993c0
mov byte [esp + 0x2c], 3
push 0
or edi, edi
mov eax, 0x5fd800
lea esi, [esp + 0x38]
call fcn.004993c0
mov byte [esp + 0x2c], 4
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
push ecx
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.004058d0
mov byte [esp + 0x2c], 5
lea edi, [esp + 0x40]
call fcn.00499530
mov byte [esp + 0x2c], 4
lea ecx, [esp + 0x20]
call fcn.00499450
mov byte [esp + 0x2c], 3
mov ecx, esi
call fcn.00499450
mov byte [esp + 0x2c], 1
lea ecx, [esp + 0x1c]
call fcn.00499450
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
test al, al
je 0x405e95
push 0
or edi, 0xffffffff
mov eax, str.SFTP_
lea esi, [esp + 0x20]
call fcn.004993c0
mov byte [esp + 0x2c], 6
mov ecx, esi
mov ebx, 1
push ecx
xor edi, edi
lea eax, [esp + 0x44]
mov dword [esp + 0x18], ebx
call fcn.00499bd0
mov byte [esp + 0x34], bl
test eax, eax
jl 0x405e9a
mov byte [esp + 0x34], 0
mov dword [esp + 0x2c], 1
test bl, 1
je 0x405eb7
and ebx, 0xfffffffe
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebx
call fcn.00499450
cmp byte [esp + 0x34], 0
je 0x405f13
push 0
or edi, 0xffffffff
mov eax, str.SFTP_
lea esi, [esp + 0x38]
call fcn.004993c0
mov byte [esp + 0x2c], 7
lea edx, [esp + 0x40]
push edx
mov eax, esi
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0049a280
add esp, 0xc
mov byte [esp + 0x2c], 8
lea edi, [esp + 0x40]
call fcn.00499530
mov byte [esp + 0x2c], 7
lea ecx, [esp + 0x20]
call fcn.00499450
mov byte [esp + 0x2c], 1
mov ecx, esi
call fcn.00499450
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x40]
mov esi, edi
call fcn.004992f0
or ebx, 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 0
mov edx, dword [ebp]
mov eax, dword [edx + 0x30]
mov ecx, ebp
xor esi, esi
call eax
test eax, eax
jle 0x405fd3
mov edx, dword [ebp]
mov eax, dword [edx + 0x3c]
push esi
mov ecx, ebp
call eax
cmp dword [esp + 0x3c], eax
je 0x405f97
mov edx, dword [ebp]
mov eax, dword [edx + 0x3c]
lea ecx, [esp + 0x20]
push ecx
push esi
mov ecx, ebp
call eax
push eax
call fcn.004633b0
mov byte [esp + 0x2c], 9
mov edx, eax
or ebx, 4
mov eax, edi
mov dword [esp + 0x14], ebx
call fcn.0049a630
test al, al
je 0x405f97
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x1361], 0
mov byte [esp + 0x34], 1
je 0x405f9c
mov byte [esp + 0x34], 0
mov dword [esp + 0x2c], 1
test bl, 4
je 0x405fb9
and ebx, 0xfffffffb
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebx
call fcn.00499450
cmp byte [esp + 0x34], 0
jne 0x405ff9
mov edx, dword [ebp]
mov eax, dword [edx + 0x30]
mov ecx, ebp
inc esi
call eax
cmp esi, eax
jl 0x405f45
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x40]
call fcn.00499450
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x44]
call fcn.00408130
push eax
push str._1___2_d__
push edi
call fcn.00499d40
add esp, 0x10
jmp 0x405f31