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

Disassembly:
push 0xffffffffffffffff
push 0x40bb1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov ecx, 0x79f
lea edi, [ebx + 0x4c]
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [ebx + 0x1f8c]
mov ecx, 0x390
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], 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 + 0x440]
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 + 0x18]
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 0x403d84
mov edi, dword [esp + 0x18]
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 + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
push 0x411a58
lea ecx, [esp + 0x18]
push 0x4119a4
push ecx
mov dword [esp + 0x444], 0
call fcn.00402f70
mov edx, dword [esp + 0x24]
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 0x403db6
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 + 0x4c]
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 0x403dde
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 + 0x1f8c]
mov ecx, ebx
push eax
push edx
call fcn.004031b0
mov ecx, dword [ebx + 0x2dc4]
lea edx, [ebx + 0x29b4]
push ecx
push edx
mov ecx, ebx
call fcn.00402ec0
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x28], esi
mov dword [ebx + 0x1f7c], esi
jne 0x403e16
push eax
jmp 0x403e3a
push 0
push 0
push esi
mov ecx, ebx
call fcn.00403740
test eax, eax
je 0x403e39
lea edi, [ebx + 0x2de8]
mov ecx, ebx
push edi
push esi
call fcn.004039a0
test eax, eax
jne 0x403e69
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x403f75
mov al, byte [ecx - 1]
test al, al
je 0x403f6b
cmp al, 0xff
je 0x403f6b
dec al
mov byte [ecx - 1], al
jmp 0x403f75
mov ecx, ebx
call fcn.00403a20
cmp eax, 0x12c
jae 0x403e39
cmp eax, 0xc8
jb 0x403e39
push edi
mov ecx, ebx
mov dword [esp + 0x28], 0
call fcn.00403bb0
mov dword [ebx + 0x2dc8], eax
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0x2dc8]
add esp, 4
inc ecx
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
mov dword [esp + 0x2c], ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
mov eax, dword [ebx + 0x2dc8]
cmp edi, eax
jae 0x403f24
push 0
lea eax, [esp + 0x34]
push 0x400
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x403e39
test eax, eax
je 0x403f24
mov ecx, eax
add edi, eax
mov edx, ecx
mov dword [esp + 0x24], edi
lea esi, [esp + 0x30]
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0xa
and ecx, 3
add ebp, eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x28]
jmp 0x403ebd
mov eax, dword [esp + 0x444]
push esi
mov dword [eax], edi
mov cl, byte [0x412724]
mov byte [ebp], cl
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x403f65
mov al, byte [ecx - 1]
test al, al
je 0x403f5b
cmp al, 0xff
je 0x403f5b
dec al
mov byte [ecx - 1], al
mov eax, dword [esp + 0x2c]
jmp 0x403f77
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x2c]
jmp 0x403f77
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x42c
ret 8