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

Disassembly:
push 0xffffffffffffffff
push 0x695a32
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x170]
mov edx, dword [esp + 0x178]
mov edi, dword [esp + 0x16c]
mov ebp, dword [esp + 0x180]
mov esi, dword [esp + 0x188]
mov ebx, ecx
mov ecx, dword [esp + 0x174]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x184]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x17c]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x18c]
mov dword [esp + 0x1c], ecx
push ebx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
call fcn.004afa40
push str.sshTransportOpenChannel
push esi
lea ecx, [esp + 0x6c]
mov dword [esp + 0x16c], 0
call fcn.004b1850
mov eax, dword [esp + 0x38]
mov dword [eax], 0xffffffff
cmp byte [ebp + 0x24], 0
mov byte [esp + 0x164], 1
je 0x5a4728
cmp dword [ebp + 0x28], 0
jne 0x5a4728
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.No_m_pHandler.
mov ecx, esi
call eax
test edi, edi
je 0x5a4bb5
mov eax, 1
cmp dword [edi + 0x1c], eax
jne 0x5a47a0
push str.Globalscape
push str.serverversion
mov ecx, ebx
call fcn.0059ecf0
test al, al
je 0x5a478b
add ebx, 0x3e8
push 0
mov ecx, ebx
call fcn.005a69c0
test eax, eax
je 0x5a477f
mov ecx, dword [0x78c880]
mov dword [edi + 0x94], ecx
add dword [0x78c880], 1
push eax
mov ecx, ebx
call fcn.005a67b0
jmp 0x5a47b2
mov dword [edi + 0x94], 0
jmp 0x5a47b2
mov edx, dword [0x78c880]
mov dword [edi + 0x94], edx
add dword [0x78c880], 1
jmp 0x5a47b2
mov ecx, dword [0x78c880]
mov dword [edi + 0x94], ecx
add dword [0x78c880], eax
lea ecx, [esp + 0x28]
call fcn.004afd30
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x164], 2
mov dword [esp + 0x2c], edi
call fcn.00512090
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov dword [edx], 0
mov dword [eax], 0
call fcn.00484ec0
lea ecx, [esp + 0x3c]
call fcn.00468060
push 0x5a
lea ecx, [esp + 0x40]
mov byte [esp + 0x168], 3
call fcn.00468d30
lea ecx, [esp + 0x3c]
lea ebx, [edi + 0x20]
push ecx
mov ecx, ebx
call fcn.00483ec0
push eax
call fcn.005cd220
add esp, 8
cmp byte [esi + 0x121], 0
je 0x5a4870
push ebx
push str.channelType
mov ecx, esi
call fcn.004b1210
mov edx, dword [edi + 0x94]
push edx
push str.clientChannel
mov ecx, esi
call fcn.004b14c0
mov eax, dword [edi + 0x98]
push eax
push str.clientInitialWindowSize
mov ecx, esi
call fcn.004b14c0
mov ecx, dword [edi + 0x9c]
push ecx
push str.clientMaxPacketSize
mov ecx, esi
call fcn.004b14c0
mov eax, dword [edi + 0x94]
lea edx, [esp + 0x3c]
push edx
push eax
call fcn.005cd100
mov edx, dword [edi + 0x98]
lea ecx, [esp + 0x44]
push ecx
push edx
call fcn.005cd100
mov ecx, dword [edi + 0x9c]
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.005cd100
add esp, 0x18
lea ecx, [esp + 0x70]
call fcn.00485650
mov edx, dword [esp + 0x18]
cmp byte [edx + 0xc4], 0
mov byte [esp + 0x164], 4
je 0x5a48ef
push 0x6d3b50
mov ecx, ebx
call fcn.00483ec0
push eax
lea ecx, [esp + 0x78]
call fcn.00487ce0
mov eax, dword [edi + 0x94]
push eax
push str.channel
lea ecx, [esp + 0x78]
call fcn.00488b40
push 0x701594
mov ecx, ebx
call fcn.00487710
test al, al
je 0x5a496e
lea edx, [esp + 0x3c]
lea ecx, [edi + 0x1e4]
push edx
call fcn.00483ec0
push eax
call fcn.005cd220
mov ecx, dword [edi + 0x258]
lea eax, [esp + 0x44]
push eax
push ecx
call fcn.005cd100
mov ebx, dword [esp + 0x28]
add esp, 0x10
cmp byte [ebx + 0xc4], 0
je 0x5a4aaf
lea ecx, [edi + 0x1e4]
call fcn.00483ec0
push eax
push str.x11_address
lea ecx, [esp + 0x78]
call fcn.00488b80
mov edx, dword [edi + 0x258]
push edx
push str.x11_port
lea ecx, [esp + 0x78]
call fcn.00488b40
jmp 0x5a4aaf
push str.direct_tcpip
mov ecx, ebx
call fcn.00487710
test al, al
je 0x5a4aab
lea eax, [esp + 0x3c]
lea ebx, [edi + 0x25c]
push eax
mov ecx, ebx
call fcn.00483ec0
push eax
call fcn.005cd220
mov edx, dword [edi + 0x2d0]
lea ecx, [esp + 0x44]
push ecx
push edx
call fcn.005cd100
add esp, 0x10
cmp byte [esi + 0x121], 0
je 0x5a49d7
push ebx
push str.directTcpHost
mov ecx, esi
call fcn.004b1210
mov eax, dword [edi + 0x2d0]
push eax
push str.directTcpPort
mov ecx, esi
call fcn.004b14c0
lea ecx, [esp + 0xe4]
call fcn.00485650
push esi
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xec]
push edx
add ecx, 0x46c
mov byte [esp + 0x170], 5
call fcn.005a7080
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xe8]
call fcn.00483ec0
push eax
call fcn.005cd220
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
push ecx
push edx
call fcn.005cd100
add esp, 0x10
cmp byte [esi + 0x121], 0
je 0x5a4a5f
lea eax, [esp + 0xe4]
push eax
push str.originatorIP
mov ecx, esi
call fcn.004b1210
mov ecx, dword [esp + 0x14]
push ecx
push str.originatorPort
mov ecx, esi
call fcn.004b14c0
mov edx, dword [esp + 0x18]
cmp byte [edx + 0xc4], 0
je 0x5a4a97
mov ecx, ebx
call fcn.00483ec0
push eax
push str.tcp_host
lea ecx, [esp + 0x78]
call fcn.00488b80
mov eax, dword [edi + 0x2d0]
push eax
push str.tcp_port
lea ecx, [esp + 0x78]
call fcn.00488b40
lea ecx, [esp + 0xe4]
mov byte [esp + 0x164], 4
call fcn.00485710
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x70]
call fcn.00483ec0
mov ecx, dword [esp + 0x1c]
push esi
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x48]
push ecx
push eax
push str.CHANNEL_OPEN
mov ecx, ebx
mov dword [esp + 0x2c], 0
call fcn.0059f590
test al, al
mov ecx, esi
jne 0x5a4afd
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Error_sending_open_channel_request
call eax
mov cl, byte [ebp + 0x2f]
mov edx, dword [esp + 0x20]
mov byte [edx], cl
jmp 0x5a4b82
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push str.Sent_open_channel_request
call edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x94]
push esi
push ecx
push 1
push ebp
mov ecx, ebx
mov dword [esp + 0x24], 0
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x20], edi
call fcn.005a36d0
test al, al
je 0x5a4c4c
mov dl, byte [ebp + 0x2f]
mov eax, dword [esp + 0x20]
mov byte [eax], dl
mov ecx, dword [ebp + 0x54]
cmp ecx, dword [edi + 0x94]
jne 0x5a4b60
cmp dword [ebp + 0x34], 0x62
jne 0x5a4c5f
lea ecx, [ebp + 0x38]
call fcn.00467d60
jmp 0x5a4c28
cmp dword [edi + 0x1c], 1
je 0x5a4c06
cmp dword [ebp + 0x28], 0
jne 0x5a4c1b
push str.Message_for_another_channel_arrived_when_expecting_a_CHANNEL_OPEN_response.
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x164], 3
call fcn.00485710
lea ecx, [esp + 0x3c]
mov byte [esp + 0x164], 2
call fcn.00468860
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 1
call fcn.004afd40
lea ecx, [esp + 0x64]
mov byte [esp + 0x164], 0
call fcn.004b18c0
lea ecx, [esp + 0x58]
mov dword [esp + 0x164], 0xffffffff
call fcn.004afa70
xor al, al
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x154
ret 0x24
cmp dword [esp + 0x14], 0
jne 0x5a4c1b
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.Received_extraneous_reply_to_open_channel_request__InitializeSFtp___reading_again_for_the_correct_reply...
mov ecx, esi
call eax
lea ecx, [ebp + 0x38]
call fcn.00467d60
add dword [esp + 0x14], 1
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 0x94]
push esi
push edx
mov dword [ebp + 0x14], ecx
push 1
push ebp
mov ecx, ebx
mov dword [ebp + 0x20], edi
call fcn.005a36d0
test al, al
jne 0x5a4b35
mov al, byte [ebp + 0x2f]
mov ecx, dword [esp + 0x20]
mov byte [ecx], al
push str.Error_reading_channel_response.
jmp 0x5a4b79
mov ecx, dword [ebp + 0x34]
mov edx, dword [esp + 0x34]
mov dword [edx], ecx
mov eax, dword [ebp + 0x34]
cmp eax, 0x5b
jne 0x5a4c85
push esi
lea eax, [ebp + 0x38]
push edi
push eax
call fcn.0059e490
add esp, 0xc
mov bl, 1
jmp 0x5a4d4f
cmp eax, 0x5c
jne 0x5a4d2f
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
push esi
push ecx
lea edx, [ebp + 0x38]
push ebx
push edx
call fcn.0059e390
mov eax, dword [ebx]
add esp, 0x10
push eax
push str.reasonCode
mov ecx, esi
call fcn.004b14c0
mov ecx, dword [esp + 0x24]
push ecx
push str.errorDescrip
mov ecx, esi
call fcn.004b1210
mov eax, dword [ebx]
cmp eax, 1
jne 0x5a4ce1
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push str.Server_says_it_is_administratively_prohibited.
push str.reasonCodeMeaning
mov ecx, esi
call eax
jmp 0x5a4d4d
cmp eax, 2
jne 0x5a4cfb
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push str.Server_says_the_connect_failed__no_further_details_provided_by_the_server_.
push str.reasonCodeMeaning
mov ecx, esi
call eax
jmp 0x5a4d4d
cmp eax, 3
jne 0x5a4d15
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push str.Server_says_it_is_an_unknown_channel_type.
push str.reasonCodeMeaning
mov ecx, esi
call eax
jmp 0x5a4d4d
cmp eax, 4
jne 0x5a4d4d
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push str.Server_says_it_has_a_resource_shortage.
push str.reasonCodeMeaning
mov ecx, esi
call eax
jmp 0x5a4d4d
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Unexpected_message_type_received_in_response_to_open_channel_request.
mov ecx, esi
call eax
mov ecx, dword [ebp + 0x34]
push ecx
push str.messageType
mov ecx, esi
call fcn.004b14c0
xor bl, bl
xor eax, eax
test bl, bl
mov dword [ebp + 0x20], eax
je 0x5a4d78
mov edx, dword [edi + 0x94]
mov ecx, dword [esp + 0x38]
mov dword [ecx], edx
mov ecx, dword [esp + 0x18]
push edi
add ecx, 0x3e8
mov dword [esp + 0x30], eax
call fcn.005a6940
lea ecx, [esp + 0x70]
mov byte [esp + 0x164], 3
call fcn.00485710
lea ecx, [esp + 0x3c]
mov byte [esp + 0x164], 2
call fcn.00468860
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 1
call fcn.004afd40
lea ecx, [esp + 0x64]
mov byte [esp + 0x164], 0
call fcn.004b18c0
lea ecx, [esp + 0x58]
mov dword [esp + 0x164], 0xffffffff
call fcn.004afa70
mov al, bl
jmp 0x5a4bdc