Function at 0x1401c4480
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
test byte [0x1402bcba0], 1
jne 0x1401c46f4
lock bts qword [0x1402bcba0], 0x1f
jae 0x1401c44c4
test byte [0x1402bcba0], 1
jne 0x1401c46f4
xor edx, edx
lea rcx, [0x1402bcba0]
call sym.SystemInformer.exe_PhfWaitForEvent
movzx eax, byte [0x1402c01a5]
add rsp, 0x38
ret
mov qword ss:[rsp + 0x40], rbx
lea rcx, str.dnsapi.dll
xor edx, edx
mov qword [rsp + 0x30], rdi
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x1401c453d
xor edx, edx
lea rcx, str.dnsapi.dll
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x1401c453d
cmp dword [0x1402b5e88], 0x3e
jae 0x1401c4531
xor r8d, r8d
lea rcx, str.dnsapi.dll
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x1401c453d
mov rdi, qword [0x1402c3e88]
jmp 0x1401c46b4
mov qword [rsp + 0x48], rbp
mov ebp, 0x5a4d
mov qword [rsp + 0x50], rsi
cmp word [rbx], bp
jne 0x1401c4599
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401c4599
cmp dword [rcx + rbx], 0x4550
jne 0x1401c4599
lea rdx, [rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401c4599
cmp dword [rdx + 4], 0
je 0x1401c4599
xor edi, edi
lea r8, [rbx + rax]
lea r9, str.DnsQuery_W
mov word [rsp + 0x20], di
mov rcx, rbx
call fcn.140174840
jmp 0x1401c459d
xor edi, edi
mov eax, edi
mov qword [0x1402c3ea0], rax
cmp word [rbx], bp
jne 0x1401c45ef
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401c45ef
cmp dword [rcx + rbx], 0x4550
jne 0x1401c45ef
lea rdx, [rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401c45ef
cmp dword [rdx + 4], 0
je 0x1401c45ef
lea r8, [rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.DnsExtractRecordsFromMessage_W
mov rcx, rbx
call fcn.140174840
jmp 0x1401c45f2
mov rax, rdi
mov qword [0x1402c3e98], rax
cmp word [rbx], bp
jne 0x1401c4647
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401c4647
cmp dword [rcx + rbx], 0x4550
jne 0x1401c4647
lea rdx, [rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401c4647
cmp dword [rdx + 4], 0
je 0x1401c4647
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.DnsWriteQuestionToBuffer_W
mov rcx, rbx
call fcn.140174840
jmp 0x1401c464a
mov rax, rdi
cmp word [rbx], bp
mov rbp, qword [rsp + 0x48]
mov qword [0x1402c3e90], rax
jne 0x1401c46a8
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401c46a8
cmp dword [rcx + rbx], 0x4550
jne 0x1401c46a8
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401c46a8
cmp dword [rdx + 4], 0
je 0x1401c46a8
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.DnsFree
mov rcx, rbx
call fcn.140174840
mov rdi, rax
mov rsi, qword [rsp + 0x50]
mov qword [0x1402c3e88], rdi
cmp qword [0x1402c3ea0], 0
mov rbx, qword [rsp + 0x40]
je 0x1401c46e3
cmp qword [0x1402c3e98], 0
je 0x1401c46e3
cmp qword [0x1402c3e90], 0
je 0x1401c46e3
test rdi, rdi
je 0x1401c46e3
mov byte [0x1402c01a5], 1
lea rcx, [0x1402bcba0]
call sym.SystemInformer.exe_PhfSetEvent
mov rdi, qword [rsp + 0x30]
movzx eax, byte [0x1402c01a5]
add rsp, 0x38
ret