Function at 0x100019c0
Capabilities:
Access peb ldr_data
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x10029678
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1003b030]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x1004130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1004130c
xor ebp, ebp
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ebp
cmp esi, ebp
jne 0x10001a0d
xor eax, eax
jmp 0x10001a21
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10001a12
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x1c]
call fcn.10001450
mov eax, dword [0x1004130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1004130c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
push eax
lea ebx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.10003390
add esp, 4
mov bl, 2
mov byte [esp + 0x30], bl
mov eax, dword [eax]
push 0
mov edx, eax
lea ecx, [esp + 0x24]
call fcn.10016490
add esp, 4
lea edi, [esp + 0x14]
mov byte [esp + 0x30], 3
call fcn.10001360
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001aa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, 1
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001acc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
push 0x1002cf60
lea ecx, [esp + 0x1c]
push ecx
call fcn.10003da0
mov edx, str.780e3ce5bfc17823bc43168597d38b61
lea ecx, [esp + 0x24]
call fcn.10016670
mov byte [esp + 0x30], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.10003da0
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001b24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x68
push ebx
push esi
mov dword [esp + 0x34], 0
call sub.DNSAPI.dll_DnsQuery_W
test eax, eax
jne 0x10001b60
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10001b60
cmp dword [eax + 0x18], 0x2c21160b
jne 0x10001b59
mov ebp, ebx
push ebx
push eax
call sub.DNSAPI.dll_DnsFree
lea eax, [esi - 0x10]
mov byte [esp + 0x30], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10001b81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001ba9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret