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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4142df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [0x413cac]
call fcn.00404b78
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4142a6
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 8], 0xa
jge 0x41429c
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x40
call fcn.00402aac
push 0
push 0x40
lea eax, [ebp - 0x54]
push eax
mov eax, dword [0x4188ac]
push eax
call sub.wsock32.dll_recv
mov edi, eax
test edi, edi
jle 0x414294
push edi
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x413cac]
call fcn.00404a78
add esp, 4
mov esi, edi
dec esi
test esi, esi
jl 0x4140e2
inc esi
xor ebx, ebx
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [edx + ebx], cl
inc ebx
inc eax
dec esi
jne 0x4140d5
cmp edi, 0x14
jle 0x41410c
mov eax, dword [ebp - 0x10]
cmp byte [eax + 5], 0x54
je 0x414102
mov eax, dword [ebp - 0x10]
cmp byte [eax + 5], 0x52
jne 0x41410c
mov eax, dword [ebp - 0x10]
cmp byte [eax + 6], 1
jne 0x41410c
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x41407b
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x10]
call fcn.00413f84
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x10]
mov ecx, dword [0x413cac]
call fcn.00404bb4
cmp dword [ebp - 0xc], 0
jne 0x414164
push edi
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x413cac]
call fcn.00404a78
add esp, 4
mov esi, edi
dec esi
test esi, esi
jl 0x41415f
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov al, byte [eax + ebx]
mov edx, dword [ebp - 0x14]
mov byte [edx + ebx], al
inc ebx
dec esi
jne 0x41414f
mov dword [ebp - 0xc], edi
jmp 0x4141a2
mov eax, dword [ebp - 0xc]
add eax, edi
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x413cac]
call fcn.00404a78
add esp, 4
mov esi, edi
dec esi
test esi, esi
jl 0x41419f
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov al, byte [eax + ebx]
mov edx, dword [ebp - 0xc]
add edx, ebx
mov ecx, dword [ebp - 0x14]
mov byte [ecx + edx], al
inc ebx
dec esi
jne 0x41418a
add dword [ebp - 0xc], edi
cmp dword [ebp - 0xc], 6
jle 0x41407b
mov eax, dword [ebp - 0xc]
sub eax, 6
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + 3]
cmp eax, edx
jl 0x41407b
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0x84
jne 0x41429c
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 1]
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + 2]
add eax, edx
cmp eax, 0xff
jne 0x41429c
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 3]
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + 4]
add eax, edx
cmp eax, 0xff
jne 0x41429c
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
movzx esi, byte [eax + 3]
test esi, esi
jle 0x414235
mov ebx, 1
mov eax, dword [ebp - 0x14]
call fcn.004048c4
lea edi, [ebx + 4]
cmp eax, edi
jl 0x414231
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + edi]
add dword [ebp - 0xc], eax
inc ebx
dec esi
jne 0x414218
mov eax, dword [ebp - 0xc]
and eax, 0x800000ff
jns 0x414246
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
call fcn.004048c4
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + 3]
add edx, 5
cmp eax, edx
jl 0x41429c
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 3]
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + eax + 5]
cmp eax, dword [ebp - 0xc]
jne 0x41429c
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 3]
add eax, 5
push eax
mov eax, dword [ebp - 4]
push eax
xor ecx, ecx
mov edx, dword [0x413cac]
mov eax, dword [ebp - 0x14]
call fcn.00404a84
jmp 0x41429c
inc dword [ebp - 8]
jmp 0x41407b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4142b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4142e6
lea eax, [ebp - 0x58]
mov edx, dword [0x413cac]
call fcn.00404b78
lea eax, [ebp - 0x14]
mov edx, dword [0x413cac]
mov ecx, 2
call fcn.00404570
ret