Function at 0x180003a10
Capabilities:
Access pe header

Disassembly:
push rbp
push rbx
push rsi
push r13
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x180009010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x180032c40]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ecx, 0x64
mov r14, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r13d, r13d
mov dword [rbp - 0x21], r13d
nop
xor edx, edx
lea rcx, [0x180006708]
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
lea rdx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, 0x14
mov dword [rbp - 0x29], eax
mov esi, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [rbp - 0x21]
test ebx, ebx
je 0x180003a60
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x180003f69
mov rax, qword gs:[0x58]
mov ecx, dword [0x180179418]
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0xd8], r12
mov edx, 4
mov r12, qword [rax + rcx*8]
mov eax, dword [0x180179444]
add r12, rdx
mov qword [rsp + 0xe0], r15
cmp eax, dword [r12]
jle 0x180003b2c
lea rcx, [0x180179444]
call fcn.180005188
mov eax, dword [0x180179444]
cmp eax, 0xffffffff
jne 0x180003b2c
lea rcx, [0x180005f40]
mov qword [0x180179448], r13
mov qword [0x180179450], 0xffffffffffffffff
call fcn.180004fe4
lea rcx, [0x180179444]
call fcn.180005128
mov eax, dword [0x180179444]
mov dword [0x180179448], ebx
cmp eax, dword [r12]
jle 0x180003b77
lea rcx, [0x180179444]
call fcn.180005188
cmp dword [0x180179444], 0xffffffff
jne 0x180003b77
lea rcx, [0x180005f40]
mov qword [0x180179448], r13
mov qword [0x180179450], 0xffffffffffffffff
call fcn.180004fe4
lea rcx, [0x180179444]
call fcn.180005128
mov eax, dword [0x180179448]
mov r15, r13
mov rcx, qword [0x180179450]
mov dword [rbp + 7], eax
lea rax, [rbp - 0x21]
mov qword [rbp + 0xf], rax
mov eax, dword [r14 + 0x50]
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x21], r13
mov dword [rbp + 0xb], r13d
mov qword [rbp + 0x1f], 0x40
cmp rcx, 0xffffffffffffffff
je 0x180003bdd
mov qword [rsp + 0x38], r13
lea r8, [rbp + 7]
mov qword [rsp + 0x30], r13
mov r9d, 0x20
mov dword [rsp + 0x28], r13d
mov edx, 0x3009d220
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r15, qword [rbp - 0x21]
mov r8, r14
mov rcx, r15
call fcn.180003610
test eax, eax
jne 0x180003c82
mov eax, dword [r12]
cmp dword [0x180179444], eax
jle 0x180003c3b
lea rcx, [0x180179444]
call fcn.180005188
cmp dword [0x180179444], 0xffffffff
jne 0x180003c3b
lea rcx, [0x180005f40]
mov qword [0x180179448], r13
mov qword [0x180179450], 0xffffffffffffffff
call fcn.180004fe4
lea rcx, [0x180179444]
call fcn.180005128
mov rcx, qword [0x180179450]
mov eax, dword [0x180179448]
mov dword [rbp - 0x15], r13d
mov dword [rbp - 0x19], eax
mov qword [rbp - 0x11], r15
cmp rcx, 0xffffffffffffffff
je 0x180003c82
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x19]
mov qword [rsp + 0x30], r13
mov r9d, 0x10
mov dword [rsp + 0x28], r13d
mov edx, 0x3009d4e0
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r8, r14
mov ecx, esi
call fcn.1800037a0
test eax, eax
jne 0x180003d26
mov eax, dword [r12]
cmp dword [0x180179444], eax
jle 0x180003cdf
lea rcx, [0x180179444]
call fcn.180005188
cmp dword [0x180179444], 0xffffffff
jne 0x180003cdf
lea rcx, [0x180005f40]
mov qword [0x180179448], r13
mov qword [0x180179450], 0xffffffffffffffff
call fcn.180004fe4
lea rcx, [0x180179444]
call fcn.180005128
mov rcx, qword [0x180179450]
mov eax, dword [0x180179448]
mov dword [rbp - 0x15], r13d
mov dword [rbp - 0x19], eax
mov qword [rbp - 0x11], r15
cmp rcx, 0xffffffffffffffff
je 0x180003d26
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x19]
mov qword [rsp + 0x30], r13
mov r9d, 0x10
mov dword [rsp + 0x28], r13d
mov edx, 0x3009d4e0
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movzx ebx, word [r14 + 0x14]
movzx edi, r13w
add rbx, 0x2c
cmp r13w, word [r14 + 6]
jae 0x180003e16
add rbx, r14
lea rsi, [0x180032c40]
nop dword [rax + rax]
mov eax, dword [r12]
cmp dword [0x180179444], eax
jle 0x180003d9b
lea rcx, [0x180179444]
call fcn.180005188
cmp dword [0x180179444], 0xffffffff
jne 0x180003d9b
lea rcx, [0x180005f40]
mov qword [0x180179448], r13
mov qword [0x180179450], 0xffffffffffffffff
call fcn.180004fe4
lea rcx, [0x180179444]
call fcn.180005128
mov eax, dword [0x180179448]
mov rcx, qword [0x180179450]
mov dword [rbp - 1], eax
mov eax, dword [rbx - 8]
add rax, r15
mov word [rbp + 4], r13w
mov qword [rbp - 0x11], rax
mov eax, dword [rbx]
add rax, rsi
mov byte [rbp + 6], r13b
mov qword [rbp - 0x19], rax
mov eax, dword [rbx - 4]
mov qword [rbp - 9], rax
mov byte [rbp + 3], 1
cmp rcx, 0xffffffffffffffff
je 0x180003e01
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x19]
mov qword [rsp + 0x30], r13
mov r9d, 0x20
mov dword [rsp + 0x28], r13d
mov edx, 0x3009ce20
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
inc di
add rbx, 0x28
cmp di, word [r14 + 6]
jb 0x180003d50
mov esi, dword [rbp - 0x29]
mov r8, r14
mov rdx, r15
mov ecx, esi
call fcn.180003080
movzx ebx, word [r14 + 0x14]
movzx edi, r13w
add rbx, 0x28
cmp r13w, word [r14 + 6]
jae 0x180003f3c
add rbx, r14
nop
mov eax, dword [rbx]
test eax, eax
je 0x180003f2a
test dword [rbx + 0x14], 0x2000000
je 0x180003f2a
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [r12]
mov rsi, rax
cmp dword [0x180179444], ecx
jle 0x180003eb9
lea rcx, [0x180179444]
call fcn.180005188
cmp dword [0x180179444], 0xffffffff
jne 0x180003eb9
lea rcx, [0x180005f40]
mov qword [0x180179448], r13
mov qword [0x180179450], 0xffffffffffffffff
call fcn.180004fe4
lea rcx, [0x180179444]
call fcn.180005128
mov eax, dword [0x180179448]
mov rcx, qword [0x180179450]
mov dword [rbp - 1], eax
mov eax, dword [rbx - 4]
add rax, r15
mov word [rbp + 4], r13w
mov qword [rbp - 0x11], rax
mov eax, dword [rbx]
mov qword [rbp - 9], rax
mov byte [rbp + 6], r13b
mov qword [rbp - 0x19], rsi
mov byte [rbp + 3], 1
cmp rcx, 0xffffffffffffffff
je 0x180003f19
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x19]
mov qword [rsp + 0x30], r13
mov r9d, 0x20
mov dword [rsp + 0x28], r13d
mov edx, 0x3009ce20
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
inc di
add rbx, 0x28
cmp di, word [r14 + 6]
jb 0x180003e40
xor edx, edx
lea rcx, [0x180032c40]
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r15, qword [rsp + 0xe0]
mov r12, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0xd0]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180004c20
add rsp, 0xa0
pop r14
pop r13
pop rsi
pop rbx
pop rbp
ret