Function at 0x458030
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x730b1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x64], ecx
mov eax, dword [edi + eax*4 + 0x420]
lea esi, [edi + 8]
mov ecx, dword [edi + 0x338]
mov ebx, dword [edi]
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x54], edx
mov edx, 0x71a0a4
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x4c], 0
cmp eax, 1
jl 0x45808c
mov ecx, eax
cmp eax, 0x11
jl 0x458167
mov esi, dword [ebp - 0x64]
mov ecx, eax
cmp byte [esi], 0
lea esi, [edi + 8]
jne 0x458167
cmp eax, 1
je 0x458167
mov dword [edi + 4], 1
cmp byte [edi + 0x518], 0
mov dword [edi + 0x570], 1
je 0x4580e3
push dword [ebp + 8]
cmp dword [ebp - 0x5c], 6
mov eax, edx
push dword [ebp - 0x54]
mov ecx, 0x70c6f4
cmovne eax, ecx
push eax
push str.SOCKS4_s:_connecting_to_HTTP_proxy__s_port__d_n
push ebx
call fcn.004511c0
add esp, 0x14
push dword [ebp + 8]
push dword [ebp - 0x54]
push str.SOCKS4_communication_to__s:_d_n
push ebx
call fcn.004511c0
mov ecx, dword [ebp + 8]
add esp, 0x10
mov eax, ecx
mov word [esi], 0x104
sar eax, 8
cmp dword [ebp - 0x5c], 6
mov byte [esi + 2], al
mov byte [esi + 3], cl
je 0x45818d
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
push eax
push 0
push ecx
mov ecx, edi
call fcn.00439390
mov ecx, eax
add esp, 0xc
cmp ecx, 0xffffffff
je 0x45833a
mov eax, dword [edi + 4]
cmp ecx, 1
jne 0x45817f
cmp eax, 0xa
je 0x458143
mov dword [edi + 4], 0xa
push dword [ebp - 0x54]
push str.SOCKS4_non_blocking_resolve_of__s_n
push ebx
call fcn.004511c0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
dec ecx
cmp ecx, 0xd
ja case.0x458178.2
movzx eax, byte [ecx + 0x458760]
jmp dword [eax*4 + 0x458744]
cmp eax, 0xb
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
jmp 0x458287
cmp dword [edi + 4], 9
je case.0x458178.9
mov dword [edi + 4], 9
mov eax, dword [ebp - 0x58]
lea ecx, [esi + 8]
mov byte [ecx], 0
test eax, eax
je 0x4583a7
mov edx, eax
lea eax, [edx + 1]
mov dword [ebp - 0x4c], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x4581b3
sub edx, dword [ebp - 0x4c]
cmp edx, 0x250
jb 0x458393
push str.Too_long_SOCKS_proxy_user_name__cant_use__n
push ebx
call fcn.004512d0
add esp, 8
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x364]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x458219
test byte [eax], 8
je 0x458219
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x458219
push dword [eax + 0x10]
push 2
push 3
push ebx
call ecx
add esp, 0x10
push dword [ebp - 0x4c]
mov edx, dword [ebp - 0x54]
mov ecx, edi
call fcn.00438fc0
add esp, 4
mov dword [ebp - 0x50], eax
test eax, eax
je 0x458233
inc dword [eax + 0x10]
mov ecx, dword [ebx + 0x80]
test ecx, ecx
je 0x458257
test byte [ecx], 8
je 0x458257
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x458257
push dword [ecx + 0x10]
push 3
push ebx
call edx
mov eax, dword [ebp - 0x50]
add esp, 0xc
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x458317
push dword [ebp - 0x54]
mov dword [edi + 0x5e4], eax
push str.Hostname__s_was_found_n
push ebx
mov byte [edi + 0x5f0], 1
call fcn.004511c0
mov eax, dword [ebp - 0x50]
add esp, 0xc
cmp dword [edi + 4], 0xb
je 0x458290
mov dword [edi + 4], 0xb
test eax, eax
je case.0x458178.11
mov ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
test ecx, ecx
je case.0x458178.11
mov byte [ebp - 0x48], 0
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, 2
jne 0x4582d2
mov edx, dword [ecx + 0x18]
lea eax, [ebp - 0x48]
push 0x40
push eax
add edx, 4
mov ecx, 2
call fcn.004430d0
mov ecx, dword [ebp - 0x4c]
add esp, 8
mov edx, dword [ecx + 4]
cmp edx, 2
jne 0x458350
mov ecx, dword [ecx + 0x18]
movzx eax, byte [ecx + 4]
mov byte [esi + 4], al
movzx eax, byte [ecx + 5]
mov byte [esi + 5], al
movzx eax, byte [ecx + 6]
mov byte [esi + 6], al
movzx eax, byte [ecx + 7]
mov byte [esi + 7], al
lea eax, [ebp - 0x48]
push eax
push str.SOCKS4_connect_to_IPv4__s__locally_resolved__n
push ebx
call fcn.004511c0
mov edx, dword [ebp - 0x50]
add esp, 0xc
mov ecx, ebx
call fcn.00439760
jmp case.0x458178.9
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x4c]
call fcn.00439f20
mov ecx, eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x458298
test ecx, ecx
je 0x458154
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x48]
push eax
push str.SOCKS4_connection_to__s_not_supported_n
push ebx
call fcn.004512d0
mov edx, dword [ebp - 0x50]
add esp, 0xc
mov ecx, ebx
call fcn.00439760
push dword [ebp - 0x54]
push str.Failed_to_resolve___s__for_SOCKS4_connect.
push ebx
call fcn.004512d0
add esp, 0xc
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
lea eax, [edx + 1]
push eax
mov eax, dword [ebp - 0x58]
push eax
push ecx
call fcn.00614e90
add esp, 0xc
lea ecx, [esi + 8]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4583b0
sub ecx, edx
cmp dword [ebp - 0x5c], 6
lea eax, [ecx + 9]
mov dword [ebp - 0x58], eax
jne 0x458413
mov ecx, dword [ebp - 0x54]
mov edx, ecx
mov dword [esi + 4], 0x1000000
lea eax, [edx + 1]
mov dword [ebp - 0x4c], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x4583d7
sub edx, dword [ebp - 0x4c]
lea eax, [edx + 1]
mov dword [ebp - 0x4c], eax
cmp eax, 0xff
ja 0x458486
mov edx, dword [ebp - 0x58]
sub edx, ecx
add edx, esi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x458400
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x4c]
mov dword [edi + 0x264], esi
mov dword [edi + 0x260], eax
cmp dword [edi + 4], 0xe
je case.0x458178.14
mov dword [edi + 4], 0xe
mov ecx, dword [ebp - 0x60]
xor eax, eax
cmp ecx, dword [edi + 0x424]
lea ecx, [ebp - 0x58]
push ecx
push dword [edi + 0x260]
sete al
push dword [edi + 0x264]
push eax
push edi
call fcn.004513d0
mov ecx, eax
add esp, 0x14
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4584aa
cmp eax, 0x51
je 0x4584aa
push str.Failed_to_send_SOCKS4_connect_request.
push ebx
call fcn.004512d0
add esp, 8
mov eax, 0x1d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
push str.SOCKS4:_too_long_host_name
push ebx
call fcn.004512d0
add esp, 8
mov eax, 9
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x260]
cmp ecx, eax
je 0x4584d5
add dword [edi + 0x264], ecx
sub eax, ecx
mov dword [edi + 0x260], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x260], 8
mov dword [edi + 0x264], esi
cmp dword [edi + 4], 4
je case.0x458178.4
mov dword [edi + 4], 4
push 0
push dword [edi + 0x260]
push dword [edi + 0x264]
push dword [ebp - 0x60]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x45854a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x458572
mov ecx, 0x38
call fcn.00459b20
push eax
push str.SOCKS4:_Failed_receiving_connect_request_ack:__s
push ebx
call fcn.004512d0
add esp, 0xc
mov eax, 0xf
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x458574
push str.connection_to_proxy_closed
push ebx
call fcn.004512d0
add esp, 8
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [edi + 0x260]
cmp eax, ecx
je 0x45859f
add dword [edi + 0x264], eax
sub ecx, eax
mov dword [edi + 0x260], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
cmp dword [edi + 4], 0x11
mov edx, 0x71a0a4
je case.0x458178.2
mov dword [edi + 4], 0x11
cmp byte [esi], 0
je 0x4585da
push str.SOCKS4_reply_has_wrong_version__version_should_be_0.
push ebx
call fcn.004512d0
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 1]
lea ecx, [eax - 0x5a]
cmp ecx, 3
ja case.default.0x4585ea
jmp dword [ecx*4 + 0x458770]
cmp dword [ebp - 0x5c], 6
mov eax, 0x70c6f4
cmovne edx, eax
push edx
push str.SOCKS4_s_request_granted._n
push ebx
call fcn.004511c0
mov eax, dword [ebp - 0x64]
add esp, 0xc
mov byte [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
movzx ecx, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 7]
push ecx
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
push str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___request_rejected_or_failed.
push ebx
call fcn.004512d0
mov eax, 0x1a
add esp, 0x20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
movzx ecx, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 7]
push ecx
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
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 ebx
call fcn.004512d0
mov eax, 7
add esp, 0x20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
movzx ecx, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 7]
push ecx
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
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 ebx
call fcn.004512d0
mov eax, 8
add esp, 0x20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
movzx ecx, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 7]
push ecx
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
push str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___Unknown.
push ebx
call fcn.004512d0
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
mov eax, 0x1f
pop edi
pop esi
pop ebx
call fcn.00610840
mov esp, ebp
pop ebp
ret