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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43954c
push eax
mov eax, 0x2390
mov dword fs:[0], esp
call fcn.0041baa0
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov ecx, 0x79f
lea edi, [ebx + 0x50]
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [ebx + 0x1f50]
mov ecx, 0x390
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x17]
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov esi, dword [esp + 0x23b0]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x408f48
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], 0
push 0x445e1c
lea ecx, [esp + 0x1c]
push 0x4444a8
push ecx
mov dword [esp + 0x23b4], 0
call fcn.00408060
mov edx, dword [esp + 0x28]
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
add esp, 0xc
test edx, edx
je 0x408f7a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebx + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test edx, edx
rep movsb byte es:[edi], byte [esi]
jne 0x408fa2
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea eax, [ebx + 0x1f50]
mov ecx, ebx
push eax
push edx
call fcn.004082a0
mov ecx, dword [ebx + 0x2d88]
lea edx, [ebx + 0x2978]
push ecx
push edx
mov ecx, ebx
call fcn.00407fb0
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [ebx + 0x1f40], ebp
jne 0x408fd6
push eax
jmp 0x408ffb
push 0
push 0
push ebp
mov ecx, ebx
call fcn.00408830
test eax, eax
je 0x408ffa
lea edi, [ebx + 0x2db0]
push edi
push ebp
call fcn.00408b10
add esp, 8
test eax, eax
jne 0x40902a
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x409133
mov al, byte [ecx - 1]
test al, al
je 0x409129
cmp al, 0xff
je 0x409129
dec al
mov byte [ecx - 1], al
jmp 0x409133
push edi
call fcn.00408b90
add esp, 4
cmp eax, 0x12c
jae 0x408ffa
cmp eax, 0xc8
jb 0x408ffa
push edi
mov ecx, ebx
xor esi, esi
call fcn.00408d20
mov ecx, dword [esp + 0x23b4]
mov dword [ebx + 0x2d8c], eax
test ecx, ecx
je 0x40905e
mov dword [ecx], eax
mov eax, dword [ebx + 0x2d8c]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0x2d8c]
add esp, 4
inc ecx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x10], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
cmp esi, dword [ebx + 0x2d8c]
jae 0x4090e9
push 0
lea ecx, [esp + 0x34]
push 0x236d
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x408ffa
test eax, eax
je 0x4090e9
mov edi, dword [esp + 0x10]
mov ecx, eax
add esi, eax
mov edx, ecx
mov dword [esp + 0x28], esi
lea esi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
add ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x409093
mov ecx, dword [esp + 0x10]
mov al, byte [0x44aa3c]
push ebp
mov byte [ecx], al
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x409123
mov al, byte [ecx - 1]
test al, al
je 0x409119
cmp al, 0xff
je 0x409119
dec al
mov byte [ecx - 1], al
mov eax, dword [esp + 0x2c]
jmp 0x409135
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x2c]
jmp 0x409135
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x23a0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x239c
ret 8