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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41318b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1040
call fcn.0040e4d0
mov eax, dword [0x41a184]
mov dword [ebp - 0x30], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1050], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1050]
movzx ecx, byte [eax + 0x56]
test ecx, ecx
jne 0x405dea
push 0
mov edx, dword [ebp - 0x1050]
movzx eax, word [edx + 0x58]
mov ecx, 0x400
sub ecx, eax
push ecx
mov edx, dword [ebp - 0x1050]
movzx eax, word [edx + 0x58]
mov ecx, dword [ebp - 0x1050]
lea edx, [ecx + eax + 0x5a]
push edx
mov eax, dword [ebp - 0x1050]
mov ecx, dword [eax + 0x468]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x405c00
mov dword [ebp - 0x1048], 0x414e10
push 0x417a18
lea edx, [ebp - 0x1048]
push edx
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [ebp - 0x1050]
mov cx, word [eax + 0x54]
mov word [ebp - 0x1c], cx
mov edx, dword [ebp - 0x1050]
movzx eax, word [edx + 0x58]
add eax, dword [ebp - 0x20]
mov word [ebp - 0x18], ax
push 0x414e2c
mov ecx, dword [ebp - 0x1050]
add ecx, 0x5a
push ecx
call dword [sym.imp.MSVCR71.dll_strstr]
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x405de0
mov edx, dword [ebp - 0x1050]
mov byte [edx + 0x56], 1
push str._r_n_r_n
call sub.MSVCR71.dll_strlen
add esp, 4
movzx eax, ax
mov ecx, dword [ebp - 0x1050]
add ecx, 0x5a
mov edx, dword [ebp - 0x14]
sub edx, ecx
movzx ecx, dx
add ecx, eax
mov edx, dword [ebp - 0x1050]
mov word [edx + 0x58], cx
mov dword [ebp - 0x24], 0
mov word [ebp - 0x28], 0
jmp 0x405c96
mov ax, word [ebp - 0x28]
add ax, 1
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x1050]
movzx edx, word [ecx + 0x58]
movzx eax, word [ebp - 0x28]
cmp eax, edx
jge 0x405d43
movzx ecx, word [ebp - 0x28]
mov edx, dword [ebp - 0x1050]
movsx eax, byte [edx + ecx + 0x5a]
cmp eax, 0x20
jne 0x405d3e
mov word [ebp - 0x2c], 0
mov cl, byte [0x414e39]
mov byte [ebp - 0x40], cl
xor edx, edx
mov dword [ebp - 0x3f], edx
mov dword [ebp - 0x3b], edx
mov dword [ebp - 0x37], edx
mov word [ebp - 0x33], dx
mov byte [ebp - 0x31], dl
movzx eax, word [ebp - 0x2c]
movzx ecx, word [ebp - 0x28]
mov edx, dword [ebp - 0x1050]
mov cl, byte [edx + ecx + 0x5a]
mov byte [ebp + eax - 0x40], cl
mov dx, word [ebp - 0x2c]
add dx, 1
mov word [ebp - 0x2c], dx
mov ax, word [ebp - 0x28]
add ax, 1
mov word [ebp - 0x28], ax
movzx ecx, word [ebp - 0x28]
mov edx, dword [ebp - 0x1050]
movsx eax, byte [edx + ecx + 0x5a]
cmp eax, 0x20
jne 0x405ce1
movzx ecx, word [ebp - 0x2c]
mov byte [ebp + ecx - 0x40], 0
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.MSVCR71.dll_atol]
add esp, 4
mov dword [ebp - 0x24], eax
jmp 0x405d43
jmp 0x405c8a
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x1050]
mov dx, word [ecx + 0x58]
push edx
mov eax, dword [ebp - 0x1050]
add eax, 0x5a
push eax
mov ecx, dword [ebp - 0x1050]
mov ecx, dword [ecx + 0x46c]
mov edx, dword [ebp - 0x1050]
mov eax, dword [edx + 0x46c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 0x1050]
movzx ecx, word [eax + 0x58]
movzx edx, word [ebp - 0x18]
cmp edx, ecx
jle 0x405de0
mov eax, dword [ebp - 0x1050]
movzx ecx, word [eax + 0x54]
movzx edx, word [ebp - 0x1c]
cmp edx, ecx
jne 0x405de0
mov eax, dword [ebp - 0x1050]
movzx ecx, word [eax + 0x58]
movzx edx, word [ebp - 0x18]
sub edx, ecx
push edx
mov eax, dword [ebp - 0x1050]
movzx ecx, word [eax + 0x58]
mov edx, dword [ebp - 0x1050]
lea eax, [edx + ecx + 0x5a]
push eax
mov ecx, dword [ebp - 0x1050]
mov ecx, dword [ecx + 0x46c]
mov edx, dword [ebp - 0x1050]
mov eax, dword [edx + 0x46c]
mov edx, dword [eax]
call dword [edx + 0x10]
mov eax, 1
jmp 0x405e82
push 0
push 0x1000
lea eax, [ebp - 0x1040]
push eax
mov ecx, dword [ebp - 0x1050]
mov edx, dword [ecx + 0x468]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x1044], eax
cmp dword [ebp - 0x1044], 0xffffffff
jne 0x405e35
mov dword [ebp - 0x104c], 0x414e3c
push 0x417a18
lea eax, [ebp - 0x104c]
push eax
call sub.MSVCR71.dll__CxxThrowException
mov cx, word [ebp - 0x1044]
push ecx
lea edx, [ebp - 0x1040]
push edx
mov eax, dword [ebp - 0x1050]
mov ecx, dword [eax + 0x46c]
mov edx, dword [ebp - 0x1050]
mov eax, dword [edx + 0x46c]
mov edx, dword [eax]
call dword [edx + 0x10]
jmp 0x405e76
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x30]
call fcn.0040e449
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8