Function at 0x438d60
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
xor eax, eax
push ebx
push esi
mov ebx, eax
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
cmp eax, esi
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
je 0x438dab
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
mov edi, dword [ebp + 8]
mov edi, edi
cmp ebx, esi
je 0x438de8
cmp dword [esp + 0x14], esi
jl 0x438dc4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
jmp 0x438de8
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x438de8
push 0x49
push str..proxy.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
mov edx, dword [ebp + 0x14]
lea eax, [esp + 0x28]
push eax
push esi
push esi
lea ecx, [esp + 0x3c]
push ecx
lea eax, [edi + 1]
mov ebx, 1
push eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], esi
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
call fcn.00453190
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov edx, dword [ecx]
test edx, edx
jne 0x438f9f
test esi, esi
je 0x438eee
jl 0x438f34
push edx
push ebx
lea eax, [esp + 0x1a]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jne 0x438f6e
cmp dword [ebp + 0x10], ebx
mov cl, byte [esp + 0x12]
jle 0x438e66
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
add eax, ebx
sub dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], eax
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x438ed0
mov esi, dword [esp + 0x1c]
test esi, esi
mov edi, dword [esp + 0x18]
mov byte [esp + 0x13], cl
jl 0x438ea1
lea edx, [edi + esi + 1]
cmp edx, dword [esp + 0x14]
jg 0x438ea1
lea eax, [edi + ebx]
add eax, esi
add esi, 1
test eax, eax
mov dword [esp + 0x1c], esi
je 0x438ea1
movzx ecx, cl
mov byte [eax], cl
mov cl, byte [esp + 0x12]
movzx edx, cl
push edx
call dword [sym.imp.MSVCR80.dll_isprint]
add esp, 4
test eax, eax
jne 0x438ec9
movzx eax, byte [esp + 0x12]
push eax
call dword [sym.imp.MSVCR80.dll_isspace]
add esp, 4
test eax, eax
je 0x438fa8
mov cl, byte [esp + 0x12]
mov edi, dword [ebp + 8]
cmp dword [esp + 0x24], 0xd
jne 0x438ee0
cmp cl, 0xa
je 0x438ffb
movzx ecx, cl
mov dword [esp + 0x24], ecx
xor esi, esi
jmp 0x438db0
cmp dword [ebp + 0x18], 0
je 0x438f9f
cmp dword [0x5426d0], ebx
jb 0x438f9f
push 0x1000221
call fcn.00408960
add esp, 4
test eax, eax
je 0x438f9f
push str.recv_line:_TCP_port_read_timeout_expired
push 0x1000221
call fcn.00408640
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
je 0x438f9f
cmp dword [0x5426d0], ebx
jb 0x438f9f
push 0x1000221
call fcn.00408960
add esp, 4
test eax, eax
je 0x438f9f
push str.recv_line:_TCP_port_read_failed_on_select__
push 0x1000221
call fcn.00408640
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
je 0x438f9f
cmp dword [0x5426d0], ebx
jb 0x438f9f
push 0x1000221
call fcn.00408960
add esp, 4
test eax, eax
je 0x438f9f
push str.recv_line:_TCP_port_read_failed_on_recv__
push 0x1000221
call fcn.00408640
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
je 0x438fe0
cmp dword [0x5426d0], 1
jb 0x438fe0
push 0x1000221
call fcn.00408960
add esp, 4
test eax, eax
je 0x438fe0
movzx edx, byte [esp + 0x12]
push edx
push str.recv_line:_Non_ASCII_character___d__read_on_recv__
push 0x1000221
call fcn.00408640
add esp, 0xc
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
jle 0x439007
mov edx, dword [ebp + 0xc]
mov byte [edx], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret