Function at 0x48c4c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x158], ecx
push edi
mov ecx, dword [ebx + 0xd0]
mov edi, edx
mov esi, dword [ebx]
xor edx, edx
mov eax, dword [ebx + eax*4 + 0x1a8]
mov dword [ebp - 0x164], ecx
mov ecx, esi
push 1
mov dword [ebp - 0x168], edi
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x16c], eax
call fcn.0046d1c0
add esp, 4
test edx, edx
jg 0x48c547
jl 0x48c523
test eax, eax
jae 0x48c547
push str.Connection_time_out
push esi
call fcn.0046c5e0
mov eax, 0x1c
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x2a2], 0
mov ecx, 0x6e9c8d
mov ebx, dword [ebp + 8]
je 0x48c57f
cmp dword [ebp - 0x164], 6
mov eax, 0x6f913c
push ebx
push edi
cmovne eax, ecx
mov ecx, dword [ebp - 0x160]
push eax
push str.SOCKS4_s:_connecting_to_HTTP_proxy__s_port__d_n
push dword [ecx]
call fcn.0046c560
add esp, 0x14
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], 0
push eax
push 0x8004667e
push dword [ebp - 0x16c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push ebx
push edi
push str.SOCKS4_communication_to__s:_d_n
push esi
call fcn.0046c560
mov eax, ebx
mov word [ebp - 0x114], 0x104
sar eax, 8
add esp, 0x10
cmp dword [ebp - 0x164], 6
mov byte [ebp - 0x112], al
mov byte [ebp - 0x111], bl
je 0x48c6d9
lea eax, [ebp - 0x15c]
mov edx, edi
push eax
push ebx
mov ebx, dword [ebp - 0x160]
mov ecx, ebx
call fcn.0046fa30
add esp, 8
cmp eax, 0xffffffff
jne 0x48c60d
mov eax, 5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x48c61f
lea edx, [ebp - 0x15c]
mov ecx, ebx
call fcn.0047a480
mov ebx, dword [ebp - 0x15c]
test ebx, ebx
je 0x48c6b4
mov edi, dword [ebx]
test edi, edi
je 0x48c6ae
push 0x40
lea edx, [ebp - 0x154]
mov ecx, edi
call fcn.0046f610
add esp, 4
cmp dword [edi + 4], 2
jne 0x48c68a
mov ecx, dword [edi + 0x18]
movzx eax, byte [ecx + 4]
mov byte [ebp - 0x110], al
movzx eax, byte [ecx + 5]
mov byte [ebp - 0x10f], al
movzx eax, byte [ecx + 6]
mov byte [ebp - 0x10e], al
movzx eax, byte [ecx + 7]
mov byte [ebp - 0x10d], al
lea eax, [ebp - 0x154]
push eax
push str.SOCKS4_connect_to_IPv4__s__locally_resolved__n
push esi
call fcn.0046c560
jmp 0x48c69e
lea eax, [ebp - 0x154]
xor edi, edi
push eax
push str.SOCKS4_connection_to__s_not_supported_n
push esi
call fcn.0046c5e0
add esp, 0xc
mov edx, ebx
mov ecx, esi
call fcn.0046fc00
test edi, edi
jne 0x48c6d9
mov edi, dword [ebp - 0x168]
push edi
push str.Failed_to_resolve___s__for_SOCKS4_connect.
push esi
call fcn.0046c5e0
add esp, 0xc
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x158]
mov byte [ebp - 0x10c], 0
test ebx, ebx
je 0x48c71f
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48c6f0
sub ecx, edx
cmp ecx, 0xfe
jb 0x48c70b
push str.Too_long_SOCKS_proxy_name__cant_use__n
jmp 0x48ca63
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.005f40c0
add esp, 0xc
lea ecx, [ebp - 0x10c]
xor edi, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48c730
sub ecx, edx
cmp dword [ebp - 0x164], 6
lea edx, [ecx + 9]
mov dword [ebp - 0x158], edx
jne 0x48c798
mov ebx, dword [ebp - 0x168]
mov ecx, ebx
mov dword [ebp - 0x110], 0x1000000
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48c760
sub ecx, edi
lea edi, [ecx + 1]
lea eax, [edx + edi]
cmp eax, 0x106
jg 0x48c796
lea edx, [ebp + edx - 0x114]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x48c781
mov edx, dword [ebp - 0x158]
jmp 0x48c798
xor edi, edi
mov ecx, dword [ebp - 0x160]
xor eax, eax
mov ebx, dword [ebp - 0x16c]
cmp ebx, dword [ecx + 0x1ac]
lea ebx, [edx + edi]
lea edx, [ebp - 0x158]
push edx
push ebx
lea edx, [ebp - 0x114]
sete al
push edx
push eax
push ecx
call fcn.0046c920
add esp, 0x14
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x158], 0
jne 0x48ca5e
cmp eax, ebx
jne 0x48ca5e
mov ebx, dword [ebp - 0x164]
cmp ebx, 6
jne 0x48c83d
test edi, edi
jne 0x48c83d
mov edx, dword [ebp - 0x168]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48c800
sub ecx, edi
lea eax, [ebp - 0x15c]
push eax
lea edi, [ecx + 1]
mov ecx, dword [ebp - 0x160]
push edi
push edx
mov edx, dword [ebp - 0x16c]
call fcn.0046c9b0
add esp, 0xc
test eax, eax
jne 0x48ca5e
cmp dword [ebp - 0x15c], edi
jne 0x48ca5e
mov edi, dword [ebp - 0x16c]
lea eax, [ebp - 0x158]
mov ecx, dword [ebp - 0x160]
mov edx, edi
push eax
lea eax, [ebp - 0x114]
push 8
push eax
call fcn.0048c320
add esp, 0xc
test eax, eax
jne 0x48ca57
cmp dword [ebp - 0x158], 8
jne 0x48ca57
cmp byte [ebp - 0x114], al
je 0x48c88a
push str.SOCKS4_reply_has_wrong_version__version_should_be_4.
jmp 0x48ca63
movzx eax, byte [ebp - 0x113]
lea ecx, [eax - 0x5a]
cmp ecx, 3
ja case.default.0x48c89d
jmp dword [ecx*4 + 0x48ca84]
cmp ebx, 6
mov ecx, 0x6e9c8d
mov eax, 0x6f913c
cmovne eax, ecx
push eax
push str.SOCKS4_s_request_granted._n
push esi
call fcn.0046c560
add esp, 0xc
mov dword [ebp - 0x158], 1
lea eax, [ebp - 0x158]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebp - 0x10c]
push eax
movzx eax, byte [ebp - 0x10b]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x10d]
push ecx
push eax
movzx eax, byte [ebp - 0x10e]
push eax
movzx eax, byte [ebp - 0x10f]
push eax
movzx eax, byte [ebp - 0x110]
push eax
push str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___request_rejected_or_failed.
push esi
call fcn.0046c5e0
add esp, 0x20
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebp - 0x10c]
push eax
movzx eax, byte [ebp - 0x10b]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x10d]
push ecx
push eax
movzx eax, byte [ebp - 0x10e]
push eax
movzx eax, byte [ebp - 0x10f]
push eax
movzx eax, byte [ebp - 0x110]
push eax
push str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___request_rejected_because_SOCKS_server_cannot_connect_to_identd_on_the_client.
push esi
call fcn.0046c5e0
add esp, 0x20
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebp - 0x10c]
push eax
movzx eax, byte [ebp - 0x10b]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x10d]
push ecx
push eax
movzx eax, byte [ebp - 0x10e]
push eax
movzx eax, byte [ebp - 0x10f]
push eax
movzx eax, byte [ebp - 0x110]
push eax
push str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___request_rejected_because_the_client_program_and_identd_report_different_user_ids.
push esi
call fcn.0046c5e0
add esp, 0x20
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebp - 0x10c]
push eax
movzx eax, byte [ebp - 0x10b]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x10d]
push ecx
push eax
movzx eax, byte [ebp - 0x10e]
push eax
movzx eax, byte [ebp - 0x10f]
push eax
movzx eax, byte [ebp - 0x110]
push eax
push str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___Unknown.
push esi
call fcn.0046c5e0
add esp, 0x20
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
push str.Failed_to_receive_SOCKS4_connect_request_ack.
jmp 0x48ca63
push str.Failed_to_send_SOCKS4_connect_request.
push esi
call fcn.0046c5e0
mov ecx, dword [ebp - 8]
add esp, 8
xor ecx, ebp
mov eax, 7
pop edi
pop esi
pop ebx
call fcn.004aa758
mov esp, ebp
pop ebp
ret