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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0xa4], 1
cmp dword [ebp + 8], 0
je 0x51a5a6
cmp dword [ebp + 0xc], 0
jne 0x51a5b0
mov eax, 0xfffe
jmp 0x51a890
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x51a5c4
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
jmp 0x51a890
cmp dword [ebp - 0xa4], 2
jg 0x51a87f
push 2
push 0x80
lea edx, [ebp - 0xa0]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call sub.WSOCK32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x51a87f
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x14], 0
je 0x51a61f
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0xa0]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
call eax
add esp, 0xc
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0xa4], 1
je 0x51a63c
cmp dword [ebp - 0xa4], 2
jne 0x51a862
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 4]
jge 0x51a862
mov edx, dword [ebp - 0xb0]
cmp edx, dword [ebp - 0xc]
jl 0x51a6a5
mov eax, dword [ebp - 0xc]
add eax, 0x80
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xac]
push edx
call fcn.00539f68
add esp, 8
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
jne 0x51a699
mov eax, dword [ebp - 0xac]
push eax
call fcn.00532828
add esp, 4
mov eax, 0xfffb
jmp 0x51a890
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0x1c]
movsx eax, byte [ebp + edx - 0xa0]
cmp eax, 0xa
jne 0x51a81b
mov ecx, dword [ebp - 0xac]
add ecx, dword [ebp - 0xb0]
mov byte [ecx], 0
cmp dword [ebp - 0xb0], 0
jle 0x51a805
cmp dword [ebp - 0xa4], 1
jne 0x51a76a
push 0x20
mov edx, dword [ebp - 0xac]
push edx
call fcn.005350b0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x51a765
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 0x18], edx
push 0x20
mov eax, dword [ebp - 8]
add eax, 1
push eax
call fcn.005350b0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x51a765
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0051a320
add esp, 0x10
mov dword [ebp - 0xa4], 2
jmp 0x51a803
cmp dword [ebp - 0xa4], 2
jne 0x51a803
mov eax, dword [ebp - 0xac]
movsx ecx, byte [eax]
cmp ecx, 0x20
je 0x51a793
mov edx, dword [ebp - 0xac]
movsx eax, byte [edx]
cmp eax, 9
jne 0x51a7b1
mov ecx, dword [ebp - 0xac]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0051a270
add esp, 8
jmp 0x51a803
push 0x3a
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.005350b0
add esp, 8
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x51a803
mov edx, dword [ebp - 0xb8]
mov byte [edx], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xb8]
add ecx, 2
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0051a190
add esp, 0xc
jmp 0x51a80f
mov dword [ebp - 0xa4], 3
mov dword [ebp - 0xb0], 0
jmp 0x51a854
mov edx, dword [ebp - 0x1c]
movsx eax, byte [ebp + edx - 0xa0]
cmp eax, 0xd
jne 0x51a82d
jmp 0x51a854
mov ecx, dword [ebp - 0xac]
add ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x1c]
mov al, byte [ebp + edx - 0xa0]
mov byte [ecx], al
mov ecx, dword [ebp - 0xb0]
add ecx, 1
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x51a626
push 0
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xa0]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call sub.WSOCK32.dll_recv
jmp 0x51a5c4
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.00532828
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret