Function at 0x4024c0
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 0x405936
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
mov dword [ebp - 0x2b0], 0
call fcn.00401d30
test al, al
je 0x402522
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.A_blacklisted_process_is_running._Exiting...
push 0x403ef0
call fcn.00403cd0
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_____]
or eax, 0xffffffff
jmp 0x402562
lea eax, [ebp - 0x290]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40257d
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.00403cd0
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, 0x406800
mov ecx, eax
call fcn.00403cd0
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.00404502
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 0x4025c9
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.00403cd0
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, 0x406800
mov ecx, eax
call fcn.00403cd0
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x40255d
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 0x402626
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.00403cd0
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x40255d
mov ax, word [0x406864]
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.004036c0
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.004036c0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00401410
mov dword [ebp - 0x2ac], eax
test eax, eax
jne 0x402782
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 0x403ef0
call fcn.00403cd0
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 0x402747
mov ecx, dword [ebp - 0x3c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40273d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40277c
push ecx
push edx
call fcn.00404655
add esp, 8
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x402f57
mov ecx, dword [ebp - 0x48]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x402f4d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402f4d
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 0x4027cf
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 0x403ef0
call fcn.00403cd0
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 0x402714
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 0x40283d
push edi
mov ecx, eax
call fcn.004041f0
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 0x402865
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 0x4028f8
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 0x4028d3
push edi
mov ecx, eax
call fcn.004041f0
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 0x402920
mov edx, str.Invalid_pointer_for_Y.
push 0x403ef0
call fcn.00403cd0
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 0x402714
mov edx, str.Enter_the_hotkey:
mov byte [ebp - 0x299], 1
call fcn.00403cd0
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.00403f20
push 0x10
call fcn.00404510
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 0x404460
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 0x402f5e
mov byte [ebp - 4], 3
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 0x4029e6
push eax
mov ecx, edi
call fcn.004041f0
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 0x402a4e
push eax
mov ecx, edi
call fcn.004041f0
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 0x402a95
movsx ecx, byte [ebp - 0x2a1]
push ecx
call edi
test ax, ax
jns 0x402a95
cmp byte [ebp - 0x299], 0
sete al
mov byte [ebp - 0x299], al
jmp 0x402a9b
mov al, byte [ebp - 0x299]
test al, al
je 0x402e10
mov edi, dword [ebp - 0x2c4]
push 0
push 2
push 0x4068e0
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x402f00
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x402e10
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 0x402b13
push 0x403ef0
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.00403cd0
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 0x402995
push 0
push 4
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x20]
push esi
call edi
push 0x403ef0
test eax, eax
jne 0x402b34
mov edx, str.Failed_to_read_memory_for_Y.
jmp 0x402afb
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, 0x40693c
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x298]
movss dword [esp], xmm0
call fcn.00403cd0
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.00403cd0
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], 0x4069a0
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 - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], 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, 0x40693c
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x298]
movss dword [esp], xmm0
call fcn.00403cd0
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.00403cd0
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 0x402cf3
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax]
test ecx, ecx
je 0x402cf3
mov eax, dword [ebp - 0xec]
cmp ecx, dword [ebp - 0xc4]
cmovb ecx, dword [ebp - 0xc4]
mov edx, dword [eax]
sub ecx, edx
jmp 0x402d26
test dl, 4
jne 0x402d1a
mov eax, dword [ebp - 0xe0]
mov edi, dword [eax]
test edi, edi
je 0x402d1a
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 0x402d26
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ebp - 0x2d0]
test edx, edx
je 0x402d34
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.00403ba0
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 0x402e34
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x402db0
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402da6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e92
push ecx
push edx
call fcn.00404655
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 - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], 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.004035a0
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.00404010
jmp 0x402995
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.00403cd0
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, 0x406800
mov ecx, eax
call fcn.00403cd0
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 0x402ea2
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402e98
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402e98
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00404655
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 - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], 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.004035a0
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 0x402f38
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.00403cd0
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, 0x406800
mov ecx, eax
call fcn.00403cd0
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 0x402714
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push ecx
push edx
call fcn.00404655
add esp, 8
mov eax, esi
jmp 0x402562
push 6
mov dword [ebp - 0x54], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3