Function at 0x401a80
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Create thread
Initialize winsock library
Log keystrokes via polling
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4046a6
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x290]
mov dword [ebp - 0x2b0], 0
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401b12
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.WSAStartup_failed:
push eax
call fcn.00403050
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov edx, 0x4052a0
mov ecx, eax
call fcn.00403050
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403652
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x2c4], esi
cmp esi, 0xffffffff
jne 0x401b5e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Error_at_socket__:
push eax
call fcn.00403050
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov edx, 0x4052a0
mov ecx, eax
call fcn.00403050
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x401af2
mov eax, 2
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x64]
push eax
push str.26.198.64.158
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x1e62
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x66], ax
lea eax, [ebp - 0x68]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401bbb
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Unable_to_connect_to_server__n
call fcn.00403050
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x401af2
mov ax, word [0x405304]
lea ecx, [ebp - 0x2dc]
movq xmm0, qword [str.Trove.exe]
push ecx
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x2d0]
push eax
movq qword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x50]
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x2dc], 0x1080c4c
mov dword [ebp - 0x2d8], 4
mov dword [ebp - 0x2d4], 0x28
call fcn.00402c50
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 4], 0
push ecx
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x3c], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x2d0], 0x1080c4c
push ecx
lea ecx, [ebp - 0x44]
movq qword [ebp - 0x44], xmm0
mov dword [ebp - 0x2cc], 4
mov dword [ebp - 0x2c8], 0x2c
call fcn.00402c50
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00401410
mov dword [ebp - 0x2ac], eax
test eax, eax
jne 0x401d17
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Could_not_find_game.
push 0x403270
call fcn.00403050
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
mov esi, 1
mov edx, dword [ebp - 0x44]
test edx, edx
je 0x401cdc
mov ecx, dword [ebp - 0x3c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x401cd2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d11
push ecx
push edx
call fcn.00403690
add esp, 8
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x4024f2
mov ecx, dword [ebp - 0x48]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4024e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4024e8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x2a8], esi
test esi, esi
jne 0x401d64
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Could_not_obtain_handle.
push 0x403270
call fcn.00403050
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
mov esi, 2
jmp 0x401ca9
mov ecx, dword [ebp - 0x4c]
sub esp, 0xc
sub ecx, dword [ebp - 0x50]
mov eax, esp
mov edi, ecx
mov dword [ebp - 0x2a0], eax
sar edi, 2
mov dword [ebp - 0x2b4], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [ebp - 0x2b8], edi
test edi, edi
je 0x401dd2
push edi
mov ecx, eax
call fcn.004034f0
mov eax, dword [ebp - 0x2a0]
push dword [ebp - 0x2b4]
push dword [ebp - 0x50]
mov esi, dword [eax]
push esi
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x2a0]
lea eax, [esi + edi*4]
mov esi, dword [ebp - 0x2a8]
add esp, 0xc
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.004012a0
add esp, 0x10
test eax, eax
jne 0x401dfa
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Invalid_pointer_for_X.
jmp 0x401e8d
mov ecx, dword [ebp - 0x40]
sub esp, 0xc
sub ecx, dword [ebp - 0x44]
mov eax, esp
mov edi, ecx
mov dword [ebp - 0x2a0], eax
sar edi, 2
mov dword [ebp - 0x2bc], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [ebp - 0x2c0], edi
test edi, edi
je 0x401e68
push edi
mov ecx, eax
call fcn.004034f0
mov eax, dword [ebp - 0x2a0]
push dword [ebp - 0x2bc]
push dword [ebp - 0x44]
mov esi, dword [eax]
push esi
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x2a0]
lea eax, [esi + edi*4]
mov esi, dword [ebp - 0x2a8]
add esp, 0xc
mov dword [ecx + 4], eax
mov edi, dword [ebp - 0x2ac]
lea eax, [ebp - 0x1c]
push eax
mov edx, edi
mov ecx, esi
call fcn.004012a0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
add esp, 0x10
test eax, eax
jne 0x401eb5
mov edx, str.Invalid_pointer_for_Y.
push 0x403270
call fcn.00403050
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
mov esi, 3
jmp 0x401ca9
mov edx, str.Enter_the_hotkey:
mov byte [ebp - 0x299], 1
call fcn.00403050
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea edx, [ebp - 0x2a1]
call fcn.004032a0
push 0x10
call fcn.00403660
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [eax], ecx
mov ecx, 1
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], 0x4014c0
mov dword [ebp - 0x2a0], ecx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
push ecx
push 0
push eax
push 0x4035b0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [ebp - 0x58], eax
test eax, eax
je 0x4024f9
mov byte [ebp - 4], 3
nop word [eax + eax]
mov eax, dword [ebp - 0x2b8]
sub esp, 0xc
mov edi, esp
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test eax, eax
je 0x401f81
push eax
mov ecx, edi
call fcn.004034f0
push dword [ebp - 0x2b4]
mov esi, dword [edi]
push dword [ebp - 0x50]
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x2b8]
add esp, 0xc
lea eax, [esi + eax*4]
mov esi, dword [ebp - 0x2a8]
mov dword [edi + 4], eax
mov edx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.004012a0
add esp, 4
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x2c0]
mov edi, esp
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test eax, eax
je 0x401fe9
push eax
mov ecx, edi
call fcn.004034f0
push dword [ebp - 0x2bc]
mov esi, dword [edi]
push dword [ebp - 0x44]
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x2c0]
add esp, 0xc
lea eax, [esi + eax*4]
mov esi, dword [ebp - 0x2a8]
mov dword [edi + 4], eax
mov edx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.004012a0
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x12
call edi
test ax, ax
jns 0x402030
movsx ecx, byte [ebp - 0x2a1]
push ecx
call edi
test ax, ax
jns 0x402030
cmp byte [ebp - 0x299], 0
sete al
mov byte [ebp - 0x299], al
jmp 0x402036
mov al, byte [ebp - 0x299]
test al, al
je 0x4023ab
mov edi, dword [ebp - 0x2c4]
push 0
push 2
push 0x405380
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40249b
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4023ab
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x298]
push 0
push 4
push eax
push dword [ebp - 0x2b0]
push esi
call edi
test eax, eax
jne 0x4020ae
push 0x403270
mov edx, str.Failed_to_read_memory_for_X.
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00403050
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x401f30
push 0
push 4
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x20]
push esi
call edi
push 0x403270
test eax, eax
jne 0x4020cf
mov edx, str.Failed_to_read_memory_for_Y.
jmp 0x402096
movss xmm0, dword [ebp - 0x294]
sub esp, 8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4053dc
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x298]
movss dword [esp], xmm0
call fcn.00403050
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___float_]
mov edx, str.__Y:
mov ecx, eax
call fcn.00403050
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___float_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x98
lea eax, [ebp - 0x100]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x100], 0x405440
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
mov byte [ebp - 4], 4
lea eax, [ebp - 0xfc]
mov edi, dword [ebp - 0x2a0]
lea ecx, [ebp - 0x100]
push 0
push 0
or edi, 2
push eax
mov dword [ebp - 0x2b0], edi
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x100], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x104], eax
lea ecx, [ebp - 0xfc]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0xfc], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x100]
movss xmm0, dword [ebp - 0x294]
sub esp, 8
mov edx, 0x4053dc
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x298]
movss dword [esp], xmm0
call fcn.00403050
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___float_]
mov edx, str.__Y:
mov ecx, eax
call fcn.00403050
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___float_]
mov byte [ebp - 4], 7
xorps xmm0, xmm0
mov edx, dword [ebp - 0xc0]
or edi, 8
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x2a0], edi
mov dword [ebp - 0x2b0], edi
movq qword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c8], 0
mov eax, edx
and al, 0x22
cmp al, 2
je 0x40228e
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax]
test ecx, ecx
je 0x40228e
mov eax, dword [ebp - 0xec]
cmp ecx, dword [ebp - 0xc4]
cmovb ecx, dword [ebp - 0xc4]
mov edx, dword [eax]
sub ecx, edx
jmp 0x4022c1
test dl, 4
jne 0x4022b5
mov eax, dword [ebp - 0xe0]
mov edi, dword [eax]
test edi, edi
je 0x4022b5
mov eax, dword [ebp - 0xf0]
mov edx, dword [eax]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax]
add ecx, edi
sub ecx, edx
jmp 0x4022c1
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ebp - 0x2d0]
test edx, edx
je 0x4022cf
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.00402f20
mov ecx, dword [ebp - 0x2a0]
and ecx, 0xfffffff7
mov dword [ebp - 4], 6
or ecx, 4
mov dword [ebp - 0x2a0], ecx
mov edi, dword [ebp - 0x2c4]
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 8
cmp dword [ebp - 0x24], 0xf
push 0
push dword [ebp - 0x28]
cmova eax, dword [ebp - 0x38]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4023cf
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x40234b
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402341
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40242d
push ecx
push edx
call fcn.00403690
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x100], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x104], eax
lea ecx, [ebp - 0xfc]
call fcn.00402b40
lea ecx, [ebp - 0xf8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x168
mov dword [ebp - 0x2d4], 0
call fcn.00403390
jmp 0x401f30
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.send_failed:
push eax
call fcn.00403050
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov edx, 0x4052a0
mov ecx, eax
call fcn.00403050
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x40243d
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402433
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402433
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00403690
add esp, 8
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x100], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x104], eax
lea ecx, [ebp - 0xfc]
call fcn.00402b40
lea ecx, [ebp - 0xf8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
jmp 0x4024d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.send_failed:
push eax
call fcn.00403050
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov edx, 0x4052a0
mov ecx, eax
call fcn.00403050
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [ebp - 0x54], 0
mov esi, 1
je 0x401ca9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push ecx
push edx
call fcn.00403690
add esp, 8
mov eax, esi
jmp 0x401af7
push 6
mov dword [ebp - 0x54], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3