Function at 0x4a2dd0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c4
mov eax, dword [0x5176f0]
xor eax, esp
mov dword [esp + 0x2c0], eax
mov eax, dword [esp + 0x2c8]
mov ecx, dword [esp + 0x2cc]
push ebx
push ebp
mov ebp, dword [esp + 0x2e4]
mov edx, dword [ebp]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2e0]
push esi
mov esi, dword [esp + 0x2dc]
push edi
mov edi, dword [ebp + eax*4 + 0x190]
xor eax, eax
cmp dword [ebp + 0xc8], 5
mov dword [esp + 0x2c], ecx
sete al
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov eax, esi
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4a2e40
sub eax, ecx
cmp dword [ebp + 0x270], 0
mov ebx, eax
mov dword [esp + 0x30], ebx
je 0x4a2e73
mov ecx, dword [esp + 0x2e4]
mov edx, dword [esp + 0x10]
push ecx
push esi
push str.SOCKS5:_connecting_to_HTTP_proxy__s_port__d_n
push edx
call fcn.0048ae90
add esp, 0x10
cmp dword [esp + 0x18], 0
jne 0x4a2e9c
cmp ebx, 0xff
jbe 0x4a2e9c
mov eax, dword [ebp]
push ebx
push str.SOCKS5:_server_resolving_disabled_for_hostnames_of_length___255__actual_len_zu__n
push eax
call fcn.0048ae90
add esp, 0xc
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x10]
push 1
push 0
push ecx
call fcn.0048bfd0
mov ebx, edx
add esp, 0xc
mov esi, eax
test ebx, ebx
jg 0x4a2ed4
jl 0x4a2ebb
test esi, esi
jae 0x4a2ed4
mov edx, dword [esp + 0x10]
push str.Connection_time_out
push edx
call fcn.0048af30
mov eax, 0x1c
jmp 0x4a3592
push 1
push edi
call fcn.004a69c0
push ebx
push esi
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.00489140
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x4a2efd
mov eax, dword [ebp]
push str.SOCKS5:_no_connection_here
jmp 0x4a3587
test eax, eax
jne 0x4a2f19
mov ecx, dword [ebp]
push str.SOCKS5:_connection_timeout
push ecx
call fcn.0048af30
mov eax, 0x1c
jmp 0x4a3592
test al, 4
je 0x4a2f2b
mov edx, dword [ebp]
push str.SOCKS5:_error_occurred_during_connection
push edx
jmp 0x4a3588
cmp dword [esp + 0x24], 0
push 0
setne al
inc al
push edi
mov byte [esp + 0x40], 5
mov byte [esp + 0x41], al
mov word [esp + 0x42], 0x200
call fcn.004a69c0
mov ecx, dword [esp + 0x2ec]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
push ecx
push edx
push str.SOCKS5_communication_to__s:_d_n
push eax
call fcn.0048ae90
movzx edx, byte [esp + 0x51]
lea ecx, [esp + 0x38]
push ecx
add edx, 2
push edx
lea eax, [esp + 0x58]
push eax
push edi
push ebp
call fcn.0048b640
add esp, 0x2c
test eax, eax
jne 0x4a357e
movzx ecx, byte [esp + 0x39]
add ecx, 2
cmp dword [esp + 0x20], ecx
jne 0x4a357e
push 1
push edi
call fcn.004a69c0
push ebx
push esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call fcn.00489140
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x4a2fca
mov edx, dword [ebp]
push str.SOCKS5_nothing_to_read
push edx
jmp 0x4a3588
test eax, eax
jne 0x4a2fe6
mov eax, dword [ebp]
push str.SOCKS5_read_timeout
push eax
call fcn.0048af30
mov eax, 0x1c
jmp 0x4a3592
test al, 4
je 0x4a3002
mov ecx, dword [ebp]
push str.SOCKS5_read_error_occurred
push ecx
call fcn.0048af30
mov eax, 0x38
jmp 0x4a3592
push 0
push edi
call fcn.004a69c0
lea edx, [esp + 0x1c]
push edx
push 2
lea eax, [esp + 0x48]
push eax
push edi
push ebp
call fcn.004a2830
add esp, 0x1c
test eax, eax
jne 0x4a3572
cmp dword [esp + 0x14], 2
jne 0x4a3572
cmp byte [esp + 0x38], 5
je 0x4a3049
mov ecx, dword [esp + 0x10]
push str.Received_invalid_version_in_initial_SOCKS5_response.
push ecx
jmp 0x4a3588
mov al, byte [esp + 0x39]
test al, al
je 0x4a316c
cmp al, 2
jne 0x4a3532
mov eax, dword [esp + 0x24]
xor ebx, ebx
cmp eax, ebx
je 0x4a3095
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x4a3095
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a3072
sub eax, edx
mov ebx, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a3082
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
jmp 0x4a3099
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x38], 1
mov byte [esp + 0x39], bl
test eax, eax
je 0x4a30b9
test ebx, ebx
je 0x4a30b9
push ebx
push eax
lea edx, [esp + 0x42]
push edx
call fcn.004b4b70
add esp, 0xc
mov al, byte [esp + 0x1c]
lea esi, [ebx + 2]
mov byte [esp + esi + 0x38], al
inc esi
cmp dword [esp + 0x2c], 0
je 0x4a30ea
cmp dword [esp + 0x1c], 0
je 0x4a30ea
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea eax, [esp + esi + 0x40]
push eax
call fcn.004b4b70
add esp, 0xc
add esi, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push esi
lea edx, [esp + 0x40]
push edx
push edi
push ebp
call fcn.0048b640
add esp, 0x14
test eax, eax
jne 0x4a352b
cmp esi, dword [esp + 0x20]
jne 0x4a352b
lea eax, [esp + 0x14]
push eax
push 2
lea ecx, [esp + 0x40]
push ecx
push edi
push ebp
call fcn.004a2830
add esp, 0x14
test eax, eax
jne 0x4a351f
cmp dword [esp + 0x14], 2
jne 0x4a351f
mov al, byte [esp + 0x39]
test al, al
je 0x4a316c
mov ecx, dword [esp + 0x10]
movzx edx, al
movzx eax, byte [esp + 0x38]
push edx
push eax
push str.User_was_rejected_by_the_SOCKS5_server___d__d_.
push ecx
call fcn.0048af30
add esp, 0x10
mov eax, 7
jmp 0x4a3595
cmp dword [esp + 0x18], 0
mov edx, dword [esp + 0x28]
mov word [esp + 0x38], 0x105
mov byte [esp + 0x3a], 0
mov esi, 3
jne 0x4a3231
mov ebx, dword [esp + 0x30]
push ebx
push edx
lea eax, [esp + 0x45]
push eax
mov byte [esp + 0x47], 3
mov byte [esp + 0x48], bl
call fcn.004b4b70
lea esi, [ebx + 5]
mov ebx, dword [esp + 0x2f0]
add esp, 0xc
mov edi, dword [esp + 0x10]
mov edx, ebx
sar edx, 8
mov byte [esp + esi + 0x38], dl
mov byte [esp + esi + 0x39], bl
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x20]
push eax
add esi, 2
push esi
lea ecx, [esp + 0x40]
push ecx
push ebx
push ebp
call fcn.0048b640
add esp, 0x14
test eax, eax
jne 0x4a3517
cmp esi, dword [esp + 0x20]
jne 0x4a3517
lea edx, [esp + 0x14]
push edx
lea esi, [eax + 0xa]
push esi
lea eax, [esp + 0x40]
push eax
push ebx
push ebp
call fcn.004a2830
add esp, 0x14
test eax, eax
jne 0x4a350f
cmp dword [esp + 0x14], esi
jne 0x4a350f
cmp byte [esp + 0x38], 5
je 0x4a3371
push str.SOCKS5_reply_has_wrong_version__version_should_be_5.
push edi
jmp 0x4a3588
mov ebx, dword [esp + 0x2e4]
lea ecx, [esp + 0x18]
push ecx
push ebx
push edx
push ebp
call fcn.0048a2d0
add esp, 0x10
cmp eax, 0xffffffff
je 0x4a3367
cmp eax, 1
jne 0x4a326c
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.00489cd0
add esp, 8
test eax, eax
jne 0x4a3595
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a3350
mov edi, dword [eax]
test edi, edi
je 0x4a3350
push 0x40
lea ecx, [esp + 0x294]
push ecx
push edi
call fcn.0048a0a0
mov eax, dword [edi + 4]
add esp, 0xc
cmp eax, 2
jne 0x4a32e1
mov byte [esp + 0x3b], 1
mov eax, dword [edi + 0x18]
movzx edx, byte [eax + 4]
mov byte [esp + 0x3c], dl
mov cl, byte [eax + 5]
mov byte [esp + 0x3d], cl
movzx edx, byte [eax + 6]
lea ecx, [esp + 0x290]
push ecx
mov byte [esp + 0x42], dl
mov edx, dword [esp + 0x14]
mov al, byte [eax + 7]
push str.SOCKS5_connect_to_IPv4__s__locally_resolved__n
push edx
mov byte [esp + 0x4b], al
mov esi, 8
call fcn.0048ae90
jmp 0x4a3333
cmp eax, 0x17
jne 0x4a331a
xor eax, eax
mov byte [esp + 0x3b], 4
mov ecx, dword [edi + 0x18]
lea esi, [eax + 0x14]
mov dl, byte [ecx + eax + 8]
mov byte [esp + eax + 0x3c], dl
inc eax
cmp eax, 0x10
jl 0x4a32f3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x290]
push eax
push str.SOCKS5_connect_to_IPv6__s__locally_resolved__n
push ecx
call fcn.0048ae90
jmp 0x4a3333
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x290]
push edx
push str.SOCKS5_connection_to__s_not_supported_n
push eax
xor edi, edi
call fcn.0048af30
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push edx
call fcn.0048a450
add esp, 8
test edi, edi
jne 0x4a31b2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push eax
push str.Failed_to_resolve___s__for_SOCKS5_connect.
push ecx
call fcn.0048af30
add esp, 0xc
mov eax, 6
jmp 0x4a3595
mov al, byte [esp + 0x3b]
cmp al, 3
jne 0x4a33b2
movzx esi, byte [esp + 0x3c]
add esi, 7
cmp esi, 0xa
jle 0x4a33c5
lea ecx, [esp + 0x14]
push ecx
lea edi, [esi - 0xa]
push edi
lea edx, [esp + 0x4a]
push edx
push ebx
push ebp
call fcn.004a2830
add esp, 0x14
test eax, eax
jne 0x4a33a8
cmp edi, dword [esp + 0x14]
je 0x4a33bd
push str.Failed_to_receive_SOCKS5_connect_request_ack.
jmp 0x4a3583
cmp al, 4
jne 0x4a33c5
mov esi, 0x16
jmp 0x4a3386
mov al, byte [esp + 0x3b]
mov edi, dword [esp + 0x10]
mov cl, byte [esp + 0x39]
test cl, cl
je 0x4a34f2
cmp al, 1
jne 0x4a3419
movzx edx, byte [esp + 0x40]
movzx eax, byte [esp + 0x41]
movzx ecx, cl
push ecx
movzx ecx, byte [esp + 0x43]
shl edx, 8
or edx, eax
movzx eax, byte [esp + 0x41]
push edx
movzx edx, byte [esp + 0x46]
push ecx
movzx ecx, byte [esp + 0x48]
push edx
push eax
push ecx
push str.Cant_complete_SOCKS5_connection_to__d._d._d._d:_d.___d_
push edi
call fcn.0048af30
add esp, 0x20
mov eax, 7
jmp 0x4a3595
cmp al, 3
jne 0x4a345e
mov bl, byte [esp + esi + 0x36]
movzx eax, byte [esp + esi + 0x37]
lea esi, [esp + esi + 0x38]
mov byte [esi - 2], 0
movzx edx, byte [esp + 0x39]
movzx ecx, bl
push edx
shl ecx, 8
or eax, ecx
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x45]
push edx
push str.Cant_complete_SOCKS5_connection_to__s:_d.___d_
push eax
call fcn.0048af30
add esp, 0x14
mov eax, 7
jmp 0x4a3595
cmp al, 4
jne 0x4a34e8
movzx edx, byte [esp + 0x4c]
movzx eax, byte [esp + 0x4d]
movzx ecx, cl
push ecx
movzx ecx, byte [esp + 0x4f]
shl edx, 8
or edx, eax
movzx eax, byte [esp + 0x4d]
push edx
movzx edx, byte [esp + 0x52]
push ecx
movzx ecx, byte [esp + 0x54]
push edx
movzx edx, byte [esp + 0x57]
push eax
movzx eax, byte [esp + 0x5a]
push ecx
movzx ecx, byte [esp + 0x5d]
push edx
movzx edx, byte [esp + 0x60]
push eax
movzx eax, byte [esp + 0x63]
push ecx
movzx ecx, byte [esp + 0x66]
push edx
movzx edx, byte [esp + 0x69]
push eax
movzx eax, byte [esp + 0x6c]
push ecx
movzx ecx, byte [esp + 0x6f]
push edx
movzx edx, byte [esp + 0x72]
push eax
movzx eax, byte [esp + 0x75]
push ecx
movzx ecx, byte [esp + 0x78]
push edx
push eax
push ecx
push str.Cant_complete_SOCKS5_connection_to__02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_d.___d_
push edi
call fcn.0048af30
add esp, 0x50
mov eax, 7
jmp 0x4a3595
push str.SOCKS5_request_granted._n
push edi
call fcn.0048ae90
push 1
push ebx
call fcn.004a69c0
add esp, 0x10
xor eax, eax
jmp 0x4a3595
push str.Failed_to_receive_SOCKS5_connect_request_ack.
push edi
jmp 0x4a3588
push str.Failed_to_send_SOCKS5_connect_request.
push edi
jmp 0x4a3588
mov edx, dword [esp + 0x10]
push str.Unable_to_receive_SOCKS5_sub_negotiation_response.
push edx
jmp 0x4a3588
push str.Failed_to_send_SOCKS5_sub_negotiation_request.
jmp 0x4a3583
cmp al, 1
jne 0x4a3542
mov ecx, dword [esp + 0x10]
push str.SOCKS5_GSSAPI_per_message_authentication_is_not_supported.
push ecx
jmp 0x4a3588
cmp al, 0xff
jne 0x4a3566
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4a355f
cmp byte [eax], 0
je 0x4a355f
mov edx, dword [esp + 0x10]
push str.No_authentication_method_was_acceptable.
push edx
jmp 0x4a3588
push 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._
jmp 0x4a3583
mov ecx, dword [esp + 0x10]
push str.Undocumented_SOCKS5_mode_attempted_to_be_used_by_server.
push ecx
jmp 0x4a3588
mov edx, dword [esp + 0x10]
push str.Unable_to_receive_initial_SOCKS5_response.
push edx
jmp 0x4a3588
push str.Unable_to_send_initial_SOCKS5_request.
mov eax, dword [esp + 0x14]
push eax
call fcn.0048af30
mov eax, 7
add esp, 8
mov ecx, dword [esp + 0x2d0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ae123
add esp, 0x2c4
ret