Function at 0x43abb0
Capabilities:
Check for time delay via gettickcount
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x5b4
mov eax, dword [0x4c8630]
xor eax, esp
mov dword [esp + 0x5ac], eax
mov eax, dword [esp + 0x5b8]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x5c4]
mov edx, dword [ecx + edx*4 + 0x134]
mov dword [esp + 0x14], edx
xor edx, edx
cmp dword [ecx + 0x118], 5
push ebx
sete dl
push ebp
mov ebp, dword [ecx]
push esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x5c8]
mov dword [esp + 0x18], ecx
mov esi, edx
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x34], esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43ac13
sub eax, ecx
mov dword [esp + 0x2c], eax
test esi, esi
jne 0x43ac43
cmp eax, 0xff
jbe 0x43ac43
push eax
push str.SOCKS5:_server_resolving_disabled_for_hostnames_of_length___255__actual_len_zu__n
mov ecx, ebp
call fcn.00433c20
add esp, 8
mov dword [esp + 0x34], 1
mov edx, dword [ebp + 0x19c]
xor eax, eax
mov ebx, 0x493e0
test edx, edx
jle 0x43ac59
mov eax, 1
mov ecx, dword [ebp + 0x1a0]
test ecx, ecx
jle 0x43ac66
or eax, 2
sub eax, 1
je 0x43ac7d
sub eax, 1
je 0x43ac79
sub eax, 1
jne 0x43ac7f
cmp edx, ecx
jl 0x43ac7d
mov ebx, ecx
jmp 0x43ac7f
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov edi, edx
shr edi, 6
mov eax, edi
imul eax, eax, 0x3e8
mov esi, dword [ebp + 0x4d0]
sub ecx, eax
imul ecx, ecx, 0x3e8
sub ecx, dword [ebp + 0x4d4]
mov eax, 0x10624dd3
imul ecx
sub esi, edi
imul esi, esi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
add ebx, esi
je 0x43acd2
test ebx, ebx
jge 0x43ace8
push str.Connection_time_out
mov eax, ebp
call fcn.00433ce0
mov eax, 0x1c
jmp 0x43b587
mov esi, dword [esp + 0x24]
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea edx, [esp + 0x20]
push edx
push 0x8004667e
push esi
mov dword [esp + 0x2c], 1
call edi
push esi
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.00433550
add esp, 0xc
cmp eax, 0xffffffff
jne 0x43ad29
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
push str.SOCKS5:_no_connection_here
jmp 0x43b57d
test eax, eax
jne 0x43ad47
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
push str.SOCKS5:_connection_timeout
call fcn.00433ce0
mov eax, 0x1c
jmp 0x43b587
test al, 4
je 0x43ad5b
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
push str.SOCKS5:_error_occurred_during_connection
jmp 0x43b57d
cmp dword [esp + 0x18], 0
lea ecx, [esp + 0x20]
push ecx
setne al
push 0x8004667e
inc al
push esi
mov byte [esp + 0x36c], 5
mov byte [esp + 0x36d], al
mov byte [esp + 0x36e], 0
mov byte [esp + 0x36f], 2
mov dword [esp + 0x2c], 0
call edi
movzx eax, byte [esp + 0x361]
lea edx, [esp + 0x20]
push edx
add eax, 2
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x368]
push ecx
mov edx, esi
call fcn.00433fa0
add esp, 0xc
test eax, eax
jne 0x43b576
movzx edx, byte [esp + 0x361]
add edx, 2
cmp dword [esp + 0x20], edx
jne 0x43b576
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x44], edi
cmp esi, 0xffffffff
jne 0x43ae0f
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x43af7d
test ebx, ebx
jle 0x43ae3d
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov ebp, edx
mov dword [esp + 0x44], ecx
mov eax, 1
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x154], esi
mov dword [esp + 0x150], eax
mov dword [esp + 0x258], 0
test ebx, ebx
jle 0x43ae90
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x38], eax
imul eax, eax, 0x3e8
mov ecx, edi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x3c], ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x154]
push eax
lea ecx, [esp + 0x260]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x43af2f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x43aed7
cmp dword [0x4cbda8], 0
jne 0x43af2f
cmp eax, 0x2714
jne 0x43af2f
test ebx, ebx
jle 0x43ae90
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov esi, edx
shr esi, 6
mov eax, esi
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
sub ecx, dword [esp + 0x44]
mov eax, 0x10624dd3
imul ecx
mov edi, ebp
sub edi, esi
imul edi, edi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub edi, ecx
add edi, ebx
test edi, edi
jle 0x43af7d
mov esi, dword [esp + 0x24]
jmp 0x43ae63
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x43af69
je 0x43af7d
lea edx, [esp + 0x48]
push edx
push esi
xor ebp, ebp
xor ebx, ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43af4f
lea ebx, [ebp + 1]
lea eax, [esp + 0x150]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43af64
or ebx, 4
cmp ebx, 0xffffffff
jne 0x43af79
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
push str.SOCKS5_nothing_to_read
jmp 0x43b57d
cmp ebx, ebp
jne 0x43af97
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
push str.SOCKS5_read_timeout
call fcn.00433ce0
mov eax, 0x1c
jmp 0x43b587
test bl, 4
je 0x43afb6
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
push str.SOCKS5_read_error_occurred
call fcn.00433ce0
mov eax, 0x38
jmp 0x43b587
lea ecx, [esp + 0x14]
push ecx
push 0x8004667e
push esi
mov dword [esp + 0x20], ebp
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push 2
lea eax, [esp + 0x368]
push eax
push esi
push ecx
call fcn.0043a3b0
add esp, 0x14
test eax, eax
jne 0x43b56b
cmp dword [esp + 0x14], 2
jne 0x43b56b
cmp byte [esp + 0x360], 5
je 0x43b013
mov eax, dword [esp + 0x10]
push str.Received_invalid_version_in_initial_SOCKS5_response.
jmp 0x43b57d
mov al, byte [esp + 0x361]
test al, al
je 0x43b156
cmp al, 2
jne 0x43b52a
mov edi, dword [esp + 0x18]
cmp edi, ebp
je 0x43b05f
mov esi, dword [esp + 0x30]
cmp esi, ebp
je 0x43b05f
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43b040
sub eax, edx
mov ebx, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43b050
sub eax, edx
mov dword [esp + 0x18], eax
jmp 0x43b067
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov eax, ebp
mov byte [esp + 0x360], 1
mov byte [esp + 0x361], bl
cmp edi, ebp
je 0x43b094
cmp ebx, ebp
je 0x43b094
push ebx
lea edx, [esp + 0x366]
push edi
push edx
call fcn.0048b710
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x30]
lea esi, [ebx + 2]
mov byte [esp + esi + 0x360], al
inc esi
test ecx, ecx
je 0x43b0c1
test eax, eax
je 0x43b0c1
push eax
push ecx
lea eax, [esp + esi + 0x368]
push eax
call fcn.0048b710
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
add esi, eax
push ecx
lea edx, [esp + 0x364]
push esi
push edx
mov edx, ebx
mov eax, edi
call fcn.00433fa0
add esp, 0xc
test eax, eax
jne 0x43b51f
cmp esi, dword [esp + 0x20]
jne 0x43b51f
lea eax, [esp + 0x14]
push eax
push 2
lea ecx, [esp + 0x368]
push ecx
push ebx
push edi
call fcn.0043a3b0
add esp, 0x14
test eax, eax
jne 0x43b514
cmp dword [esp + 0x14], 2
jne 0x43b514
mov al, byte [esp + 0x361]
test al, al
je 0x43b156
movzx edx, al
movzx eax, byte [esp + 0x360]
push edx
push eax
mov eax, dword [esp + 0x18]
push str.User_was_rejected_by_the_SOCKS5_server___d__d_.
call fcn.00433ce0
add esp, 0xc
mov eax, 7
jmp 0x43b58a
cmp dword [esp + 0x34], 0
mov byte [esp + 0x360], 5
mov byte [esp + 0x361], 1
mov byte [esp + 0x362], 0
mov ebp, 3
jne 0x43b242
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push ebx
push ecx
lea edx, [esp + 0x36d]
push edx
mov byte [esp + 0x36f], 3
mov byte [esp + 0x370], bl
call fcn.0048b710
add esp, 0xc
lea ebp, [ebx + 5]
mov eax, dword [esp + 0x5d0]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov ecx, eax
sar ecx, 8
mov byte [esp + ebp + 0x360], cl
inc ebp
mov byte [esp + ebp + 0x360], al
lea edx, [esp + 0x20]
push edx
inc ebp
lea eax, [esp + 0x364]
push ebp
push eax
mov edx, edi
mov eax, ebx
call fcn.00433fa0
add esp, 0xc
test eax, eax
jne 0x43b509
cmp ebp, dword [esp + 0x20]
jne 0x43b509
lea ecx, [esp + 0x14]
push ecx
push 0xa
lea edx, [esp + 0x368]
push edx
push edi
push ebx
call fcn.0043a3b0
add esp, 0x14
test eax, eax
jne 0x43b4d0
cmp dword [esp + 0x14], 0xa
jne 0x43b4d0
cmp byte [esp + 0x360], 5
je 0x43b327
mov eax, dword [esp + 0x10]
push str.SOCKS5_reply_has_wrong_version__version_should_be_5.
jmp 0x43b57d
mov ecx, dword [esp + 0x5d0]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
push ebx
call fcn.00432980
add esp, 0x10
cmp eax, 0xffffffff
je 0x43b31d
cmp eax, 1
jne 0x43b284
lea eax, [esp + 0x18]
push eax
call fcn.004331f0
add esp, 4
test eax, eax
jne 0x43b58a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43b307
mov ebx, dword [eax]
test ebx, ebx
je 0x43b307
cmp dword [ebx + 4], 2
jne 0x43b2f0
mov byte [esp + 0x363], 1
mov eax, dword [ebx + 0x18]
lea esi, [esp + 0x360]
lea ecx, [esp + 0x364]
dec esi
sub eax, ecx
mov ebp, 4
lea edi, [eax + 4]
lea esp, [esp]
lea edx, [edi + ebp]
mov al, byte [esp + edx + 0x360]
mov byte [esp + ebp + 0x360], al
movzx ecx, byte [esi + ebp + 1]
inc ebp
push ecx
mov ecx, dword [esp + 0x14]
push 0x4bbd6c
call fcn.00433c20
add esp, 8
cmp ebp, 8
jl 0x43b2c0
jmp 0x43b2f2
xor ebx, ebx
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
call fcn.00432b70
test ebx, ebx
jne 0x43b1aa
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
push edx
push str.Failed_to_resolve___s__for_SOCKS5_connect.
call fcn.00433ce0
add esp, 8
mov eax, 6
jmp 0x43b58a
mov dl, byte [esp + 0x361]
mov al, byte [esp + 0x363]
test dl, dl
je 0x43b497
cmp al, 1
jne 0x43b39a
movzx ecx, byte [esp + 0x368]
movzx eax, dl
movzx edx, byte [esp + 0x369]
push eax
movzx eax, byte [esp + 0x36b]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x369]
push ecx
movzx ecx, byte [esp + 0x36e]
push eax
movzx eax, byte [esp + 0x370]
push ecx
push edx
push eax
mov eax, dword [esp + 0x28]
push str.Cant_complete_SOCKS5_connection_to__d._d._d._d:_d.___d_
call fcn.00433ce0
add esp, 0x1c
mov eax, 7
jmp 0x43b58a
cmp al, 3
jne 0x43b3d8
movzx eax, byte [esp + 0x369]
movzx ecx, dl
movzx edx, byte [esp + 0x368]
push ecx
mov ecx, dword [esp + 0x2c]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x14]
push edx
push ecx
push str.Cant_complete_SOCKS5_connection_to__s:_d.___d_
call fcn.00433ce0
add esp, 0x10
mov eax, 7
jmp 0x43b58a
cmp al, 4
jne 0x43b48d
movzx eax, byte [esp + 0x368]
movzx ecx, byte [esp + 0x369]
movzx edx, dl
push edx
mov edx, eax
shl edx, 8
or edx, ecx
push edx
movzx edx, byte [esp + 0x37b]
push edx
movzx edx, byte [esp + 0x37e]
push edx
movzx edx, byte [esp + 0x381]
push edx
movzx edx, byte [esp + 0x384]
push edx
movzx edx, byte [esp + 0x387]
push edx
movzx edx, byte [esp + 0x38a]
push edx
movzx edx, byte [esp + 0x38d]
push edx
movzx edx, byte [esp + 0x390]
push edx
movzx edx, byte [esp + 0x393]
push edx
movzx edx, byte [esp + 0x396]
push edx
movzx edx, byte [esp + 0x395]
push ecx
movzx ecx, byte [esp + 0x39a]
push eax
movzx eax, byte [esp + 0x39f]
push eax
movzx eax, byte [esp + 0x3a0]
push ecx
push edx
push eax
mov eax, dword [esp + 0x58]
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_
call fcn.00433ce0
add esp, 0x4c
mov eax, 7
jmp 0x43b58a
cmp al, 3
jne 0x43b4de
movzx esi, byte [esp + 0x364]
add esi, 7
cmp esi, 0xa
jle 0x43b4e9
lea ecx, [esp + 0x14]
push ecx
sub esi, 0xa
push esi
lea edx, [esp + 0x372]
push edx
push edi
push ebx
call fcn.0043a3b0
add esp, 0x14
test eax, eax
jne 0x43b4d0
cmp esi, dword [esp + 0x14]
je 0x43b4e9
mov eax, dword [esp + 0x10]
push str.Failed_to_receive_SOCKS5_connect_request_ack.
jmp 0x43b57d
cmp al, 4
jne 0x43b4e9
mov esi, 0x16
jmp 0x43b4ab
lea eax, [esp + 0x2c]
push eax
push 0x8004667e
push edi
mov dword [esp + 0x38], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
jmp 0x43b58a
mov eax, dword [esp + 0x10]
push str.Failed_to_send_SOCKS5_connect_request.
jmp 0x43b57d
mov eax, dword [esp + 0x10]
push str.Unable_to_receive_SOCKS5_sub_negotiation_response.
jmp 0x43b57d
mov eax, dword [esp + 0x10]
push str.Failed_to_send_SOCKS5_sub_negotiation_request.
jmp 0x43b57d
cmp al, 1
jne 0x43b539
mov eax, dword [esp + 0x10]
push str.SOCKS5_GSSAPI_per_message_authentication_is_not_supported.
jmp 0x43b57d
cmp al, 0xff
jne 0x43b560
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x43b555
cmp byte [eax], 0
je 0x43b555
mov eax, dword [esp + 0x10]
push str.No_authentication_method_was_acceptable.
jmp 0x43b57d
mov eax, dword [esp + 0x10]
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 0x43b57d
mov eax, dword [esp + 0x10]
push str.Undocumented_SOCKS5_mode_attempted_to_be_used_by_server.
jmp 0x43b57d
mov eax, dword [esp + 0x10]
push str.Unable_to_receive_initial_SOCKS5_response.
jmp 0x43b57d
push str.Unable_to_send_initial_SOCKS5_request.
mov eax, ebp
call fcn.00433ce0
mov eax, 7
add esp, 4
mov ecx, dword [esp + 0x5bc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00488f53
add esp, 0x5b4
ret