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

Disassembly:
sub esp, 0x64
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov eax, ecx
push ebp
push esi
mov dword [esp + 0x14], eax
mov esi, edx
mov eax, dword [eax + 0xc]
push edi
mov edi, dword [esp + 0x78]
push dword [esi + 0xc]
mov dword [esp + 0x28], eax
mov al, byte [eax + 0xa0]
mov ebx, dword [edi + 0x8bc]
mov dword [esp + 0x30], ebx
mov byte [esp + 0x16], al
call fcn.00520660
xor ebp, ebp
mov dword [esp + 0x2c], eax
and dword [esp + 0x18], ebp
mov al, byte [edi + 0x49b]
pop ecx
mov ecx, dword [esi]
dec ecx
mov byte [esp + 0x13], al
cmp ecx, 0xf
ja case.0x49ad6a.5
jmp dword [ecx*4 + 0x49b438]
mov ecx, dword [esp + 0x24]
cmp byte [ecx + 0x1e0], 0
je 0x49ad96
push dword [esi + 0x10]
push dword [esi + 0xc]
push str.SOCKS5:_connecting_to_HTTP_proxy__s_port__d
push edi
call fcn.0048c275
mov al, byte [esp + 0x23]
add esp, 0x10
cmp byte [esp + 0x12], 5
je 0x49adbc
cmp dword [esp + 0x28], 0xff
jbe 0x49adbc
push str.SOCKS5:_the_destination_hostname_is_too_long_to_be_resolved_remotely_by_the_proxy.
push edi
call fcn.0048c1c7
pop ecx
pop ecx
push 9
pop eax
jmp 0x49b423
movzx eax, al
test eax, 0xfffffffa
je 0x49add5
push eax
push str.warning:_unsupported_value_passed_to_CURLOPT_SOCKS5_AUTH:__u
push edi
call fcn.0048c275
add esp, 0xc
test byte [esp + 0x13], 1
jne 0x49addf
and dword [esi + 0x14], ebp
mov byte [ebx], 5
mov byte [ebx + 2], 0
push 3
pop ecx
cmp dword [esi + 0x14], ebp
je 0x49adf7
push 2
pop eax
push 4
mov byte [ebx + 3], al
pop ecx
mov ebp, dword [esp + 0x18]
lea eax, [ecx - 2]
push str.initial_SOCKS5_request
mov byte [ebx + 1], al
mov edx, esi
mov dword [esi + 4], ecx
mov ecx, ebp
push 0x1d
push edi
mov dword [esi + 8], ebx
call fcn.0049a779
add esp, 0xc
test eax, eax
jne 0x49b423
cmp dword [esi + 4], eax
jne 0x49b3ea
push 4
pop edx
cmp dword [esi], edx
je 0x49ae66
mov dword [esi], edx
jmp 0x49ae66
mov ebp, dword [esp + 0x18]
mov edx, esi
push str.initial_SOCKS5_request
push 0x1d
push edi
mov ecx, ebp
call fcn.0049a779
add esp, 0xc
test eax, eax
jne 0x49b423
cmp dword [esi + 4], eax
jne 0x49b3ea
jmp 0x49ae66
mov ebp, dword [esp + 0x18]
push 2
pop eax
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
jmp 0x49ae75
mov ebp, dword [esp + 0x18]
push str.initial_SOCKS5_response
push 0xf
push edi
mov edx, esi
mov ecx, ebp
call fcn.0049a7f4
add esp, 0xc
test eax, eax
jne 0x49b423
cmp dword [esi + 4], eax
jne 0x49b3ea
cmp byte [ebx], 5
je 0x49aeb3
push str.Received_invalid_version_in_initial_SOCKS5_response.
push edi
call fcn.0048c1c7
pop ecx
pop ecx
push 2
jmp 0x49adb6
mov al, byte [ebx + 1]
test al, al
je 0x49b05d
cmp al, 2
jne 0x49aef5
push 6
pop eax
cmp dword [esi], eax
je case.0x49ad6a.6
mov dword [esi], eax
cmp dword [esi + 0x14], 0
je 0x49af39
cmp dword [esi + 0x18], 0
je 0x49af39
push dword [esi + 0x14]
call fcn.00520660
push dword [esi + 0x18]
mov dword [esp + 0x28], eax
call fcn.00520660
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x20]
jmp 0x49af41
cmp al, 1
jne 0x49af0d
push str.SOCKS5_GSSAPI_per_message_authentication_is_not_supported.
push edi
call fcn.0048c1c7
pop ecx
pop ecx
push 5
jmp 0x49adb6
cmp al, 0xff
jne 0x49af25
push str.No_authentication_method_was_acceptable.
push edi
call fcn.0048c1c7
pop ecx
pop ecx
push 0xc
jmp 0x49adb6
push str.Undocumented_SOCKS5_mode_attempted_to_be_used_by_server.
push edi
call fcn.0048c1c7
pop ecx
pop ecx
push 0x20
jmp 0x49adb6
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x20], eax
mov byte [ebx], 1
mov byte [ebx + 1], al
cmp dword [esi + 0x14], 0
mov dword [esp + 0x1c], ecx
je 0x49af84
test eax, eax
je 0x49af84
cmp eax, 0xff
jbe 0x49af70
push str.Excessive_user_name_length_for_proxy_auth
push edi
call fcn.0048c1c7
pop ecx
pop ecx
push 0xb
jmp 0x49adb6
push eax
push dword [esi + 0x14]
lea eax, [ebx + 2]
push eax
call fcn.0051c650
mov eax, dword [esp + 0x2c]
add esp, 0xc
lea ebp, [eax + 2]
mov eax, dword [esp + 0x1c]
mov byte [ebx + ebp], al
inc ebp
cmp dword [esi + 0x18], 0
je 0x49afc8
test eax, eax
je 0x49afc8
cmp eax, 0xff
jbe 0x49afb4
push str.Excessive_password_length_for_proxy_auth
push edi
call fcn.0048c1c7
pop ecx
pop ecx
push 0xa
jmp 0x49adb6
push eax
push dword [esi + 0x18]
lea eax, [ebx + ebp]
push eax
call fcn.0051c650
mov eax, dword [esp + 0x28]
add esp, 0xc
add ebp, eax
push 7
pop eax
cmp dword [esi], eax
je 0x49afd3
mov dword [esi], eax
mov dword [esi + 4], ebp
mov dword [esi + 8], ebx
mov ecx, dword [esp + 0x18]
mov edx, esi
push str.SOCKS5_sub_negotiation_request
push 0x1c
push edi
call fcn.0049a779
add esp, 0xc
test eax, eax
jne 0x49b423
cmp dword [esi + 4], eax
jne 0x49b3ea
push 2
pop eax
push 8
mov dword [esi + 4], eax
pop eax
mov dword [esi + 8], ebx
cmp dword [esi], eax
je case.0x49ad6a.8
mov dword [esi], eax
mov ecx, dword [esp + 0x18]
mov edx, esi
push str.SOCKS5_sub_negotiation_response
push 0xe
push edi
call fcn.0049a7f4
add esp, 0xc
test eax, eax
jne 0x49b423
cmp dword [esi + 4], eax
jne 0x49b3ea
mov al, byte [ebx + 1]
test al, al
je 0x49b05d
movzx eax, al
push eax
movzx eax, byte [ebx]
push eax
push str.User_was_rejected_by_the_SOCKS5_server___d__d_.
push edi
call fcn.0048c1c7
add esp, 0x10
push 0x21
jmp 0x49adb6
push 9
pop ecx
cmp dword [esi], ecx
je case.0x49ad6a.9
mov dword [esi], ecx
mov al, byte [esp + 0x12]
cmp al, 5
jne 0x49b21f
mov edx, dword [esi + 0xc]
lea eax, [esp + 0x14]
push eax
push 1
push dword [esi + 0x10]
mov ecx, edi
call fcn.0048f2ec
add esp, 0xc
cmp eax, 0xffffffff
je 0x49b15a
cmp eax, 1
jne 0x49b0a9
push 0xa
pop eax
cmp dword [esi], eax
je 0x49b3ea
mov dword [esi], eax
jmp 0x49b3ea
mov ecx, dword [esp + 0x14]
push 0xb
pop eax
cmp dword [esi], eax
je 0x49b0ee
mov dword [esi], eax
jmp 0x49b0ee
push dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov ecx, edi
call fcn.0048ee01
mov dword [esp + 0x18], eax
pop ecx
test eax, eax
je 0x49b13f
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0x48], eax
mov byte [ecx + 0x5c], 1
push dword [esi + 0xc]
push str.SOCKS5:_hostname__s_found
push edi
call fcn.0048c275
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x49b0fe
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
mov dl, byte [edi + 0x4b8]
test dl, dl
je 0x49b128
push 0x17
pop ecx
cmp dl, 1
push 2
pop edx
cmove ecx, edx
test eax, eax
je 0x49b12c
cmp dword [eax + 4], ecx
je 0x49b161
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x49b118
test eax, eax
jne 0x49b161
push dword [esi + 0xc]
push str.Failed_to_resolve___s__for_SOCKS5_connect.
push edi
call fcn.0048c1c7
add esp, 0xc
jmp 0x49b15a
lea edx, [esp + 0x14]
mov ecx, edi
call fcn.0048fbe5
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x49b0ee
test eax, eax
je 0x49b3ea
push 0x1b
jmp 0x49adb6
push 0x2e
lea edx, [esp + 0x44]
mov ecx, eax
call fcn.0048eb3c
mov eax, dword [esp + 0x20]
pop ecx
push 3
pop ebp
push 2
pop ecx
mov word [ebx], 0x105
mov byte [ebx + 2], 0
cmp dword [eax + 4], ecx
jne 0x49b1c0
push 8
mov byte [ebx + 3], 1
lea ecx, [ebx + 4]
mov edx, dword [eax + 0x18]
pop ebp
push 4
sub edx, ebx
pop ebx
mov al, byte [ecx + edx]
mov byte [ecx], al
inc ecx
sub ebx, 1
jne 0x49b199
push dword [esi + 0x10]
lea eax, [esp + 0x44]
push eax
push str.SOCKS5_connect_to__s:_d__locally_resolved_
push edi
call fcn.0048c275
mov ebx, dword [esp + 0x3c]
add esp, 0x10
jmp 0x49b20b
cmp dword [eax + 4], 0x17
jne 0x49b1f8
push 0x14
mov byte [ebx + 3], 4
xor ecx, ecx
mov edx, dword [eax + 0x18]
pop ebp
mov al, byte [ecx + edx + 8]
mov byte [ecx + ebx + 4], al
inc ecx
cmp ecx, 0x10
jl 0x49b1d2
push dword [esi + 0x10]
lea eax, [esp + 0x44]
push eax
push str.SOCKS5_connect_to___s_:_d__locally_resolved_
push edi
call fcn.0048c275
add esp, 0x10
jmp 0x49b20b
lea eax, [esp + 0x40]
push eax
push str.SOCKS5_connection_to__s_not_supported
push edi
call fcn.0048c1c7
add esp, 0xc
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.0048f618
jmp case.0x49ad6a.13
mov al, byte [esp + 0x12]
mov word [ebx], 0x105
mov byte [ebx + 2], 0
push 3
pop ebp
cmp al, 5
je case.0x49ad6a.13
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0xc]
cmp byte [eax + 0x1eb], 0
je 0x49b274
lea edx, [esp + 0x30]
call fcn.0048ddc0
cmp eax, 1
je 0x49b259
xor eax, eax
inc eax
jmp 0x49b423
push 0x10
lea eax, [esp + 0x34]
mov byte [ebx + 3], 4
push eax
lea eax, [ebx + 4]
push eax
call fcn.0051c650
add esp, 0xc
push 0x14
jmp 0x49b29a
lea edx, [esp + 0x2c]
lea ebp, [ebx + 4]
call fcn.0048dd0e
cmp eax, 1
jne 0x49b29d
mov byte [ebx + 3], al
lea eax, [esp + 0x2c]
push 4
push eax
push ebp
call fcn.0051c650
add esp, 0xc
push 8
pop ebp
jmp 0x49b2bf
mov eax, dword [esp + 0x28]
push eax
mov byte [ebx + 3], 3
mov byte [ebp], al
lea eax, [ebx + 5]
push dword [esi + 0xc]
push eax
call fcn.0051c650
mov ebp, dword [esp + 0x34]
add esp, 0xc
add ebp, 5
push dword [esi + 0x10]
push dword [esi + 0xc]
push str.SOCKS5_connect_to__s:_d__remotely_resolved_
push edi
call fcn.0048c275
add esp, 0x10
mov eax, dword [esi + 0x10]
sar eax, 8
mov byte [ebx + ebp], al
mov al, byte [esi + 0x10]
mov byte [ebx + ebp + 1], al
lea eax, [ebp + 2]
push 0xe
mov dword [esi + 4], eax
pop eax
mov dword [esi + 8], ebx
cmp dword [esi], eax
je case.0x49ad6a.14
mov dword [esi], eax
mov ecx, dword [esp + 0x18]
mov edx, esi
push str.SOCKS5_connect_request
push 0x1e
push edi
call fcn.0049a779
add esp, 0xc
test eax, eax
jne 0x49b423
cmp dword [esi + 4], eax
jne 0x49b3ea
push 0xf
pop eax
mov dword [esi + 4], 0xa
mov dword [esi + 8], ebx
cmp dword [esi], eax
je case.0x49ad6a.15
mov dword [esi], eax
mov ecx, dword [esp + 0x18]
mov edx, esi
push str.SOCKS5_connect_request_ack
push 0x10
pop ebp
push ebp
push edi
call fcn.0049a7f4
add esp, 0xc
test eax, eax
jne 0x49b423
cmp dword [esi + 4], eax
jne 0x49b3ea
cmp byte [ebx], 5
je 0x49b367
push str.SOCKS5_reply_has_wrong_version__version_should_be_5.
jmp 0x49aea4
mov al, byte [ebx + 1]
test al, al
je 0x49b399
push 0x19
pop ebp
movzx ebx, al
push ebx
push dword [esi + 0xc]
push str.Cant_complete_SOCKS5_connection_to__s.___d_
push edi
call fcn.0048c1c7
add esp, 0x10
cmp ebx, 9
jae 0x49b392
mov ebp, dword [ebx*4 + 0x5676d4]
mov eax, ebp
jmp 0x49b423
mov al, byte [ebx + 3]
cmp al, 3
jne 0x49b3b0
movzx eax, byte [ebx + 4]
mov ecx, dword [esi]
add eax, 7
cmp eax, 0xa
jbe 0x49b3f4
jmp 0x49b3b9
cmp al, 4
jne 0x49b3ee
mov ecx, dword [esi]
push 0x16
pop eax
add eax, 0xfffffff6
mov dword [esi + 4], eax
lea eax, [ebx + 0xa]
mov dword [esi + 8], eax
cmp ecx, ebp
je case.0x49ad6a.16
mov dword [esi], ebp
mov ecx, dword [esp + 0x18]
mov edx, esi
push str.SOCKS5_connect_request_address
push 0xd
push edi
call fcn.0049a7f4
add esp, 0xc
test eax, eax
jne 0x49b423
cmp dword [esi + 4], eax
je 0x49b40b
xor eax, eax
jmp 0x49b423
cmp al, 1
jne 0x49b3fb
mov ecx, dword [esi]
push 0x11
pop eax
cmp ecx, eax
jmp 0x49b410
push str.SOCKS5_reply_has_wrong_address_type.
push edi
call fcn.0048c1c7
xor eax, eax
inc eax
jmp 0x49b421
push 0x11
pop eax
cmp dword [esi], eax
je case.0x49ad6a.5
mov dword [esi], eax
push str.SOCKS5_request_granted.
push edi
call fcn.0048c275
xor eax, eax
pop ecx
pop ecx
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x64
ret