Function at 0x180003a30
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 [0x18000a010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x180033850]
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, [0x18000784c]
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 0x180003a80
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x180003f89
mov rax, qword gs:[0x58]
mov ecx, dword [0x180135628]
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0xd8], r12
mov edx, 4
mov r12, qword [rax + rcx*8]
mov eax, dword [0x180135654]
add r12, rdx
mov qword [rsp + 0xe0], r15
cmp eax, dword [r12]
jle 0x180003b4c
lea rcx, [0x180135654]
call fcn.180005638
mov eax, dword [0x180135654]
cmp eax, 0xffffffff
jne 0x180003b4c
lea rcx, [0x180006410]
mov qword [0x180135658], r13
mov qword [0x180135660], 0xffffffffffffffff
call fcn.180005494
lea rcx, [0x180135654]
call fcn.1800055d8
mov eax, dword [0x180135654]
mov dword [0x180135658], ebx
cmp eax, dword [r12]
jle 0x180003b97
lea rcx, [0x180135654]
call fcn.180005638
cmp dword [0x180135654], 0xffffffff
jne 0x180003b97
lea rcx, [0x180006410]
mov qword [0x180135658], r13
mov qword [0x180135660], 0xffffffffffffffff
call fcn.180005494
lea rcx, [0x180135654]
call fcn.1800055d8
mov eax, dword [0x180135658]
mov r15, r13
mov rcx, qword [0x180135660]
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 0x180003bfd
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.180003630
test eax, eax
jne 0x180003ca2
mov eax, dword [r12]
cmp dword [0x180135654], eax
jle 0x180003c5b
lea rcx, [0x180135654]
call fcn.180005638
cmp dword [0x180135654], 0xffffffff
jne 0x180003c5b
lea rcx, [0x180006410]
mov qword [0x180135658], r13
mov qword [0x180135660], 0xffffffffffffffff
call fcn.180005494
lea rcx, [0x180135654]
call fcn.1800055d8
mov rcx, qword [0x180135660]
mov eax, dword [0x180135658]
mov dword [rbp - 0x15], r13d
mov dword [rbp - 0x19], eax
mov qword [rbp - 0x11], r15
cmp rcx, 0xffffffffffffffff
je 0x180003ca2
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.1800037c0
test eax, eax
jne 0x180003d46
mov eax, dword [r12]
cmp dword [0x180135654], eax
jle 0x180003cff
lea rcx, [0x180135654]
call fcn.180005638
cmp dword [0x180135654], 0xffffffff
jne 0x180003cff
lea rcx, [0x180006410]
mov qword [0x180135658], r13
mov qword [0x180135660], 0xffffffffffffffff
call fcn.180005494
lea rcx, [0x180135654]
call fcn.1800055d8
mov rcx, qword [0x180135660]
mov eax, dword [0x180135658]
mov dword [rbp - 0x15], r13d
mov dword [rbp - 0x19], eax
mov qword [rbp - 0x11], r15
cmp rcx, 0xffffffffffffffff
je 0x180003d46
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 0x180003e36
add rbx, r14
lea rsi, [0x180033850]
nop dword [rax + rax]
mov eax, dword [r12]
cmp dword [0x180135654], eax
jle 0x180003dbb
lea rcx, [0x180135654]
call fcn.180005638
cmp dword [0x180135654], 0xffffffff
jne 0x180003dbb
lea rcx, [0x180006410]
mov qword [0x180135658], r13
mov qword [0x180135660], 0xffffffffffffffff
call fcn.180005494
lea rcx, [0x180135654]
call fcn.1800055d8
mov eax, dword [0x180135658]
mov rcx, qword [0x180135660]
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 0x180003e21
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 0x180003d70
mov esi, dword [rbp - 0x29]
mov r8, r14
mov rdx, r15
mov ecx, esi
call fcn.1800030a0
movzx ebx, word [r14 + 0x14]
movzx edi, r13w
add rbx, 0x28
cmp r13w, word [r14 + 6]
jae 0x180003f5c
add rbx, r14
nop
mov eax, dword [rbx]
test eax, eax
je 0x180003f4a
test dword [rbx + 0x14], 0x2000000
je 0x180003f4a
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 [0x180135654], ecx
jle 0x180003ed9
lea rcx, [0x180135654]
call fcn.180005638
cmp dword [0x180135654], 0xffffffff
jne 0x180003ed9
lea rcx, [0x180006410]
mov qword [0x180135658], r13
mov qword [0x180135660], 0xffffffffffffffff
call fcn.180005494
lea rcx, [0x180135654]
call fcn.1800055d8
mov eax, dword [0x180135658]
mov rcx, qword [0x180135660]
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 0x180003f39
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 0x180003e60
xor edx, edx
lea rcx, [0x180033850]
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.1800050d0
add rsp, 0xa0
pop r14
pop r13
pop rsi
pop rbx
pop rbp
ret