Function at 0x10001be0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10006370
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x1000a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2f4], edi
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x2f4], edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x10001c8b
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.10003e80
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_]
mov ecx, eax
call fcn.100040a0
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 0
push 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
push 0x100072cc
mov byte [edi], 0
call fcn.10003ce0
jmp 0x10001f1b
push 0x100
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov esi, eax
test esi, esi
je 0x10001d01
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.gethostname_failed_with_error:
call fcn.10003e80
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_]
mov ecx, eax
call fcn.100040a0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 0
push 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
push 0x100072cc
mov byte [edi], 0
call fcn.10003ce0
jmp 0x10001f1b
lea eax, [ebp - 0x2f4]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x160]
push eax
push 0
lea eax, [ebp - 0x128]
movups xmmword [ebp - 0x160], xmm0
push eax
movups xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x15c], 2
mov dword [ebp - 0x158], 2
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x10001da7
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.10003e80
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_]
mov ecx, eax
call fcn.100040a0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 0
push 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
push 0x100072cc
mov byte [edi], 0
call fcn.10003ce0
jmp 0x10001f1b
push 0
mov dword [ebp - 0x140], 0
lea ecx, [ebp - 0x140]
push 0x100072cc
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
call fcn.10003ce0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x2f4]
test esi, esi
je 0x10001ec5
push 0x16
lea eax, [ebp - 0x28]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_ntop]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x308], 0
lea edx, [eax + 1]
mov dword [ebp - 0x304], 0xf
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001e30
sub eax, edx
lea ecx, [ebp - 0x318]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10003ce0
mov ecx, dword [ebp - 0x12c]
cmp ecx, 0x10
jb 0x10001e7f
mov edx, dword [ebp - 0x140]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001e75
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001ebf
push ecx
push edx
call fcn.1000522f
add esp, 8
movups xmm0, xmmword [ebp - 0x318]
mov esi, dword [esi + 0x1c]
movups xmmword [ebp - 0x328], xmm0
movups xmmword [ebp - 0x140], xmm0
movq xmm0, qword [ebp - 0x308]
movq qword [ebp - 0x2fc], xmm0
movq qword [ebp - 0x130], xmm0
test esi, esi
jne 0x10001df3
mov esi, dword [ebp - 0x2f4]
jmp 0x10001ee3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
movq xmm0, qword [ebp - 0x130]
movq qword [ebp - 0x2fc], xmm0
movups xmm0, xmmword [ebp - 0x140]
movups xmmword [ebp - 0x328], xmm0
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.WS2_32.dll_WSACleanup]
movups xmm0, xmmword [ebp - 0x328]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x2fc]
movq qword [edi + 0x10], xmm0
mov eax, edi
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.10005221
mov esp, ebp
pop ebp
ret