Function at 0x100fafa0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x100fb3ac
cmp dword [ebp + 0xc], 0
je 0x100fb3ac
test edi, edi
je 0x100fb3ac
push edi
call fcn.100ff690
push dword [ebp + 0xc]
call fcn.10143c73
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x100fb02e
cmp dword [0x101cc834], 1
jl 0x100fb00f
push str.out_of_memory
push str.resolve_hosts
push 0x32b
push 1
push dword [esi + 0x250]
call fcn.100fddd0
add esp, 0x14
call fcn.1013e52f
push edi
or esi, 0xffffffff
mov dword [eax], 0xc
call fcn.100ff5e0
add esp, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, eax
xor esi, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100fb035
sub ecx, edx
je 0x100fb399
push 0x2c
push dword [ebp - 4]
call fcn.10135370
add esp, 8
test eax, eax
je 0x100fb066
inc eax
inc esi
push 0x2c
push eax
call fcn.10135370
add esp, 8
test eax, eax
jne 0x100fb055
add esi, 1
je 0x100fb399
push esi
push edi
call fcn.100ff2f0
add esp, 8
test eax, eax
je 0x100fb0b8
cmp dword [0x101cc834], 1
jl 0x100fb0a8
push str.out_of_memory
push str.resolve_hosts
push 0x33a
mov eax, dword [ebp + 8]
push 1
push dword [eax + 0x250]
call fcn.100fddd0
add esp, 0x14
call fcn.1013e52f
mov dword [eax], 0xc
jmp 0x100fb2db
lea eax, [ebp - 0x10]
push eax
push 0x10169084
push dword [ebp - 4]
call fcn.10143c31
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100fb2d1
push 0x3a
push esi
call fcn.101354a0
add esp, 8
test eax, eax
je 0x100fb333
push 0
lea ecx, [ebp - 0x18]
mov byte [eax], 0
inc eax
push ecx
push eax
mov dword [ebp - 8], eax
call fcn.1013e3e4
mov edx, eax
add esp, 0xc
mov eax, dword [ebp - 8]
cmp byte [eax], 0
je 0x100fb318
mov ecx, dword [ebp - 0x18]
cmp byte [ecx], 0
jne 0x100fb318
test edx, edx
je 0x100fb318
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movups xmm0, xmmword [0x1016c470]
movups xmmword [ebp - 0x38], xmm0
movsx eax, byte [esi]
push eax
call fcn.101423a0
add esp, 4
test eax, eax
je 0x100fb167
nop dword [eax]
cmp esi, dword [ebp - 0x10]
je 0x100fb167
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.101423a0
add esp, 4
test eax, eax
jne 0x100fb150
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 8]
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100fb237
cmp dword [ebp - 0x38], 0x400
jne 0x100fb1b8
cmp eax, 0x2726
jne 0x100fb1b8
lea eax, [ebp - 0xc]
mov dword [ebp - 0x38], 0
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 8]
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100fb237
cmp eax, 8
je 0x100fb1d1
cmp eax, 0x2af9
mov esi, 2
mov eax, 0x16
cmovne esi, eax
jmp 0x100fb1d6
mov esi, 0xc
call fcn.1013e52f
mov dword [eax], esi
cmp dword [0x101cc834], 1
jl 0x100fb2b4
push 0
push 0x400
push 0x101da880
push 0x400
push dword [ebp - 0x14]
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp + 8]
push 0x101da880
push str.Win32_message:__s_n
push str.resolve_hosts
push 0x3b1
push 1
push dword [eax + 0x250]
call fcn.100fddd0
add esp, 0x18
jmp 0x100fb2b4
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x100fb2ad
nop
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
jne 0x100fb259
push edi
call fcn.100ff620
add esp, 4
test eax, eax
jne 0x100fb2f7
mov ecx, dword [esi + 4]
mov eax, ecx
sub eax, 2
je 0x100fb299
sub eax, 0x15
je 0x100fb299
cmp dword [0x101cc834], 2
jl 0x100fb2a3
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push str.skipping_unknown_address_family__x_for__s
push str.resolve_hosts
push 0x3d2
push 2
push dword [eax + 0x250]
call fcn.100fddd0
add esp, 0x1c
jmp 0x100fb2a3
push esi
push edi
call fcn.100ff3d0
add esp, 8
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100fb240
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
lea eax, [ebp - 0x10]
push eax
push 0x10169084
push 0
call fcn.10143c31
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100fb0d6
cmp dword [edi + 4], 0
jne 0x100fb374
or esi, 0xffffffff
push edi
call fcn.100ff5e0
push dword [ebp - 4]
call fcn.1013a619
add esp, 8
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x101cc834], 1
jl 0x100fb0a8
push str.out_of_memory
push str.resolve_hosts
push 0x3c1
jmp 0x100fb095
cmp dword [0x101cc834], 1
jl 0x100fb35f
push esi
push str.invalid_port_in__s
push str.resolve_hosts
push 0x34f
jmp 0x100fb34c
cmp dword [0x101cc834], 1
jl 0x100fb35f
push esi
push str.no_port_in__s
push str.resolve_hosts
push 0x346
mov eax, dword [ebp + 8]
push 1
push dword [eax + 0x250]
call fcn.100fddd0
add esp, 0x18
call fcn.1013e52f
mov esi, 0xfffffff8
mov dword [eax], 0x16
jmp 0x100fb2de
push dword [ebp - 4]
call fcn.1013a619
add esp, 4
cmp dword [0x101d8620], 0
jne 0x100fb391
push edi
call fcn.100ff770
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call fcn.1013a619
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xfffffff8
pop esi
mov esp, ebp
pop ebp
ret