Function at 0x403010
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x405d09
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40a018]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push edi
mov eax, dword [0x40a018]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
lea ecx, [esp + 0x14]
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 + 0x3c], 0
mov eax, dword [esi + 0x50]
mov ecx, 0xff
cmp eax, ecx
ja 0x4033a4
cmp dword [esi + 0x6c], ecx
ja 0x4033a4
cmp dword [ebp + 0x14], ecx
jbe 0x403091
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 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, 0xfffffc19
jmp 0x4033bb
cmp dword [esi + 0x34], 0x10
jb 0x40309c
mov eax, dword [esi + 0x20]
jmp 0x40309f
lea eax, [esi + 0x20]
movzx ecx, word [esi + 0x38]
push ecx
push eax
mov eax, esi
call fcn.00402300
mov edi, eax
test edi, edi
lea ecx, [esp + 0x14]
je 0x4030cb
mov dword [esp + 0x3c], 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, edi
jmp 0x4033bb
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_]
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0x10], 0x2000205
xor edi, edi
mov ecx, dword [esi + 4]
push 0
mov edx, 4
sub edx, edi
push edx
lea eax, [esp + edi + 0x18]
push eax
push ecx
call ebx
test eax, eax
jle 0x40316c
add edi, eax
cmp edi, 4
jb 0x4030e6
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push 0
push 2
lea edx, [esp + 0x18]
push edx
push eax
call ebx
test eax, eax
jle 0x40316c
cmp eax, 2
jne 0x40316c
mov eax, dword [esp + 0x10]
cmp al, 5
jne 0x40316c
and eax, 0xff00
cmp eax, 0xff00
je 0x40316c
test eax, eax
je 0x40322b
push 1
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::push_back_char_]
mov eax, dword [esi + 0x50]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::push_back_char_]
mov ecx, dword [esi + 0x50]
mov edi, 0x10
cmp dword [esi + 0x54], edi
jb 0x403188
mov eax, dword [esi + 0x40]
jmp 0x40318b
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x14]
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
jmp 0x4033bb
lea eax, [esi + 0x40]
add ecx, eax
push ecx
push eax
lea ecx, [esp + 0x1c]
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 eax, dword [esi + 0x6c]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::push_back_char_]
cmp dword [esi + 0x70], edi
mov ecx, dword [esi + 0x6c]
jb 0x4031b4
mov eax, dword [esi + 0x5c]
jmp 0x4031b7
lea eax, [esi + 0x5c]
add ecx, eax
push ecx
push eax
lea ecx, [esp + 0x1c]
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 + 0x2c], edi
mov eax, dword [esp + 0x18]
jae 0x4031d3
lea eax, [esp + 0x18]
mov edi, dword [esp + 0x28]
push eax
push esi
call fcn.00403ef0
mov edi, eax
test edi, edi
je 0x4031fd
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 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, edi
jmp 0x4033bb
mov edx, dword [esi + 4]
push 0
push 2
lea ecx, [esp + 0x18]
push ecx
push edx
call ebx
test eax, eax
jle 0x40316c
cmp eax, 2
jne 0x40316c
movzx eax, word [esp + 0x10]
cmp eax, 1
jne 0x40316c
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0x3000105
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
call fcn.004041f0
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::push_back_char_]
mov ecx, dword [ebp + 0x14]
mov edi, 0x10
cmp dword [ebp + 0x18], edi
jb 0x403270
mov eax, dword [ebp + 4]
jmp 0x403273
lea eax, [ebp + 4]
add ecx, eax
push ecx
push eax
lea ecx, [esp + 0x1c]
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__]
movzx eax, word [ebp + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
lea edx, [esp + 0x12]
push edx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], ecx
call fcn.004041f0
cmp dword [esp + 0x2c], edi
mov eax, dword [esp + 0x18]
jae 0x4032b4
lea eax, [esp + 0x18]
mov edi, dword [esp + 0x28]
push eax
push esi
call fcn.00403ef0
mov edi, eax
test edi, edi
jne 0x4031e4
mov edx, dword [esi + 4]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push edx
call ebx
test eax, eax
jle 0x40316c
cmp eax, 4
jne 0x40316c
mov eax, dword [esp + 0x10]
mov ecx, eax
and ecx, 0xffffff
cmp ecx, 5
jne 0x40316c
and eax, 0xff000000
cmp eax, 0x1000000
je 0x40334f
cmp eax, 0x3000000
je 0x403325
cmp eax, 0x4000000
jne 0x40316c
mov dword [esp + 0x10], 0x10
jmp 0x403357
mov eax, dword [esi + 4]
push 0
push 1
lea edx, [esp + 0x18]
push edx
push eax
call ebx
test eax, eax
jle 0x40316c
cmp eax, 1
jne 0x40316c
and dword [esp + 0x10], 0xff
jmp 0x403357
mov dword [esp + 0x10], 4
mov ecx, dword [esp + 0x10]
add ecx, 2
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x403378
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov ecx, esi
call fcn.00403f40
mov dword [esp + 0x3c], 0xffffffff
cmp eax, dword [esp + 0x28]
lea ecx, [esp + 0x14]
jne 0x403178
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 0x4033bb
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 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, 0xfffffc1d
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00404f8a
add esp, 0x30
ret 4