Function at 0x100155c0
Capabilities:
Resolve dns
Set socket configuration

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 0x100417e3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x100530b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x54], xmm0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x48], 0
call fcn.1001f960
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
push ecx
cmovae eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x54]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1001571b
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x10015714
nop dword [eax + eax]
push 0x80
push 0
push 0
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100156a5
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x10015706
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x100156b8
mov dword [ebp - 0x18], edi
lea edx, [ebp - 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp dword [esi + 4], 0x17
jne 0x100156f1
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x1b
push 0x29
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
push edi
lea ecx, [ebx + 0xc]
call fcn.10010600
test al, al
jne 0x1001573c
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10015670
mov esi, dword [ebp - 0x58]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
or edi, 0xffffffff
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x10015777
mov ecx, dword [ebp - 0x34]
inc eax
cmp eax, 0x1000
jb 0x1001576e
test cl, 0x1f
je 0x10015747
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push dword [ebp - 0x58]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x1001571e
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10015754
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub ecx, eax
cmp ecx, 4
jae 0x10015761
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ecx, 0x23
jbe 0x1001576c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, eax
push ecx
call fcn.1003edf4
add esp, 4
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
test ecx, ecx
je 0x100157a1
mov esi, dword [ecx]
lea eax, [ebx + 0x18]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
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.1003ea82
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret