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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8f8
mov eax, dword [0x42b044]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x8e8], 0
push 0x7fe
push 0
lea eax, [ebp - 0x8e6]
push eax
call fcn.004012f0
add esp, 0xc
lea ecx, [ebp - 0x8e8]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x14], 0
je 0x417827
mov edx, dword [ebp + 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov word [eax], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
jne 0x41785d
jmp 0x417a62
cmp dword [ebp + 0xc], 0
jne 0x41786d
jmp 0x417a62
mov byte [ebp - 0xe8], 0
push 0xc7
push 0
lea edx, [ebp - 0xe7]
push edx
call fcn.004012f0
add esp, 0xc
mov word [ebp - 0x10], 0
push 0
push 2
lea eax, [ebp - 0xe8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4178b6
cmp dword [ebp - 8], 0
jne 0x4178d6
push 0x427ef8
push 0x3ff
mov eax, dword [ebp - 4]
push eax
call fcn.004017c5
add esp, 0xc
jmp 0x417a62
mov cx, word [ebp - 0xe8]
mov word [ebp - 0x10], cx
mov dword [ebp - 0xc], 0
movzx edx, word [ebp - 0x10]
add edx, 2
push edx
call fcn.00403c31
add esp, 4
mov dword [ebp - 0x8f4], eax
mov eax, dword [ebp - 0x8f4]
mov dword [ebp - 0x14], eax
movzx ecx, word [ebp - 0x10]
cmp ecx, dword [ebp - 0xc]
jle 0x417982
push 0
movzx edx, word [ebp - 0x10]
sub edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x41793c
cmp dword [ebp - 8], 0
jne 0x417977
push 0x427f58
push 0x3ff
mov eax, dword [ebp - 4]
push eax
call fcn.004017c5
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x8ec], eax
mov ecx, dword [ebp - 0x8ec]
add ecx, 0xa
mov dword [ebp - 0x8ec], ecx
jmp 0x417a62
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
jmp 0x417907
cmp dword [ebp - 0xc], 5
jge 0x417994
jmp 0x417a62
mov eax, dword [ebp - 0xc]
sub eax, 5
mov dword [ebp - 0xc], eax
push 5
mov ecx, dword [ebp - 0x14]
push ecx
push 0x42c120
call fcn.004023b0
add esp, 0xc
test eax, eax
je 0x4179d4
push 0x427fb8
push 0x3ff
mov edx, dword [ebp - 4]
push edx
call fcn.004017c5
add esp, 0xc
jmp 0x417a62
mov dword [ebp - 0x8f0], 0
jmp 0x4179ef
mov eax, dword [ebp - 0x8f0]
add eax, 1
mov dword [ebp - 0x8f0], eax
mov ecx, dword [ebp - 0x8f0]
cmp ecx, dword [ebp - 0xc]
jge 0x417a17
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x8f0]
movzx eax, byte [edx + 5]
not eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x8f0]
mov byte [ecx + 5], al
jmp 0x4179e0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp - 0xc]
jl 0x417a42
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 5
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401460
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
jmp 0x417a5b
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 5
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401460
add esp, 0xc
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x14], 0
je 0x417a80
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x8f8], ecx
mov edx, dword [ebp - 0x8f8]
push edx
call fcn.004023ab
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004012de
mov esp, ebp
pop ebp
ret