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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2dc
mov ebx, dword [esp + 0x304]
mov eax, dword [esp + 0x300]
cmp dword [ebx + 0x11c], 5
mov ebp, dword [ebx + eax*4 + 0x138]
mov esi, dword [ebx]
sete al
mov edi, eax
mov eax, dword [esp + 0x2f8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp eax, 0xff
mov dword [esp + 0x54], eax
ja 0x6b26e4f0
mov eax, edi
movzx eax, al
mov dword [esp + 0x58], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.6b2624a0
test eax, eax
mov edi, eax
js 0x6b26e4d0
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.6b2703b0
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebp
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0xffffffff
call fcn.6b26aac0
cmp eax, 0xffffffff
je 0x6b26e520
test eax, eax
je 0x6b26e564
test al, 4
jne 0x6b26e542
cmp dword [esp + 0x2f0], 1
mov dword [esp + 4], 0
mov dword [esp], ebp
sbb eax, eax
add eax, 3
mov byte [esp + 0x78], 5
mov byte [esp + 0x79], al
mov byte [esp + 0x7a], 0
mov byte [esp + 0x7b], 1
mov byte [esp + 0x7c], 2
call fcn.6b2703b0
lea eax, [esp + 0x70]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x79]
mov dword [esp + 4], ebp
mov dword [esp], ebx
add eax, 2
mov dword [esp + 0xc], eax
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
call fcn.6b24c330
test eax, eax
jne 0x6b26e4ae
movzx eax, byte [esp + 0x79]
add eax, 2
cmp eax, dword [esp + 0x70]
je 0x6b26e586
mov dword [esp], esi
mov dword [esp + 4], str.Unable_to_send_initial_SOCKS5_request.
call fcn.6b24c1c0
add esp, 0x2dc
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.Connection_time_out
mov dword [esp], esi
call fcn.6b24c1c0
mov eax, 0x1c
add esp, 0x2dc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
test al, al
jne 0x6b26e3cb
mov eax, dword [esp + 0x54]
mov dword [esp + 4], str.SOCKS5:_server_resolving_disabled_for_hostnames_of_length___255__actual_len_zu__n
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.6b24c140
mov dword [esp + 0x58], 1
jmp 0x6b26e3d4
mov dword [esp + 4], str.SOCKS5:_no_connection_here
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6b24c1c0
add esp, 0x2dc
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.SOCKS5:_error_occurred_during_connection
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6b24c1c0
add esp, 0x2dc
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.SOCKS5:_connection_timeout
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6b24c1c0
add esp, 0x2dc
mov eax, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.6b2703b0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebp
call fcn.6b26aac0
cmp eax, 0xffffffff
je 0x6b26e5fa
test eax, eax
je 0x6b26e5de
test al, 4
lea esi, [esi]
je 0x6b26e616
mov dword [esp + 4], str.SOCKS5_read_error_occurred
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6b24c1c0
mov eax, 0x38
jmp 0x6b26e4e5
mov dword [esp + 4], str.SOCKS5_read_timeout
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6b24c1c0
mov eax, 0x1c
jmp 0x6b26e4e5
mov dword [esp + 4], str.SOCKS5_nothing_to_read
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6b24c1c0
mov eax, 7
jmp 0x6b26e4e5
mov dword [esp + 4], 0
mov dword [esp], ebp
call fcn.6b2703b0
lea eax, [esp + 0x6c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.6b26dc90
test eax, eax
jne 0x6b26e655
cmp dword [esp + 0x6c], 2
je 0x6b26e66f
mov dword [esp + 4], str.Unable_to_receive_initial_SOCKS5_response.
mov dword [esp], esi
call fcn.6b24c1c0
mov eax, 7
jmp 0x6b26e4e5
cmp byte [esp + 0x78], 5
je 0x6b26e690
mov dword [esp + 4], str.Received_invalid_version_in_initial_SOCKS5_response.
mov dword [esp], esi
call fcn.6b24c1c0
mov eax, 7
jmp 0x6b26e4e5
movzx eax, byte [esp + 0x79]
test al, al
je 0x6b26e6d0
cmp al, 1
je 0x6b26eb0f
cmp al, 2
je 0x6b26e988
add al, 1
nop
lea esi, [esi]
je 0x6b26e771
mov dword [esp + 4], str.Undocumented_SOCKS5_mode_attempted_to_be_used_by_server.
mov dword [esp], esi
call fcn.6b24c1c0
mov eax, 7
jmp 0x6b26e4e5
cmp dword [esp + 0x58], 0
mov byte [esp + 0x78], 5
mov byte [esp + 0x79], 1
mov byte [esp + 0x7a], 0
jne 0x6b26eb44
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x2f8]
mov byte [esp + 0x7b], 3
mov eax, edi
mov byte [esp + 0x7c], al
lea eax, [esp + 0x7d]
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
lea edx, [edi + 5]
mov eax, dword [esp + 0x2fc]
lea edi, [edx + 2]
sar eax, 8
mov byte [esp + edx + 0x78], al
movzx eax, byte [esp + 0x2fc]
cmp dword [ebx + 0x550], 0
mov byte [esp + edx + 0x79], al
je 0x6b26e95b
mov dword [esp + 4], str.SOCKS5_gssapi_protection_not_yet_implemented.
mov dword [esp], esi
call fcn.6b24c1c0
cmp edi, dword [esp + 0x70]
je 0x6b26e7a1
mov dword [esp + 4], str.Failed_to_send_SOCKS5_connect_request.
mov dword [esp], esi
call fcn.6b24c1c0
mov eax, 7
jmp 0x6b26e4e5
cmp dword [esp + 0x2f0], 0
je 0x6b26e787
mov eax, dword [esp + 0x2f0]
cmp byte [eax], 0
jne 0x6b26e7db
mov dword [esp + 4], str.No_authentication_method_was_acceptable.__It_is_quite_likely_that_the_SOCKS5_server_wanted_a_username_password__since_none_was_supplied_to_the_server_on_this_connection._
mov dword [esp], esi
call fcn.6b24c1c0
mov eax, 7
jmp 0x6b26e4e5
cmp dword [ebx + 0x550], 0
je 0x6b26e816
mov dword [esp + 4], str.SOCKS5_gssapi_protection_not_yet_implemented.
mov dword [esp], esi
call fcn.6b24c1c0
cmp dword [esp + 0x6c], 0xa
je 0x6b26e7f5
mov dword [esp + 4], str.Failed_to_receive_SOCKS5_connect_request_ack.
mov dword [esp], esi
call fcn.6b24c1c0
mov eax, 7
jmp 0x6b26e4e5
mov dword [esp + 4], str.No_authentication_method_was_acceptable.
mov dword [esp], esi
call fcn.6b24c1c0
mov eax, 7
jmp 0x6b26e4e5
cmp byte [esp + 0x78], 5
je 0x6b26e847
mov dword [esp + 4], str.SOCKS5_reply_has_wrong_version__version_should_be_5.
mov dword [esp], esi
call fcn.6b24c1c0
mov eax, 7
jmp 0x6b26e4e5
lea eax, [esp + 0x6c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xc], 0xa
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.6b26dc90
test eax, eax
je 0x6b26e7ba
jmp 0x6b26e7c1
movzx edx, byte [esp + 0x79]
test dl, dl
nop
je 0x6b26ec37
movzx ecx, byte [esp + 0x7b]
cmp cl, 1
je 0x6b26ebdc
cmp cl, 3
je 0x6b26ec63
cmp cl, 4
mov eax, 7
jne 0x6b26e4e5
movzx ecx, byte [esp + 0x80]
movzx ebx, byte [esp + 0x81]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], eax
mov edx, ecx
shl edx, 8
or edx, ebx
mov dword [esp + 0x48], edx
movzx edx, byte [esp + 0x8b]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], edx
movzx edx, byte [esp + 0x8a]
mov dword [esp + 0x40], edx
movzx edx, byte [esp + 0x89]
mov dword [esp + 0x3c], edx
movzx edx, byte [esp + 0x88]
mov dword [esp + 0x38], edx
movzx edx, byte [esp + 0x87]
mov dword [esp + 0x34], edx
movzx edx, byte [esp + 0x86]
mov dword [esp + 0x30], edx
movzx edx, byte [esp + 0x85]
mov dword [esp + 0x2c], edx
movzx edx, byte [esp + 0x84]
mov dword [esp + 0x28], edx
movzx edx, byte [esp + 0x83]
mov dword [esp + 0x24], edx
movzx edx, byte [esp + 0x82]
mov dword [esp + 0x20], edx
movzx edx, byte [esp + 0x7f]
mov dword [esp + 0x14], edx
movzx edx, byte [esp + 0x7e]
mov dword [esp + 0x10], edx
movzx edx, byte [esp + 0x7d]
mov dword [esp + 0xc], edx
movzx edx, byte [esp + 0x7c]
mov dword [esp + 8], edx
mov dword [esp + 4], str.Cant_complete_SOCKS5_connection_to__02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_d.___d_
mov dword [esp], esi
call fcn.6b24c1c0
mov eax, dword [esp + 0x54]
jmp 0x6b26e4e5
lea eax, [esp + 0x70]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.6b24c330
test eax, eax
je 0x6b26e751
jmp 0x6b26e757
cmp dword [esp + 0x2f0], 0
je 0x6b26eaf4
cmp dword [esp + 0x2f4], 0
je 0x6b26eaf4
mov edi, dword [esp + 0x2f0]
or edx, 0xffffffff
xor eax, eax
mov ecx, edx
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x2f4]
not ecx
sub ecx, 1
mov dword [esp + 0x5c], ecx
mov ecx, edx
repne scasb al, byte es:[edi]
mov byte [esp + 0x78], 1
not ecx
lea edi, [ecx - 1]
mov ecx, dword [esp + 0x5c]
test ecx, ecx
mov byte [esp + 0x79], cl
je 0x6b26e9f9
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x2f0]
lea eax, [esp + 0x7a]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x5c]
test edi, edi
mov ecx, eax
lea edx, [eax + 3]
mov eax, edi
mov byte [esp + ecx + 0x7a], al
je 0x6b26ea31
mov ecx, dword [esp + 0x2f4]
lea eax, [esp + 0x78]
add eax, edx
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 0x5c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x70]
add edi, edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.6b24c330
test eax, eax
jne 0x6b26ea5d
cmp edi, dword [esp + 0x70]
je 0x6b26ea77
mov dword [esp + 4], str.Failed_to_send_SOCKS5_sub_negotiation_request.
mov dword [esp], esi
call fcn.6b24c1c0
mov eax, 7
jmp 0x6b26e4e5
lea eax, [esp + 0x6c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.6b26dc90
test eax, eax
jne 0x6b26eaa6
cmp dword [esp + 0x6c], 2
je 0x6b26eac0
mov dword [esp + 4], str.Unable_to_receive_SOCKS5_sub_negotiation_response.
mov dword [esp], esi
call fcn.6b24c1c0
mov eax, 7
jmp 0x6b26e4e5
movzx eax, byte [esp + 0x79]
test al, al
je 0x6b26e6d0
mov dword [esp + 0xc], eax
movzx eax, byte [esp + 0x78]
mov dword [esp + 4], str.User_was_rejected_by_the_SOCKS5_server___d__d_.
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.6b24c1c0
mov eax, 7
jmp 0x6b26e4e5
mov byte [esp + 0x78], 1
xor edi, edi
mov edx, 3
mov byte [esp + 0x79], 0
mov byte [esp + 0x7a], 0
jmp 0x6b26ea31
mov eax, dword [esp + 0x300]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.6b26f310
test eax, eax
je 0x6b26e6d0
mov dword [esp + 4], str.Unable_to_negotiate_SOCKS5_gssapi_context.
mov dword [esp], esi
call fcn.6b24c1c0
mov eax, 7
jmp 0x6b26e4e5
mov eax, dword [esp + 0x2fc]
lea edi, [esp + 0x74]
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2f8]
mov dword [esp + 4], eax
call fcn.6b242650
cmp eax, 0xffffffff
je 0x6b26ebd2
sub eax, 1
je 0x6b26ebbd
mov eax, dword [esp + 0x74]
test eax, eax
je 0x6b26eb98
mov edx, dword [eax]
test edx, edx
je 0x6b26eb98
cmp dword [edx + 4], 2
je 0x6b26eca5
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.6b2428b0
mov eax, dword [esp + 0x2f8]
mov dword [esp + 4], str.Failed_to_resolve___s__for_SOCKS5_connect.
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.6b24c1c0
mov eax, 6
jmp 0x6b26e4e5
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.6b279ea0
test eax, eax
je 0x6b26eb74
jmp 0x6b26e4e5
mov eax, 6
jmp 0x6b26e4e5
movzx eax, byte [esp + 0x80]
mov dword [esp + 0x1c], edx
movzx edx, byte [esp + 0x81]
mov dword [esp + 4], str.Cant_complete_SOCKS5_connection_to__d._d._d._d:_d.___d_
mov dword [esp], esi
shl eax, 8
or eax, edx
mov dword [esp + 0x18], eax
movzx eax, byte [esp + 0x7f]
mov dword [esp + 0x14], eax
movzx eax, byte [esp + 0x7e]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x7d]
mov dword [esp + 0xc], eax
movzx eax, byte [esp + 0x7c]
mov dword [esp + 8], eax
call fcn.6b24c1c0
mov eax, 7
jmp 0x6b26e4e5
movzx eax, byte [esp + 0x7b]
cmp al, 3
je 0x6b26ed46
cmp al, 4
je 0x6b26ecf7
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.6b2703b0
xor eax, eax
jmp 0x6b26e4e5
movzx eax, byte [esp + 0x80]
mov dword [esp + 0x10], edx
movzx edx, byte [esp + 0x81]
mov dword [esp + 4], str.Cant_complete_SOCKS5_connection_to__s:_d.___d_
mov dword [esp], esi
shl eax, 8
or eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2f8]
mov dword [esp + 8], eax
call fcn.6b24c1c0
mov eax, 7
jmp 0x6b26e4e5
mov byte [esp + 0x7b], 1
mov edi, dword [edx + 0x18]
mov edx, 4
movzx eax, byte [edi + edx]
mov byte [esp + edx + 0x78], al
add edx, 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6b28eb75
mov dword [esp], esi
mov dword [esp + 0x54], edx
call fcn.6b24c140
mov edx, dword [esp + 0x54]
cmp edx, 8
jne 0x6b26ecb2
mov eax, dword [esp + 0x74]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.6b2428b0
mov edx, dword [esp + 0x54]
jmp 0x6b26e717
cmp dword [ebx + 0x550], 0
mov eax, 0x16
jne 0x6b26ec4c
lea edi, [eax - 0xa]
lea eax, [esp + 0x6c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x82]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.6b26dc90
test eax, eax
jne 0x6b26e7c1
cmp edi, dword [esp + 0x6c]
jne 0x6b26e7c1
jmp 0x6b26ec4c
movzx eax, byte [esp + 0x7c]
add eax, 7
cmp dword [ebx + 0x550], 0
jne 0x6b26ec4c
cmp eax, 0xa
jle 0x6b26ec4c
jmp 0x6b26ed09