Function at 0x4054c0
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.00409990
add esp, 0xc
lea edx, [ebp - 0x8cc]
mov dword [ebp - 0x8f0], edx
cmp dword [ebp + 0x14], 0
je 0x40550d
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 0x40555b
jmp 0x405799
cmp dword [ebp + 0xc], 0
jne 0x40556b
jmp 0x405799
mov byte [ebp - 0xcc], 0
push 0xc7
push 0
lea edx, [ebp - 0xcb]
push edx
call fcn.00409990
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 0x4055c0
cmp dword [ebp - 0x8dc], 0
jne 0x4055ca
jmp 0x405799
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.004074d7
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 0x405693
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 0x405657
cmp dword [ebp - 0x8dc], 0
jne 0x40567c
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 0x405799
mov ecx, dword [ebp - 0x8d0]
add ecx, dword [ebp - 0x8dc]
mov dword [ebp - 0x8d0], ecx
jmp 0x405607
cmp dword [ebp - 0x8d0], 5
jge 0x4056a8
jmp 0x405799
mov edx, dword [ebp - 0x8d0]
sub edx, 5
mov dword [ebp - 0x8d0], edx
push 5
mov eax, dword [ebp - 0x8d4]
push eax
push str.AS101
call fcn.00411795
add esp, 0xc
mov dword [ebp - 0x8f4], eax
cmp dword [ebp - 0x8f4], 0
je 0x4056e6
jmp 0x405799
mov dword [ebp - 0x8e0], 0
jmp 0x405701
mov ecx, dword [ebp - 0x8e0]
add ecx, 1
mov dword [ebp - 0x8e0], ecx
mov edx, dword [ebp - 0x8e0]
cmp edx, dword [ebp - 0x8d0]
jge 0x405732
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 0x4056f2
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x8d0]
jl 0x40576e
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.0040a5f0
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x8d0]
mov dword [edx], eax
jmp 0x40578f
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.0040a5f0
add esp, 0xc
mov dword [ebp - 0x8e8], 1
cmp dword [ebp - 0x8d4], 0
je 0x4057e8
mov edx, dword [ebp - 0x8d4]
mov dword [ebp - 0x8ec], edx
mov eax, dword [ebp - 0x8ec]
push eax
call fcn.004078cb
add esp, 4
cmp dword [ebp - 0x8ec], 0
jne 0x4057d2
mov dword [ebp - 0x8fc], 0
jmp 0x4057e8
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.00405da4
mov esp, ebp
pop ebp
ret