Function at 0x1005deb0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x100dcc00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp + 0x20]
push 0xf8
mov esi, dword [edi + 0xc]
mov ebx, dword [edi + 0x8dc]
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x10c]
push 0
push eax
mov dword [ebp - 0x114], 0x6e6b6e75
mov dword [ebp - 0x110], 0x6e776f
call fcn.1008e1a0
mov eax, dword [ebp - 0x13c]
add esp, 0xc
mov ecx, dword [ebp - 0x12c]
mov eax, dword [esi + eax*4 + 0x150]
mov dword [ebp - 0x130], eax
lea edx, [ecx + 1]
mov eax, dword [esi + 0x98]
cmp eax, 5
mov dword [ebp - 0x128], eax
sete byte [ebp - 0x138]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005df64
mov eax, dword [edi + 0x170]
sub ecx, edx
xor edx, edx
mov dword [ebp - 0x14c], ecx
xor ecx, ecx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x134], edx
mov eax, dword [esi]
mov byte [ebp - 0x115], cl
mov dword [ebp - 0x150], 1
cmp eax, 1
jl 0x1005dfaf
mov dword [ebp - 0x11c], eax
cmp eax, 0x11
jl 0x1005e02f
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x154]
cmp byte [eax], cl
mov eax, dword [esi]
jne 0x1005e02f
mov dword [ebp - 0x11c], eax
cmp eax, 1
je 0x1005e02f
mov dword [esi], 1
cmp dword [ebp - 0x128], 5
je 0x1005dffb
mov eax, dword [ebp - 0x138]
cmp dword [ebp - 0x14c], 0xff
movzx eax, al
cmova eax, dword [ebp - 0x150]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x124]
mov eax, edx
test cl, 1
mov byte [ebx], 5
cmovne eax, dword [ebp - 0x140]
mov dword [ebp - 0x140], eax
test cl, 4
je 0x1005e046
mov byte [ebp - 0x115], 1
mov ecx, 4
mov word [ebx + 2], 0x100
jmp 0x1005e054
mov eax, dword [ebp - 0x11c]
dec eax
cmp eax, 0xf
ja case.0x1005e03f.5
jmp dword [eax*4 + 0x1005eb44]
mov byte [ebx + 2], dl
mov ecx, 3
mov byte [ebp - 0x115], dl
mov dword [ebp - 0x128], ecx
test eax, eax
je 0x1005e069
mov byte [ecx + ebx], 2
inc ecx
mov dword [ebp - 0x128], ecx
lea eax, [ecx - 2]
mov byte [ebx + 1], al
lea eax, [ebp - 0x120]
push eax
push ecx
push ebx
push dword [ebp - 0x130]
push edi
call fcn.1004cf20
add esp, 0x14
test eax, eax
je 0x1005e094
cmp eax, 0x51
jne 0x1005e16b
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x128]
mov ecx, dword [edi + 0xc]
cmp edx, eax
je 0x1005e0db
cmp dword [ecx], 2
je 0x1005e0b8
mov dword [ecx], 2
mov edx, dword [ebp - 0x120]
sub eax, edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x120]
add eax, ebx
pop edi
mov dword [esi + 8], eax
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
cmp dword [ecx], 4
je case.0x1005e03f.3
mov dword [ecx], 4
mov dword [esi + 4], 2
mov dword [esi + 8], ebx
lea eax, [ebp - 0x11c]
push eax
push dword [esi + 4]
push dword [esi + 8]
push dword [ebp - 0x130]
call fcn.1004cb20
mov ecx, dword [ebp - 0x11c]
add esp, 0x10
test eax, eax
je 0x1005e1c1
cmp eax, 0x51
je 0x1005e1e9
push str.Unable_to_receive_initial_SOCKS5_response.
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 0xf
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x120]
push eax
push dword [esi + 4]
push dword [esi + 8]
push dword [ebp - 0x130]
push edi
call fcn.1004cf20
add esp, 0x14
test eax, eax
je 0x1005e18f
cmp eax, 0x51
je 0x1005e18f
push str.Unable_to_send_initial_SOCKS5_request.
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 0x1d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x120]
cmp ecx, eax
je case.0x1005e03f.3
sub eax, ecx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x120]
add dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x1005e1e9
push str.Connection_to_proxy_closed
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
cmp ecx, eax
je 0x1005e211
sub eax, ecx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x11c]
add dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
cmp byte [ebx], 5
je 0x1005e23a
push str.Received_invalid_version_in_initial_SOCKS5_response.
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 1]
test al, al
je 0x1005e57a
cmp al, 2
jne 0x1005e2b9
mov eax, dword [edi + 0xc]
cmp dword [eax], 6
je case.0x1005e03f.6
mov dword [eax], 6
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x1005e37b
cmp dword [ebp - 0x148], 0
je 0x1005e37b
mov edx, eax
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1005e277
sub edx, ecx
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x13c], edx
lea eax, [ecx + 1]
mov dword [ebp - 0x124], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005e295
sub ecx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x128], ecx
mov byte [ebx], 1
mov byte [ebx + 1], dl
jmp 0x1005e3b4
cmp al, 1
jne 0x1005e32f
cmp byte [ebp - 0x115], 0
je 0x1005e30b
mov eax, dword [edi + 0xc]
cmp dword [eax], 5
je 0x1005e2d4
mov dword [eax], 5
push edi
push dword [ebp - 0x13c]
call fcn.1007e030
add esp, 8
test eax, eax
je 0x1005e357
push str.Unable_to_negotiate_SOCKS5_GSS_API_context.
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
push str.SOCKS5_GSSAPI_per_message_authentication_is_not_supported.
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
cmp al, 0xff
jne 0x1005e357
push str.No_authentication_method_was_acceptable.
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
push str.Undocumented_SOCKS5_mode_attempted_to_be_used_by_server.
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 0x20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
xor edx, edx
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x124], 0
mov word [ebx], 1
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x13c], edx
test eax, eax
je 0x1005e3f8
test edx, edx
je 0x1005e3f8
cmp edx, 0xff
jb 0x1005e3e4
push str.Excessive_user_name_length_for_proxy_auth
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
push edx
push eax
lea eax, [ebx + 2]
push eax
call fcn.1008dc20
mov edx, dword [ebp - 0x13c]
add esp, 0xc
mov eax, dword [ebp - 0x128]
lea ecx, [edx + 2]
mov edx, dword [ebp - 0x148]
mov byte [ecx + ebx], al
inc ecx
mov dword [ebp - 0x124], ecx
test edx, edx
je 0x1005e45e
test eax, eax
je 0x1005e45e
cmp eax, 0xff
jbe 0x1005e444
push str.Excessive_password_length_for_proxy_auth
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 0xa
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
push eax
push edx
lea eax, [ecx + ebx]
push eax
call fcn.1008dc20
mov eax, dword [ebp - 0x128]
add esp, 0xc
mov ecx, dword [ebp - 0x124]
add ecx, eax
mov eax, dword [edi + 0xc]
cmp dword [eax], 7
je 0x1005e46e
mov dword [eax], 7
mov dword [esi + 4], ecx
mov dword [esi + 8], ebx
lea eax, [ebp - 0x120]
push eax
push dword [esi + 4]
push dword [esi + 8]
push dword [ebp - 0x130]
push edi
call fcn.1004cf20
add esp, 0x14
test eax, eax
je 0x1005e4bd
cmp eax, 0x51
je 0x1005e4bd
push str.Failed_to_send_SOCKS5_sub_negotiation_request.
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x120]
cmp eax, ecx
jne 0x1005e1a0
mov dword [esi + 8], ebx
mov dword [esi + 4], 2
mov eax, dword [edi + 0xc]
cmp dword [eax], 8
je case.0x1005e03f.8
mov dword [eax], 8
lea eax, [ebp - 0x11c]
push eax
push dword [esi + 4]
push dword [esi + 8]
push dword [ebp - 0x130]
call fcn.1004cb20
mov ecx, dword [ebp - 0x11c]
add esp, 0x10
test eax, eax
je 0x1005e534
cmp eax, 0x51
je 0x1005e53c
push str.Unable_to_receive_SOCKS5_sub_negotiation_response.
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 0xe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x1005eaeb
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x1005e1f0
mov al, byte [ebx + 1]
test al, al
je 0x1005e57a
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.1004c9f0
add esp, 0x10
mov eax, 0x21
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xc]
cmp dword [eax], 9
je case.0x1005e03f.9
mov dword [eax], 9
cmp byte [ebp - 0x138], 0
je 0x1005e6c9
lea eax, [ebp - 0x134]
push eax
push 0
push dword [ebp - 0x144]
push dword [ebp - 0x12c]
push edi
call fcn.100533b0
mov ecx, eax
add esp, 0x14
cmp ecx, 0xffffffff
je 0x1005e7cb
mov eax, dword [edi + 0xc]
cmp ecx, 1
jne 0x1005e5e8
cmp dword [eax], 0xa
je 0x1005eb31
pop edi
pop esi
mov dword [eax], 0xa
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
cmp dword [eax], 0xb
je 0x1005e5f3
mov dword [eax], 0xb
mov edx, dword [ebp - 0x134]
test edx, edx
je 0x1005e7b7
mov eax, dword [edx]
mov dword [ebp - 0x124], eax
test eax, eax
je 0x1005e7b7
push 0x100
lea ecx, [ebp - 0x114]
push ecx
push eax
call fcn.10053360
lea ecx, [ebp - 0x114]
add esp, 0xc
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005e630
push dword [ebp - 0x144]
sub ecx, edx
mov eax, 0x100
sub eax, ecx
push 0x100bece8
push eax
lea eax, [ebp - 0x114]
add eax, ecx
push eax
call fcn.1005ee20
mov eax, dword [ebp - 0x124]
add esp, 0x10
mov word [ebx], 0x105
mov byte [ebx + 2], 0
mov dword [ebp - 0x138], 3
mov ecx, dword [eax + 4]
cmp ecx, 2
jne 0x1005e740
mov byte [ebx + 3], 1
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x138], 8
movzx eax, byte [ecx + 4]
mov byte [ebx + 4], al
movzx eax, byte [ecx + 5]
mov byte [ebx + 5], al
movzx eax, byte [ecx + 6]
mov byte [ebx + 6], al
movzx eax, byte [ecx + 7]
mov byte [ebx + 7], al
push dword [ebp - 0x134]
push edi
call fcn.10053810
mov ecx, dword [ebp - 0x138]
add esp, 8
jmp case.0x1005e03f.13
mov word [ebx], 0x105
mov byte [ebx + 2], 0
jmp 0x1005e7fb
push dword [ebp - 0x144]
push dword [ebp - 0x12c]
push edi
call fcn.10052c50
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x134], edx
test edx, edx
je 0x1005e70a
mov dword [edi + 0x9a4], edx
mov byte [edi + 0x9b8], 1
jmp case.0x1005e03f.11
lea eax, [ebp - 0x134]
push eax
push edi
call fcn.10053780
mov edx, dword [ebp - 0x134]
add esp, 8
test edx, edx
jne 0x1005e601
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0x1b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
cmp ecx, 0x17
jne 0x1005e788
mov byte [ebx + 3], 4
xor ecx, ecx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x138], 0x14
nop dword [eax + eax]
mov al, byte [edx + ecx + 8]
mov byte [ebx + ecx + 4], al
inc ecx
cmp ecx, 0x10
jl 0x1005e760
push dword [ebp - 0x134]
push edi
call fcn.10053810
mov ecx, dword [ebp - 0x138]
add esp, 8
jmp case.0x1005e03f.13
lea eax, [ebp - 0x114]
push eax
push str.SOCKS5_connection_to__s_not_supported
push edi
call fcn.1004c9f0
add esp, 0xc
push dword [ebp - 0x134]
push edi
call fcn.10053810
mov ecx, dword [ebp - 0x138]
add esp, 8
jmp case.0x1005e03f.13
push dword [ebp - 0x12c]
push str.Failed_to_resolve___s__for_SOCKS5_connect.
push edi
call fcn.1004c9f0
add esp, 0xc
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x128], 5
mov byte [ebx + 2], cl
mov ecx, 3
mov word [ebx], 0x105
je case.0x1005e03f.13
cmp byte [esi + 0x26b], 0
je 0x1005e830
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x12c]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1005ead0
movups xmm0, xmmword [ebp - 0x14]
mov byte [ebx + 3], 4
lea ecx, [eax + 0x13]
movups xmmword [ebx + 4], xmm0
jmp case.0x1005e03f.13
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x12c]
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1005e85d
mov byte [ebx + 3], al
mov ecx, 8
mov eax, dword [ebp - 0x124]
mov dword [ebx + 4], eax
jmp case.0x1005e03f.13
mov eax, dword [ebp - 0x14c]
push eax
push dword [ebp - 0x12c]
mov byte [ebx + 3], 3
mov byte [ebx + 4], al
lea eax, [ebx + 5]
push eax
call fcn.1008dc20
mov ecx, dword [ebp - 0x14c]
add esp, 0xc
add ecx, 5
mov edx, dword [ebp - 0x144]
mov eax, edx
sar eax, 8
mov byte [ecx + ebx], al
mov byte [ecx + ebx + 1], dl
cmp dword [esi + 0x510], 0
jne 0x1005e91b
lea eax, [ecx + 2]
mov dword [esi + 8], ebx
mov dword [esi + 4], eax
mov eax, dword [edi + 0xc]
cmp dword [eax], 0xe
je case.0x1005e03f.14
mov dword [eax], 0xe
lea eax, [ebp - 0x120]
push eax
push dword [esi + 4]
push dword [esi + 8]
push dword [ebp - 0x130]
push edi
call fcn.1004cf20
add esp, 0x14
test eax, eax
je 0x1005e901
cmp eax, 0x51
je 0x1005e901
push str.Failed_to_send_SOCKS5_connect_request.
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x120]
cmp eax, ecx
jne 0x1005e1a0
cmp dword [esi + 0x510], 0
je 0x1005e93f
push str.SOCKS5_GSS_API_protection_not_yet_implemented.
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], 0xa
mov dword [esi + 8], ebx
mov eax, dword [edi + 0xc]
cmp dword [eax], 0xf
je case.0x1005e03f.15
mov dword [eax], 0xf
lea eax, [ebp - 0x11c]
push eax
push dword [esi + 4]
push dword [esi + 8]
push dword [ebp - 0x130]
call fcn.1004cb20
mov ecx, dword [ebp - 0x11c]
add esp, 0x10
test eax, eax
je 0x1005e9a5
cmp eax, 0x51
je 0x1005e9ad
push str.Failed_to_receive_SOCKS5_connect_request_ack.
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x1005eaeb
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x1005e1f0
cmp byte [ebx], 5
je 0x1005e9e1
push str.SOCKS5_reply_has_wrong_version__version_should_be_5.
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 1]
test al, al
je 0x1005ea24
movzx esi, al
mov ebx, 0x19
push esi
push dword [ebp - 0x12c]
push str.Cant_complete_SOCKS5_connection_to__s.___d_
push edi
call fcn.1004c9f0
add esp, 0x10
cmp esi, 9
jae 0x1005ea11
mov ebx, dword [esi*4 + 0x100bea34]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 3]
cmp al, 3
jne 0x1005ea34
movzx eax, byte [ebx + 4]
add eax, 7
jmp 0x1005ea48
cmp al, 4
jne 0x1005ea3f
mov eax, 0x16
jmp 0x1005ea48
cmp al, 1
jne 0x1005eac2
mov eax, 0xa
cmp dword [esi + 0x510], 0
jne case.0x1005e03f.16
cmp eax, 0xa
jbe 0x1005eb1a
add eax, 0xfffffff6
mov dword [esi + 4], eax
lea eax, [ebx + 0xa]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
cmp dword [eax], 0x10
je case.0x1005e03f.16
mov dword [eax], 0x10
lea eax, [ebp - 0x11c]
push eax
push dword [esi + 4]
push dword [esi + 8]
push dword [ebp - 0x130]
call fcn.1004cb20
mov ecx, dword [ebp - 0x11c]
add esp, 0x10
test eax, eax
je 0x1005eae7
cmp eax, 0x51
je 0x1005eb0f
push str.Failed_to_receive_SOCKS5_connect_request_ack.
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 0xd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
push str.SOCKS5_reply_has_wrong_address_type.
push edi
call fcn.1004c9f0
add esp, 8
mov eax, dword [ebp - 0x150]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x1005eb0f
push str.connection_to_proxy_closed
push edi
call fcn.1004c9f0
add esp, 8
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x1005e1f0
mov eax, dword [edi + 0xc]
cmp dword [eax], 0x11
je case.0x1005e03f.5
mov dword [eax], 0x11
mov eax, dword [ebp - 0x154]
mov byte [eax], 1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret