Function at 0x10007f10
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b1f0
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x1007100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1a4], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.10009a10
mov dword [ebx], eax
mov byte [ebp - 4], 3
lea esi, [ebx + 8]
mov dword [ebp - 0x1a4], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
movq qword [esi + 0x30], xmm0
push ecx
mov dword [esi + 0x38], 0
lea ecx, [esi + 0x58]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
movq qword [esi + 0x48], xmm0
call fcn.10008a80
mov byte [ebp - 4], 5
add esi, 0x110
mov dword [ebp - 0x1b0], esi
lea ecx, [esi + 0x68]
mov dword [esi], 0x10057638
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
mov byte [ebp - 4], 6
lea edi, [esi + 4]
push 0
push 0
push edi
mov ecx, esi
mov dword [ebp - 0x1a8], 1
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], 7
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1b4], edi
lea eax, [ecx - 0x68]
mov dword [ecx + esi - 4], eax
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov byte [ebp - 4], 8
mov ecx, edi
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [edi + 0x48], 0
mov byte [edi + 0x3d], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x100aaf14]
mov dword [edi + 0x40], eax
mov eax, dword [0x100aaf18]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x44], eax
mov dword [edi + 0x38], 0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x1a0]
push eax
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100080ab
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea eax, [ebp + 8]
push eax
call fcn.10007df0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0x20]
mov dword [ebx + 0x21d0], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx + 0x21ce], ax
mov eax, 2
mov word [ebx + 0x21cc], ax
mov dword [0x10073ea0], ebx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1000812b
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10008121
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10008121
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10049656
add esp, 8
mov dword [ebp + 0x18], 0
mov eax, ebx
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100490d4
mov esp, ebp
pop ebp
ret 0x1c