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

Disassembly:
push 0xffffffffffffffff
push 0x405d49
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x40a018]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40a018]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0x68]
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esp + 0x60], 0
cmp dword [ebp + 0x34], 0x10
jb 0x402d4b
mov edi, dword [ebp + 0x20]
jmp 0x402d4e
lea edi, [ebp + 0x20]
mov eax, dword [ebp + 4]
movzx esi, word [ebp + 0x38]
or ebx, 0xffffffff
cmp eax, ebx
je 0x402d66
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp + 4], ebx
mov edx, edi
mov ecx, esi
mov edi, ebp
call fcn.004021f0
test eax, eax
jne 0x402d90
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x402d86
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp + 4], ebx
lea eax, [ebp + 8]
mov esi, ebp
call fcn.00402350
mov esi, eax
test esi, esi
lea ecx, [esp + 0x38]
je 0x402dab
mov dword [esp + 0x60], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
jmp 0x402fe6
push 0x400
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::reserve_unsigned_int_]
push 0xff
mov byte [esp + 0x18], 4
mov byte [esp + 0x19], 1
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esp + 0x1c]
movzx edx, word [ecx + 0x70]
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov esi, dword [eax]
mov edi, dword [eax + 4]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
push edi
push esi
push edx
push eax
push ecx
lea ebx, [esp + 0x30]
lea edi, [esp + 0x28]
lea esi, [esp + 0x4c]
call fcn.004042a0
mov ecx, dword [ebp + 0x50]
mov esi, 0x10
cmp dword [ebp + 0x54], esi
jb 0x402e37
mov eax, dword [ebp + 0x40]
jmp 0x402e3a
lea eax, [ebp + 0x40]
lea edx, [ecx + eax + 1]
push edx
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___char_const__]
mov ebx, dword [esp + 0x1c]
cmp dword [ebx + 0x18], esi
mov ecx, dword [ebx + 0x14]
jb 0x402e5b
mov eax, dword [ebx + 4]
jmp 0x402e5e
lea eax, [ebx + 4]
lea ecx, [eax + ecx + 1]
push ecx
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___char_const__]
cmp dword [esp + 0x50], esi
mov eax, dword [esp + 0x3c]
jae 0x402e7c
lea eax, [esp + 0x3c]
mov edi, dword [esp + 0x4c]
push eax
push ebp
call fcn.00403ef0
mov esi, eax
test esi, esi
je 0x402ea6
lea ecx, [esp + 0x38]
mov dword [esp + 0x60], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
jmp 0x402fe6
mov eax, dword [ebp + 4]
push 0
push 8
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x402ee2
cmp eax, 8
jb 0x402ee2
cmp byte [esp + 0x21], 0x5a
jne 0x402ee2
lea ecx, [esp + 0x38]
mov dword [esp + 0x60], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
jmp 0x402fe6
mov eax, dword [ebp + 4]
cmp eax, 0xffffffff
je 0x402ef8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp + 4], 0xffffffff
cmp dword [ebx + 0x18], 0x10
jb 0x402f03
mov edx, dword [ebx + 4]
jmp 0x402f06
lea edx, [ebx + 4]
mov cx, word [ebx + 0x70]
mov edi, ebp
call fcn.004021f0
mov esi, eax
test esi, esi
jne 0x402e8d
mov eax, dword [ebp + 4]
or edi, 0xffffffff
cmp eax, edi
je 0x402f2f
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp + 4], edi
lea eax, [ebp + 8]
mov esi, ebp
call fcn.00402350
mov esi, eax
test esi, esi
je 0x402f54
lea ecx, [esp + 0x38]
mov dword [esp + 0x60], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
jmp 0x402fe6
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x20], ecx
call fcn.004041f0
cmp dword [ebp + 0x54], 0x10
mov ecx, dword [ebp + 0x50]
jb 0x402f7c
mov eax, dword [ebp + 0x40]
jmp 0x402f7f
lea eax, [ebp + 0x40]
lea ecx, [eax + ecx + 1]
push ecx
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___char_const__]
push ebp
lea eax, [esp + 0x3c]
call fcn.00403ec0
mov esi, eax
test esi, esi
jne 0x402f3f
push eax
mov eax, dword [ebp + 4]
push 8
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x402fd3
cmp eax, 8
jb 0x402fd3
cmp byte [esp + 0x21], 0x5a
jne 0x402fd3
lea ecx, [esp + 0x38]
mov dword [esp + 0x60], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
jmp 0x402fe6
lea ecx, [esp + 0x38]
mov dword [esp + 0x60], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 0xfffffc1e
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00404f8a
add esp, 0x50
ret 8