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

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x100a5688]
xor eax, esp
mov dword [esp + 0x2d0], eax
mov ecx, dword [esp + 0x2e8]
mov eax, dword [esp + 0x2dc]
push ebx
push ebp
mov ebp, dword [esp + 0x2e0]
push esi
push edi
mov edi, dword [esp + 0x2fc]
mov dword [esp + 0x38], ecx
mov ebx, dword [edi + ecx*4 + 0x1a8]
mov esi, dword [edi]
xor ecx, ecx
cmp dword [edi + 0xd0], 5
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2f0]
sete cl
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ecx
call fcn.100596a0
cmp dword [edi + 0x3d8], 0
pop ecx
mov ecx, dword [esi + 0x194]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
je 0x1004de1c
push dword [esp + 0x2f4]
push dword [esp + 0x30]
push str.SOCKS5:_connecting_to_HTTP_proxy__s_port__d_n
push dword [edi]
call fcn.10030603
mov eax, dword [esp + 0x4c]
add esp, 0x10
xor ecx, ecx
inc ecx
cmp dword [esp + 0x18], 0
jne 0x1004de44
cmp eax, 0xff
jbe 0x1004de44
push eax
push str.SOCKS5:_server_resolving_disabled_for_hostnames_of_length___255__actual_len_zu__n
push dword [edi]
call fcn.10030603
xor ecx, ecx
add esp, 0xc
inc ecx
mov dword [esp + 0x18], ecx
push ecx
push 0
push esi
call fcn.100314f3
mov ecx, edx
add esp, 0xc
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
test ecx, ecx
jg 0x1004de78
jl 0x1004de64
test eax, eax
jae 0x1004de78
push str.Connection_time_out
push esi
call fcn.1003054c
pop ecx
pop ecx
push 0x1c
jmp 0x1004e561
xor eax, eax
inc eax
push eax
push ebx
call fcn.1004e80a
push dword [esp + 0x28]
push dword [esp + 0x30]
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.1002ff98
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x1004dea8
push str.SOCKS5:_no_connection_here
push dword [edi]
jmp 0x1004e558
test eax, eax
jne 0x1004deb5
push str.SOCKS5:_connection_timeout
push dword [edi]
jmp 0x1004de6a
test al, 4
je 0x1004dec0
push str.SOCKS5:_error_occurred_during_connection
jmp 0x1004dea1
mov ebx, dword [esp + 0x30]
test ebx, 0xfffffffa
je 0x1004dedc
push ebx
push str.warning:_unsupported_value_passed_to_CURLOPT_SOCKS5_AUTH:__lu_n
push dword [edi]
call fcn.10030603
add esp, 0xc
push 0
xor edx, edx
pop eax
inc edx
test dl, bl
push eax
cmove ebp, eax
pop ecx
test bl, 4
cmovne ecx, edx
push 3
pop ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ecx
mov byte [esp + 0x48], 5
mov dword [esp + 0x30], ebx
mov eax, ebx
mov byte [esp + 0x4a], 0
test ecx, ecx
je 0x1004df15
push 4
mov byte [esp + 0x4f], dl
pop eax
test ebp, ebp
je 0x1004df1f
mov byte [esp + eax + 0x48], 2
inc eax
mov ebp, dword [esp + 0x10]
sub al, 2
push 0
push ebp
mov byte [esp + 0x51], al
call fcn.1004e80a
push dword [esp + 0x2fc]
push dword [esp + 0x38]
push str.SOCKS5_communication_to__s:_d_n
push esi
call fcn.10030603
lea eax, [esp + 0x40]
push eax
movzx eax, byte [esp + 0x65]
add eax, 2
push eax
lea eax, [esp + 0x68]
push eax
push ebp
push edi
call fcn.10030a03
mov ebp, eax
add esp, 0x2c
test ebp, ebp
jne 0x1004e552
movzx ecx, byte [esp + 0x49]
add ecx, 2
cmp dword [esp + 0x28], ecx
jne 0x1004e552
inc eax
push eax
push dword [esp + 0x14]
call fcn.1004e80a
push dword [esp + 0x28]
push dword [esp + 0x30]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x28]
call fcn.1002ff98
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x1004dfb2
push str.SOCKS5_nothing_to_read
jmp 0x1004dea1
test eax, eax
jne 0x1004dfc0
push str.SOCKS5_read_timeout
jmp 0x1004deb1
test al, 4
je 0x1004dfd9
push str.SOCKS5_read_error_occurred
push dword [edi]
call fcn.1003054c
pop ecx
pop ecx
push 0x38
jmp 0x1004e561
push 0
push dword [esp + 0x14]
call fcn.1004e80a
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x24]
push edi
call fcn.1004e581
add esp, 0x1c
test eax, eax
jne 0x1004e54b
cmp dword [esp + 0x14], 2
jne 0x1004e54b
cmp byte [esp + 0x48], 5
je 0x1004e021
push str.Received_invalid_version_in_initial_SOCKS5_response.
jmp 0x1004e557
mov al, byte [esp + 0x49]
test al, al
je 0x1004e1b8
mov ecx, dword [esp + 0x44]
xor edx, edx
inc edx
test ecx, ecx
je 0x1004e05c
cmp al, dl
jne 0x1004e05c
push edi
push dword [esp + 0x3c]
call fcn.10053dab
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0x1004e1b8
push str.Unable_to_negotiate_SOCKS5_GSS_API_context.
jmp 0x1004e557
cmp al, 2
jne 0x1004e172
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x1004e090
cmp dword [esp + 0x34], 0
je 0x1004e090
push ebp
call fcn.100596a0
push dword [esp + 0x38]
mov dword [esp + 0x2c], eax
call fcn.100596a0
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x24]
jmp 0x1004e098
xor eax, eax
mov dword [esp + 0x24], eax
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov byte [esp + 0x48], 1
mov byte [esp + 0x49], al
test ebp, ebp
je 0x1004e0c0
test eax, eax
je 0x1004e0c0
push eax
lea eax, [esp + 0x4e]
push ebp
push eax
call fcn.10058e40
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x34]
lea ebp, [eax + 2]
mov eax, dword [esp + 0x20]
mov byte [esp + ebp + 0x48], al
inc ebp
test ecx, ecx
je 0x1004e0ed
test eax, eax
je 0x1004e0ed
push eax
lea eax, [esp + 0x4c]
push ecx
add eax, ebp
push eax
call fcn.10058e40
mov eax, dword [esp + 0x2c]
add esp, 0xc
add ebp, eax
lea eax, [esp + 0x28]
push eax
push ebp
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x1c]
push edi
call fcn.10030a03
add esp, 0x14
mov dword [esp + 0x38], eax
test eax, eax
jne 0x1004e168
cmp ebp, dword [esp + 0x28]
jne 0x1004e168
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x1c]
push edi
call fcn.1004e581
add esp, 0x14
test eax, eax
jne 0x1004e15e
cmp dword [esp + 0x14], 2
jne 0x1004e15e
mov al, byte [esp + 0x49]
test al, al
je 0x1004e1b4
movzx eax, al
push eax
movzx eax, byte [esp + 0x4c]
push eax
push str.User_was_rejected_by_the_SOCKS5_server___d__d_.
push esi
call fcn.1003054c
add esp, 0x10
jmp 0x1004e55f
push str.Unable_to_receive_SOCKS5_sub_negotiation_response.
jmp 0x1004e557
push str.Failed_to_send_SOCKS5_sub_negotiation_request.
jmp 0x1004e557
test ecx, ecx
jne 0x1004e184
cmp al, dl
jne 0x1004e184
push str.SOCKS5_GSSAPI_per_message_authentication_is_not_supported.
jmp 0x1004e557
cmp al, 0xff
jne 0x1004e1aa
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x1004e1a0
cmp byte [ebp], 0
je 0x1004e1a0
push str.No_authentication_method_was_acceptable.
jmp 0x1004e557
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 0x1004e557
push str.Undocumented_SOCKS5_mode_attempted_to_be_used_by_server.
jmp 0x1004e557
mov ebp, dword [esp + 0x38]
xor eax, eax
inc eax
cmp dword [esp + 0x18], 0
mov byte [esp + 0x48], 5
mov byte [esp + 0x49], al
mov byte [esp + 0x4a], 0
jne 0x1004e1f6
mov byte [esp + 0x4b], bl
mov ebx, dword [esp + 0x3c]
push ebx
push dword [esp + 0x30]
lea eax, [esp + 0x55]
push eax
mov byte [esp + 0x58], bl
call fcn.10058e40
add esp, 0xc
add ebx, 5
jmp 0x1004e2ce
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x2f8]
push dword [esp + 0x34]
push edi
call fcn.100283f3
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1004e21b
push 6
jmp 0x1004e561
cmp eax, 1
jne 0x1004e238
lea eax, [esp + 0x18]
push eax
push edi
call fcn.10027c26
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0x1004e238
jmp 0x1004e562
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x1004e534
mov ebx, dword [ebx]
test ebx, ebx
je 0x1004e534
push 0x40
lea eax, [esp + 0x2a4]
push eax
push ebx
call fcn.100283cb
add esp, 0xc
cmp dword [ebx + 4], 2
jne 0x1004e29e
xor eax, eax
inc eax
mov byte [esp + 0x4b], al
mov edx, dword [ebx + 0x18]
xor ecx, ecx
mov dword [esp + 0x30], 8
mov al, byte [edx + ecx + 4]
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 4
jl 0x1004e27b
lea eax, [esp + 0x2a0]
push eax
push str.SOCKS5_connect_to_IPv4__s__locally_resolved__n
push esi
call fcn.10030603
jmp 0x1004e2b3
lea eax, [esp + 0x2a0]
push eax
push str.SOCKS5_connection_to__s_not_supported_n
push esi
xor ebx, ebx
call fcn.1003054c
add esp, 0xc
push dword [esp + 0x18]
push esi
call fcn.10028549
pop ecx
pop ecx
test ebx, ebx
je 0x1004e534
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2f4]
mov eax, ecx
sar eax, 8
mov byte [esp + ebx + 0x48], al
mov byte [esp + ebx + 0x49], cl
add ebx, 2
cmp dword [edi + 0x768], 0
je 0x1004e2fd
push str.SOCKS5_GSS_API_protection_not_yet_implemented.
push esi
call fcn.1003054c
pop ecx
pop ecx
jmp 0x1004e317
lea eax, [esp + 0x28]
push eax
push ebx
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x1c]
push edi
call fcn.10030a03
add esp, 0x14
mov ebp, eax
test ebp, ebp
jne 0x1004e52d
cmp ebx, dword [esp + 0x28]
jne 0x1004e52d
cmp dword [edi + 0x768], ebp
je 0x1004e348
push str.SOCKS5_GSS_API_protection_not_yet_implemented.
push esi
call fcn.1003054c
pop ecx
pop ecx
push str.Failed_to_receive_SOCKS5_connect_request_ack.
jmp 0x1004e557
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0xa
lea eax, [esp + 0x50]
push eax
push ebp
push edi
call fcn.1004e581
add esp, 0x14
test eax, eax
jne 0x1004e33e
cmp dword [esp + 0x14], 0xa
jne 0x1004e33e
cmp byte [esp + 0x48], 5
je 0x1004e37e
push str.SOCKS5_reply_has_wrong_version__version_should_be_5.
jmp 0x1004e557
mov al, byte [esp + 0x4b]
mov dl, byte [esp + 0x4c]
cmp al, 3
jne 0x1004e392
movzx ebx, dl
add ebx, 7
jmp 0x1004e39d
push 0xa
pop ebx
push 0x16
pop ecx
cmp al, 4
cmove ebx, ecx
cmp dword [edi + 0x768], 0
jne 0x1004e3e4
cmp ebx, 0xa
jle 0x1004e3e4
lea eax, [esp + 0x14]
push eax
lea ebp, [ebx - 0xa]
push ebp
lea eax, [esp + 0x5a]
push eax
push dword [esp + 0x1c]
push edi
call fcn.1004e581
add esp, 0x14
test eax, eax
jne 0x1004e33e
cmp ebp, dword [esp + 0x14]
jne 0x1004e33e
mov dl, byte [esp + 0x4c]
mov al, byte [esp + 0x4b]
mov ebp, dword [esp + 0x10]
mov cl, byte [esp + 0x49]
test cl, cl
je 0x1004e511
cmp al, 1
jne 0x1004e431
movzx eax, cl
movzx ecx, byte [esp + 0x50]
push eax
movzx eax, byte [esp + 0x55]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x53]
push ecx
push eax
movzx eax, byte [esp + 0x5a]
push eax
movzx eax, byte [esp + 0x5d]
push eax
movzx eax, dl
push eax
push str.Cant_complete_SOCKS5_connection_to__d._d._d._d:_d.___d_
push esi
call fcn.1003054c
add esp, 0x20
jmp 0x1004e55f
cmp al, 3
jne 0x1004e478
mov dl, byte [esp + ebx + 0x46]
lea eax, [ebx - 2]
cmp eax, 0x258
jae 0x1004e57b
mov byte [esp + eax + 0x48], 0
movzx eax, byte [esp + 0x49]
movzx ecx, byte [esp + ebx + 0x47]
push eax
movzx eax, dl
shl eax, 8
or ecx, eax
push ecx
lea eax, [esp + 0x55]
push eax
push str.Cant_complete_SOCKS5_connection_to__s:_d.___d_
push esi
call fcn.1003054c
add esp, 0x14
jmp 0x1004e55f
cmp al, 4
jne 0x1004e55f
movzx eax, cl
push eax
movzx ecx, byte [esp + 0x60]
movzx eax, byte [esp + 0x61]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x5f]
push ecx
push eax
movzx eax, byte [esp + 0x66]
push eax
movzx eax, byte [esp + 0x69]
push eax
movzx eax, byte [esp + 0x6c]
push eax
movzx eax, byte [esp + 0x6f]
push eax
movzx eax, byte [esp + 0x72]
push eax
movzx eax, byte [esp + 0x75]
push eax
movzx eax, byte [esp + 0x78]
push eax
movzx eax, byte [esp + 0x7b]
push eax
movzx eax, byte [esp + 0x7e]
push eax
movzx eax, byte [esp + 0x81]
push eax
movzx eax, byte [esp + 0x84]
push eax
movzx eax, byte [esp + 0x87]
push eax
movzx eax, byte [esp + 0x8a]
push eax
movzx eax, byte [esp + 0x8d]
push eax
movzx eax, dl
push eax
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 esi
call fcn.1003054c
add esp, 0x50
jmp 0x1004e55f
push str.SOCKS5_request_granted._n
push esi
call fcn.10030603
xor eax, eax
inc eax
push eax
push ebp
call fcn.1004e80a
add esp, 0x10
xor eax, eax
jmp 0x1004e562
push str.Failed_to_send_SOCKS5_connect_request.
jmp 0x1004e557
push dword [esp + 0x2c]
push str.Failed_to_resolve___s__for_SOCKS5_connect.
push esi
call fcn.1003054c
add esp, 0xc
jmp 0x1004e214
push str.Unable_to_receive_initial_SOCKS5_response.
jmp 0x1004e557
push str.Unable_to_send_initial_SOCKS5_request.
push esi
call fcn.1003054c
pop ecx
pop ecx
push 7
pop eax
mov ecx, dword [esp + 0x2e0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005ae75
add esp, 0x2d4
ret
call fcn.10056f6f
int3