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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8f8
mov eax, dword [0x428044]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
xor eax, eax
mov word [ebp - 0x8e8], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x8e6]
push ecx
call fcn.00417ec0
add esp, 0xc
lea edx, [ebp - 0x8e8]
mov dword [ebp - 4], edx
cmp dword [ebp + 0x14], 0
je 0x4049b9
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4049ef
jmp 0x404bf0
cmp dword [ebp + 0xc], 0
jne 0x4049ff
jmp 0x404bf0
mov byte [ebp - 0xe8], 0
push 0xc7
push 0
lea ecx, [ebp - 0xe7]
push ecx
call fcn.00417ec0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x10], dx
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 0x404a48
cmp dword [ebp - 8], 0
jne 0x404a68
push 0x4264d8
push 0x3ff
mov eax, dword [ebp - 4]
push eax
call fcn.004107b6
add esp, 0xc
jmp 0x404bf0
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.004108c9
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 0x404b14
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 0x404ace
cmp dword [ebp - 8], 0
jne 0x404b09
push 0x426570
push 0x3ff
mov eax, dword [ebp - 4]
push eax
call fcn.004107b6
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 0x404bf0
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
jmp 0x404a99
cmp dword [ebp - 0xc], 5
jge 0x404b26
jmp 0x404bf0
mov eax, dword [ebp - 0xc]
sub eax, 5
mov dword [ebp - 0xc], eax
mov ecx, 5
mov edi, dword [ebp - 0x14]
mov esi, str.AS101
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x404b62
push 0x426638
push 0x3ff
mov eax, dword [ebp - 4]
push eax
call fcn.004107b6
add esp, 0xc
jmp 0x404bf0
mov dword [ebp - 0x8f0], 0
jmp 0x404b7d
mov ecx, dword [ebp - 0x8f0]
add ecx, 1
mov dword [ebp - 0x8f0], ecx
mov edx, dword [ebp - 0x8f0]
cmp edx, dword [ebp - 0xc]
jge 0x404ba5
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x8f0]
movzx ecx, byte [eax + 5]
not ecx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x8f0]
mov byte [edx + 5], cl
jmp 0x404b6e
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0xc]
jl 0x404bd0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
add eax, 5
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00414390
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x404be9
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x14]
add eax, 5
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00414390
add esp, 0xc
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x14], 0
je 0x404c0e
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x8f8], edx
mov eax, dword [ebp - 0x8f8]
push eax
call fcn.004111d3
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004107a7
mov esp, ebp
pop ebp
ret