Function at 0x403ea0
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a110
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x320
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a8], edx
mov dword [ebp - 0x2cc], ecx
mov eax, dword [ebx + 8]
or edi, 0xffffffff
mov dword [ebp - 0x2ac], eax
lea eax, [ebp - 0x298]
push eax
push 0x202
mov dword [ebp - 0x2a4], edi
mov dword [ebp - 0x29c], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x403f4e
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.WSAStartup_failed_with_error:
call fcn.00406b50
push esi
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_]
push 0x406d70
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_____]
xor al, al
jmp 0x404b58
mov eax, dword [ebp - 0x2a8]
xorps xmm0, xmm0
mov dword [ebp - 0x108], 0
mov ecx, eax
movlpd qword [ebp - 0xf8], xmm0
movlpd qword [ebp - 0xf0], xmm0
cmp dword [eax + 0x14], 0xf
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 1
mov dword [ebp - 0xfc], 6
jbe 0x403f99
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2cc]
mov eax, edx
cmp dword [edx + 0x14], 0xf
jbe 0x403fa9
mov eax, dword [edx]
lea edx, [ebp - 0x29c]
push edx
lea edx, [ebp - 0x108]
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x403ff8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.getaddrinfo_failed_with_error:
call fcn.00406b50
push esi
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_]
push 0x406d70
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_____]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x404b58
mov esi, dword [ebp - 0x29c]
test esi, esi
je 0x404052
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov dword [ebp - 0x2a4], edi
cmp edi, 0xffffffff
je 0x404073
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40404c
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x404002
push dword [ebp - 0x29c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x40405e
mov esi, dword [ebp - 0x29c]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp edi, 0xffffffff
jne 0x404093
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Unable_to_connect_to_server_
call fcn.00406b50
jmp 0x403fde
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Socket_creation_failed_with_error:
call fcn.00406b50
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, esi
jmp 0x403fd8
push 0xb8
lea eax, [ebp - 0xe8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp - 0x2ac]
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x4040b9
mov eax, dword [esi]
sub esp, 0xc
lea ecx, [ebp - 0xe8]
push eax
call fcn.00406180
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xec], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x8c], 0
jne 0x40414d
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_open_file:
call fcn.00406b50
cmp dword [esi + 0x14], 0xf
mov ecx, dword [esi + 0x10]
jbe 0x40411a
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.004081c0
add esp, 4
mov ecx, eax
push 0x406d70
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 edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov byte [ebp - 0x29d], 0
jmp 0x404b0b
push 2
push 0
push 0
lea ecx, [ebp - 0xe8]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0xe8]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
push 0
push 0
push 0
mov esi, dword [eax + 8]
lea ecx, [ebp - 0xe8]
add esi, dword [eax]
mov dword [ebp - 0x2ac], esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
push esi
call fcn.00408daa
add esp, 4
mov dword [ebp - 0x2c8], eax
lea ecx, [ebp - 0xe8]
push 0
push esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
cmp dword [ebp - 0x8c], 0
je 0x404264
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0x9c]
cmp dword [eax], ecx
jne 0x4041eb
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x88]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xbc]
mov dword [eax], ecx
mov eax, dword [ebp - 0xac]
mov dword [eax], edx
lea ecx, [ebp - 0xd8]
call fcn.00406370
push dword [ebp - 0x8c]
xor ecx, ecx
lea esi, [ebp - 0xd8]
test al, al
cmove esi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov byte [ebp - 0x90], 0
xor edi, edi
mov byte [ebp - 0x9b], 0
test eax, eax
lea ecx, [ebp - 0xd8]
cmove edi, esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x40f9bc]
mov ecx, dword [0x40f9c0]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0xa0], 0
test edi, edi
jne 0x4042c2
jmp 0x4042a9
lea ecx, [ebp - 0xd8]
mov byte [ebp - 0x90], 0
mov byte [ebp - 0x9b], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x40f9bc]
mov ecx, dword [0x40f9c0]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe8]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 0x17
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str.POST__upload_HTTP_1.1_r_n
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
call fcn.004074d0
mov ecx, dword [ebp - 0x2cc]
mov edx, str.Host:
push ecx
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 1
call fcn.00406da0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
mov edi, dword [ecx + 0x14]
mov eax, edi
mov esi, dword [ecx + 0x10]
sub eax, esi
cmp eax, 1
jb 0x404337
lea eax, [esi + 1]
mov edx, ecx
mov dword [ecx + 0x10], eax
cmp edi, 0xf
jbe 0x404328
mov edx, dword [ecx]
mov al, byte [0x40b8cc]
mov byte [edx + esi], al
mov byte [edx + esi + 1], 0
jmp 0x40434d
push 1
push 0x40b8cc
push dword [ebp - 0x2a4]
push 1
call fcn.004079e0
mov ecx, eax
mov dword [ebp - 0x2b4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c4], xmm0
mov dword [ebp - 0x2b0], 0
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x2c4], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x2b4], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov edx, dword [ebp - 0x2a8]
lea ecx, [ebp - 0x314]
push edx
lea edx, [ebp - 0x2c4]
mov byte [ebp - 4], 3
call fcn.00406690
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 4
mov edi, dword [ecx + 0x14]
mov eax, edi
mov esi, dword [ecx + 0x10]
sub eax, esi
cmp eax, 2
jb 0x4043e7
lea eax, [esi + 2]
mov edx, ecx
mov dword [ecx + 0x10], eax
cmp edi, 0xf
jbe 0x4043d6
mov edx, dword [ecx]
mov ax, word [0x40b8c8]
mov word [edx + esi], ax
mov byte [edx + esi + 2], 0
jmp 0x4043fd
push 2
push 0x40b8c8
push dword [ebp - 0x2a4]
push 2
call fcn.004079e0
mov ecx, eax
movups xmm1, xmmword [ecx]
movq xmm0, qword [ecx + 0x10]
movups xmmword [ebp - 0x2e4], xmm1
mov dword [ecx + 0x10], 0
movq qword [ebp - 0x2d4], xmm0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x2e4]
cmp dword [ebp - 0x2d0], 0xf
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2d4]
movd edi, xmm1
push ecx
mov dword [ebp - 0x2a8], esi
cmova edx, edi
sub eax, esi
push edx
cmp ecx, eax
ja 0x40448d
cmp dword [ebp - 0x18], 0xf
lea eax, [esi + ecx]
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0x2c]
cmova esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2a8]
add eax, esi
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x2a8]
add esp, 0xc
mov ecx, dword [ebp - 0x2d4]
add eax, esi
mov byte [eax + ecx], 0
jmp 0x4044a2
push dword [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004079e0
mov edi, dword [ebp - 0x2e4]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2d0]
cmp eax, 0xf
jbe 0x4044dc
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4044d2
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4045ba
push ecx
push edi
call fcn.00408d9c
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x300]
cmp ecx, 0xf
jbe 0x40451a
mov edx, dword [ebp - 0x314]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404510
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4045ba
push ecx
push edx
call fcn.00408d9c
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2b0]
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x300], 0xf
mov byte [ebp - 0x314], 0
cmp ecx, 0xf
jbe 0x40456f
mov edx, dword [ebp - 0x2c4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404565
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4045ba
push ecx
push edx
call fcn.00408d9c
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x31c]
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0xf
mov byte [ebp - 0x2c4], 0
cmp ecx, 0xf
jbe 0x4045ca
mov edx, dword [ebp - 0x330]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4045c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4045c0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00408d9c
add esp, 8
mov edx, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2fc]
call fcn.00406530
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x2e8]
mov eax, edx
mov ecx, dword [ebp - 0x2ec]
sub eax, ecx
cmp eax, 0x10
jb 0x404681
cmp edx, 0xf
lea esi, [ebp - 0x2fc]
lea eax, [ecx + 0x10]
cmova esi, dword [ebp - 0x2fc]
mov dword [ebp - 0x2ec], eax
cmp esi, 0x40b8e8
jae 0x404639
lea eax, [esi + ecx]
cmp eax, str.Content_Length:
jb 0x404639
cmp esi, str.Content_Length:
ja 0x40462f
xor edi, edi
jmp 0x40463e
mov edi, esi
sub edi, str.Content_Length:
jmp 0x40463e
mov edi, 0x10
lea eax, [ecx + 1]
push eax
lea ecx, [esi + 0x10]
push esi
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
push edi
push str.Content_Length:
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [edi + 0x40b8e8]
mov edx, 0x10
lea eax, [esi + edi]
sub edx, edi
push edx
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x2fc]
jmp 0x404699
push 0x10
sub esp, 8
lea ecx, [ebp - 0x2fc]
push dword [ebp - 0x2a4]
push 0x10
call fcn.004083b0
mov dword [ebp - 0x2b4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c4], xmm0
mov dword [ebp - 0x2b0], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2b4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c4]
mov esi, dword [ebp - 0x2b0]
mov eax, esi
mov edx, dword [ebp - 0x2b4]
sub eax, edx
cmp eax, 2
jb 0x404728
cmp esi, 0xf
lea eax, [edx + 2]
mov dword [ebp - 0x2b4], eax
cmova ecx, dword [ebp - 0x2c4]
mov ax, word [0x40b8c8]
mov word [ecx + edx], ax
lea eax, [ebp - 0x2c4]
mov byte [ecx + edx + 2], 0
jmp 0x40473c
push 2
push 0x40b8c8
push dword [ebp - 0x2a4]
push 2
call fcn.004079e0
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
movups xmmword [ebp - 0x2e4], xmm1
mov dword [eax + 0x10], 0
movq qword [ebp - 0x2d4], xmm0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 8
lea edx, [ebp - 0x2e4]
cmp dword [ebp - 0x2d0], 0xf
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2d4]
movd edi, xmm1
push ecx
mov dword [ebp - 0x2a8], esi
cmova edx, edi
sub eax, esi
push edx
cmp ecx, eax
ja 0x4047cc
cmp dword [ebp - 0x18], 0xf
lea eax, [esi + ecx]
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0x2c]
cmova esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2a8]
add eax, esi
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x2d4]
add esp, 0xc
mov ecx, dword [ebp - 0x2a8]
add eax, esi
mov byte [eax + ecx], 0
jmp 0x4047e1
push dword [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004079e0
mov edi, dword [ebp - 0x2e4]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2d0]
cmp eax, 0xf
jbe 0x40481b
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x404811
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4048a0
push ecx
push edi
call fcn.00408d9c
add esp, 8
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2b0]
cmp ecx, 0xf
jbe 0x404855
mov edx, dword [ebp - 0x2c4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40484b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4048a0
push ecx
push edx
call fcn.00408d9c
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2e8]
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0xf
mov byte [ebp - 0x2c4], 0
cmp ecx, 0xf
jbe 0x4048b0
mov edx, dword [ebp - 0x2fc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4048a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4048a6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00408d9c
add esp, 8
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
push 0x28
push str.Content_Type:_application_octet_stream_r_n
cmp eax, 0x28
jb 0x4048e7
cmp edx, 0xf
lea esi, [ebp - 0x2c]
lea eax, [ecx + 0x28]
cmova esi, dword [ebp - 0x2c]
add esi, ecx
mov dword [ebp - 0x1c], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0x28], 0
jmp 0x4048f7
push dword [ebp - 0x2a4]
lea ecx, [ebp - 0x2c]
push 0x28
call fcn.004079e0
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
push 0x15
push str.Connection:_close_r_n_r_n
cmp eax, 0x15
jb 0x40492e
cmp edx, 0xf
lea esi, [ebp - 0x2c]
lea eax, [ecx + 0x15]
cmova esi, dword [ebp - 0x2c]
add esi, ecx
mov dword [ebp - 0x1c], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0x15], 0
jmp 0x40493e
push dword [ebp - 0x2a4]
lea ecx, [ebp - 0x2c]
push 0x15
call fcn.004079e0
push dword [ebp - 0x2ac]
xorps xmm0, xmm0
mov dword [ebp - 0x2b4], 0
push dword [ebp - 0x2c8]
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2b0], 0
movups xmmword [ebp - 0x2c4], xmm0
call fcn.004074d0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x2c4]
cmp dword [ebp - 0x2b0], 0xf
mov edi, dword [ebp - 0x2c4]
mov esi, dword [ebp - 0x1c]
cmova edx, edi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2b4]
sub eax, esi
mov dword [ebp - 0x2ac], esi
push ecx
push edx
cmp ecx, eax
ja 0x4049dd
cmp dword [ebp - 0x18], 0xf
lea eax, [esi + ecx]
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0x2c]
cmova esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2ac]
add eax, esi
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x2b4]
add esp, 0xc
mov ecx, dword [ebp - 0x2ac]
add eax, esi
mov byte [eax + ecx], 0
jmp 0x4049f2
push dword [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004079e0
mov edi, dword [ebp - 0x2c4]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2b0]
cmp eax, 0xf
jbe 0x404a2c
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x404a22
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404ae9
push ecx
push edi
call fcn.00408d9c
add esp, 8
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x2a4]
cmova eax, dword [ebp - 0x2c]
push 0
push dword [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x404aa1
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Send_failed_with_error:
call fcn.00406b50
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, esi
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_]
push 0x406d70
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 dword [ebp - 0x2c8]
call fcn.00408d62
add esp, 4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov byte [ebp - 0x29d], 0
jmp 0x404ac3
push dword [ebp - 0x2c8]
call fcn.00408d62
add esp, 4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov byte [ebp - 0x29d], 1
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x404af9
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404aef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404aef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00408d9c
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov ecx, dword [ebp - 0xe8]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x70]
mov dword [ebp + edx - 0xec], ecx
lea ecx, [ebp - 0xd8]
call fcn.00405dc0
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov al, byte [ebp - 0x29d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408d54
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret