Function at 0x447390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6091c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
mov ebp, ecx
mov al, byte [ebp + 0x18]
mov dword [esp + 0x74], 1
test al, al
je 0x4473ce
push str.Already_Connected
lea ecx, [ebp + 0x14]
call fcn.005dd2ed
jmp 0x4477a5
push 0
push 0x3f
push 1
push 0
mov ecx, ebp
call fcn.005fc0b0
test eax, eax
jne 0x4473f3
push str.Could_not_create_socket
lea ecx, [ebp + 0x14]
call fcn.005dd2ed
jmp 0x4477a5
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x7c]
push eax
call fcn.004fa3d0
mov edx, dword [ebp]
lea eax, [esp + 0x1c]
push 0x10
push eax
mov ecx, ebp
call dword [edx + 0x34]
test eax, eax
jne 0x44749d
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x80]
call fcn.004fa420
mov eax, dword [eax]
add ebp, 0x14
push eax
push str.Could_not_establish_connection_to__s
push ebp
mov byte [esp + 0x80], 2
call fcn.005d59a6
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
sub eax, ecx
mov byte [esp + 0x74], 3
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00402b70
mov edx, dword [0x6abf00]
mov dword [esp + 0x84], edx
push 0
lea ecx, [esp + 0x88]
mov byte [esp + 0x78], 4
call fcn.004f5a80
push eax
mov ecx, ebp
call fcn.005dd29d
lea ecx, [esp + 0x84]
mov byte [esp + 0x74], 1
call fcn.005dd1b0
jmp 0x4477a5
push ebp
lea ecx, [esp + 0x10]
call fcn.004477e0
mov bl, byte [esp + 0x84]
mov byte [esp + 0x74], 5
test bl, bl
mov byte [esp + 0x2c], 5
jne 0x4474cc
mov byte [esp + 0x2d], 1
mov byte [esp + 0x2e], bl
mov esi, 3
jmp 0x4474e0
mov byte [esp + 0x2d], 2
mov byte [esp + 0x2e], 2
mov byte [esp + 0x2f], 0
mov esi, 4
mov eax, dword [ebp]
push 0
lea ecx, [esp + 0x30]
push esi
push ecx
mov ecx, ebp
call dword [eax + 0x18]
cmp eax, esi
je 0x4474fe
push str.Send_failed
jmp 0x44778f
mov edx, dword [ebp]
push 0
lea eax, [esp + 0x30]
push 0x40
push eax
mov ecx, ebp
call dword [edx + 0x14]
cmp eax, 2
je 0x44751e
push str.Receive_failed
jmp 0x44778f
cmp byte [esp + 0x2c], 5
je 0x44752f
push str.Invalid_socks_version
jmp 0x44778f
mov al, byte [esp + 0x2d]
test al, al
je 0x447609
test bl, bl
je 0x44777f
cmp al, 2
jne 0x44777f
mov eax, dword [esp + 0x88]
mov byte [esp + 0x2c], 1
push edi
mov esi, eax
mov ecx, dword [eax - 8]
lea edi, [esp + 0x32]
mov byte [esp + 0x31], cl
mov ecx, dword [eax - 8]
mov edx, ecx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax - 8]
lea ebx, [eax + 2]
mov eax, dword [esp + 0x94]
inc ebx
mov esi, eax
mov ecx, dword [eax - 8]
mov byte [esp + ebx + 0x33], cl
mov ecx, dword [eax - 8]
mov edx, ecx
lea edi, [esp + ebx + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax - 8]
mov eax, dword [ebp]
add ebx, ecx
lea ecx, [esp + 0x34]
push ebx
push ecx
mov ecx, ebp
call dword [eax + 0x18]
cmp eax, ebx
pop edi
je 0x4475c6
push str.Send_failed
jmp 0x44778f
mov edx, dword [ebp]
push 0
lea eax, [esp + 0x30]
push 0x40
push eax
mov ecx, ebp
call dword [edx + 0x14]
cmp eax, 2
je 0x4475e6
push str.Receive_failed
jmp 0x44778f
cmp byte [esp + 0x2c], 1
je 0x4475f7
push str.Invalid_subnegotiation_version
jmp 0x44778f
mov al, byte [esp + 0x2d]
test al, al
je 0x447609
push str.Invalid_Username_or_Password
jmp 0x44778f
mov edx, dword [ebp]
xor esi, esi
push esi
lea eax, [esp + 0x30]
push 0xa
push eax
mov ecx, ebp
mov byte [esp + 0x38], 5
mov byte [esp + 0x39], 1
mov byte [esp + 0x3a], 0
mov byte [esp + 0x3b], 1
mov dword [esp + 0x3c], esi
mov word [esp + 0x40], si
call dword [edx + 0x18]
cmp eax, 0xa
je 0x447647
push str.Send_failed
jmp 0x44778f
mov edx, dword [ebp]
push esi
lea eax, [esp + 0x30]
push 0x40
push eax
mov ecx, ebp
call dword [edx + 0x14]
cmp eax, esi
jg 0x447665
push str.Receive_failed
jmp 0x44778f
cmp eax, 4
jg 0x447674
push str.Receive_packet_too_short
jmp 0x44778f
cmp byte [esp + 0x2c], 5
je 0x447685
push str.Invalid_socks_version
jmp 0x44778f
mov cl, byte [esp + 0x2d]
test cl, cl
jne 0x447732
cmp byte [esp + 0x2f], 1
je 0x4476a2
push str.Invalid_address_type
jmp 0x44778f
cmp eax, 0xa
je 0x4476b1
push str.Invalid_receive_packet_length
jmp 0x44778f
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push edx
mov dword [ebp + 0x1c], ecx
call sub.WS2_32.dll_htons
lea ecx, [esp + 0xc]
mov word [ebp + 0x20], ax
mov byte [ebp + 0x18], 1
call fcn.004477f0
push 0x20
mov ecx, ebp
call fcn.005fc2a7
push str.Socks5_UDP_Associate_established_n
call fcn.005d4217
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x74], 1
call fcn.00447800
lea ecx, [esp + 0x88]
mov byte [esp + 0x74], 0
call fcn.005dd1b0
lea ecx, [esp + 0x8c]
mov dword [esp + 0x74], 0xffffffff
call fcn.005dd1b0
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret 0x14
cmp cl, 1
jne 0x44773e
push str.General_SOCKS_server_failure
jmp 0x44778f
cmp cl, 2
jne 0x44774a
push str.Connection_not_allowed_by_ruleset
jmp 0x44778f
cmp cl, 5
jne 0x447756
push str.Connection_refused
jmp 0x44778f
cmp cl, 7
jne 0x447762
push str.SOCKS_Server_doesnt_support_UDP
jmp 0x44778f
mov eax, dword [esp + 0x2d]
add ebp, 0x14
and eax, 0xff
push eax
push str.SOCKS_server_returned_error_code__d
push ebp
call fcn.005d59a6
add esp, 0xc
jmp 0x447797
cmp al, 0xff
jne 0x44778a
push str.Auth_needed
jmp 0x44778f
push str.Unknown_auth_method
lea ecx, [ebp + 0x14]
call fcn.005dd2ed
lea ecx, [esp + 0xc]
mov byte [esp + 0x74], 1
call fcn.00447800
lea ecx, [esp + 0x88]
mov byte [esp + 0x74], 0
call fcn.005dd1b0
lea ecx, [esp + 0x8c]
mov dword [esp + 0x74], 0xffffffff
call fcn.005dd1b0
mov ecx, dword [esp + 0x6c]
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 0x14