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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8fc
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x8cc], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x8ca]
push ecx
call fcn.00409a20
add esp, 0xc
lea edx, [ebp - 0x8cc]
mov dword [ebp - 0x8f0], edx
cmp dword [ebp + 0x14], 0
je 0x40559d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x8f0], eax
mov ecx, 2
imul ecx, ecx, 0
xor edx, edx
mov eax, dword [ebp - 0x8f0]
mov word [eax + ecx], dx
mov dword [ebp - 0x8d4], 0
mov dword [ebp - 0x8d0], 0
mov dword [ebp - 0x8dc], 0
mov dword [ebp - 0x8e8], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
jne 0x4055eb
jmp 0x405829
cmp dword [ebp + 0xc], 0
jne 0x4055fb
jmp 0x405829
mov byte [ebp - 0xcc], 0
push 0xc7
push 0
lea edx, [ebp - 0xcb]
push edx
call fcn.00409a20
add esp, 0xc
xor eax, eax
mov word [ebp - 0x8d8], ax
push 0
push 2
lea ecx, [ebp - 0xcc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x8dc], eax
cmp dword [ebp - 0x8dc], 0xffffffff
je 0x405650
cmp dword [ebp - 0x8dc], 0
jne 0x40565a
jmp 0x405829
mov cx, word [ebp - 0xcc]
mov word [ebp - 0x8d8], cx
mov dword [ebp - 0x8d0], 0
movzx edx, word [ebp - 0x8d8]
add edx, 2
push edx
call fcn.00407567
add esp, 4
mov dword [ebp - 0x8f8], eax
mov eax, dword [ebp - 0x8f8]
mov dword [ebp - 0x8d4], eax
movzx ecx, word [ebp - 0x8d8]
cmp ecx, dword [ebp - 0x8d0]
jle 0x405723
push 0
movzx edx, word [ebp - 0x8d8]
sub edx, dword [ebp - 0x8d0]
push edx
mov eax, dword [ebp - 0x8d4]
add eax, dword [ebp - 0x8d0]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x8dc], eax
cmp dword [ebp - 0x8dc], 0xffffffff
je 0x4056e7
cmp dword [ebp - 0x8dc], 0
jne 0x40570c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x8e4], eax
mov eax, dword [ebp - 0x8e4]
add eax, 0xa
mov dword [ebp - 0x8e4], eax
jmp 0x405829
mov ecx, dword [ebp - 0x8d0]
add ecx, dword [ebp - 0x8dc]
mov dword [ebp - 0x8d0], ecx
jmp 0x405697
cmp dword [ebp - 0x8d0], 5
jge 0x405738
jmp 0x405829
mov edx, dword [ebp - 0x8d0]
sub edx, 5
mov dword [ebp - 0x8d0], edx
push 5
mov eax, dword [ebp - 0x8d4]
push eax
push 0x41af10
call fcn.00411825
add esp, 0xc
mov dword [ebp - 0x8f4], eax
cmp dword [ebp - 0x8f4], 0
je 0x405776
jmp 0x405829
mov dword [ebp - 0x8e0], 0
jmp 0x405791
mov ecx, dword [ebp - 0x8e0]
add ecx, 1
mov dword [ebp - 0x8e0], ecx
mov edx, dword [ebp - 0x8e0]
cmp edx, dword [ebp - 0x8d0]
jge 0x4057c2
mov eax, dword [ebp - 0x8d4]
add eax, dword [ebp - 0x8e0]
movzx ecx, byte [eax + 5]
not ecx
mov edx, dword [ebp - 0x8d4]
add edx, dword [ebp - 0x8e0]
mov byte [edx + 5], cl
jmp 0x405782
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x8d0]
jl 0x4057fe
mov edx, dword [ebp - 0x8d0]
push edx
mov eax, 1
imul eax, eax, 5
add eax, dword [ebp - 0x8d4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040a680
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x8d0]
mov dword [edx], eax
jmp 0x40581f
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, 1
imul eax, eax, 5
add eax, dword [ebp - 0x8d4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040a680
add esp, 0xc
mov dword [ebp - 0x8e8], 1
cmp dword [ebp - 0x8d4], 0
je 0x405878
mov edx, dword [ebp - 0x8d4]
mov dword [ebp - 0x8ec], edx
mov eax, dword [ebp - 0x8ec]
push eax
call fcn.0040795b
add esp, 4
cmp dword [ebp - 0x8ec], 0
jne 0x405862
mov dword [ebp - 0x8fc], 0
jmp 0x405878
mov dword [ebp - 0x8d4], 0x8123
mov ecx, dword [ebp - 0x8d4]
mov dword [ebp - 0x8fc], ecx
mov dword [ebp - 0x8d4], 0
mov eax, dword [ebp - 0x8e8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e34
mov esp, ebp
pop ebp
ret