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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10005300
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x10009008]
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 0x10001bdb
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.10003350
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.10003570
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 0x10006244
mov byte [edi], 0
call fcn.100031b0
jmp 0x10001e6b
push pe_nt_image_headers32
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov esi, eax
test esi, esi
je 0x10001c51
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.10003350
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.10003570
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 0x10006244
mov byte [edi], 0
call fcn.100031b0
jmp 0x10001e6b
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 0x10001cf7
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.10003350
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.10003570
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 0x10006244
mov byte [edi], 0
call fcn.100031b0
jmp 0x10001e6b
push 0
mov dword [ebp - 0x140], 0
lea ecx, [ebp - 0x140]
push 0x10006244
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
call fcn.100031b0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x2f4]
test esi, esi
je 0x10001e15
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 0x10001d80
sub eax, edx
lea ecx, [ebp - 0x318]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100031b0
mov ecx, dword [ebp - 0x12c]
cmp ecx, 0x10
jb 0x10001dcf
mov edx, dword [ebp - 0x140]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001dc5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001e0f
push ecx
push edx
call fcn.10004277
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 0x10001d43
mov esi, dword [ebp - 0x2f4]
jmp 0x10001e33
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.10004269
mov esp, ebp
pop ebp
ret