Function at 0x1800043b0
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 [0x18000a008]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x18004d640]
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, [0x18000786c]
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 0x180004400
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x180004909
mov rax, qword gs:[0x58]
mov ecx, dword [0x18015d618]
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0xd8], r12
mov edx, 4
mov r12, qword [rax + rcx*8]
mov eax, dword [0x18015d644]
add r12, rdx
mov qword [rsp + 0xe0], r15
cmp eax, dword [r12]
jle 0x1800044cc
lea rcx, [0x18015d644]
call fcn.180005f98
mov eax, dword [0x18015d644]
cmp eax, 0xffffffff
jne 0x1800044cc
lea rcx, [0x180006d90]
mov qword [0x18015d648], r13
mov qword [0x18015d650], 0xffffffffffffffff
call fcn.180005df4
lea rcx, [0x18015d644]
call fcn.180005f38
mov eax, dword [0x18015d644]
mov dword [0x18015d648], ebx
cmp eax, dword [r12]
jle 0x180004517
lea rcx, [0x18015d644]
call fcn.180005f98
cmp dword [0x18015d644], 0xffffffff
jne 0x180004517
lea rcx, [0x180006d90]
mov qword [0x18015d648], r13
mov qword [0x18015d650], 0xffffffffffffffff
call fcn.180005df4
lea rcx, [0x18015d644]
call fcn.180005f38
mov eax, dword [0x18015d648]
mov r15, r13
mov rcx, qword [0x18015d650]
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 0x18000457d
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.180003fb0
test eax, eax
jne 0x180004622
mov eax, dword [r12]
cmp dword [0x18015d644], eax
jle 0x1800045db
lea rcx, [0x18015d644]
call fcn.180005f98
cmp dword [0x18015d644], 0xffffffff
jne 0x1800045db
lea rcx, [0x180006d90]
mov qword [0x18015d648], r13
mov qword [0x18015d650], 0xffffffffffffffff
call fcn.180005df4
lea rcx, [0x18015d644]
call fcn.180005f38
mov rcx, qword [0x18015d650]
mov eax, dword [0x18015d648]
mov dword [rbp - 0x15], r13d
mov dword [rbp - 0x19], eax
mov qword [rbp - 0x11], r15
cmp rcx, 0xffffffffffffffff
je 0x180004622
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.180004140
test eax, eax
jne 0x1800046c6
mov eax, dword [r12]
cmp dword [0x18015d644], eax
jle 0x18000467f
lea rcx, [0x18015d644]
call fcn.180005f98
cmp dword [0x18015d644], 0xffffffff
jne 0x18000467f
lea rcx, [0x180006d90]
mov qword [0x18015d648], r13
mov qword [0x18015d650], 0xffffffffffffffff
call fcn.180005df4
lea rcx, [0x18015d644]
call fcn.180005f38
mov rcx, qword [0x18015d650]
mov eax, dword [0x18015d648]
mov dword [rbp - 0x15], r13d
mov dword [rbp - 0x19], eax
mov qword [rbp - 0x11], r15
cmp rcx, 0xffffffffffffffff
je 0x1800046c6
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 0x1800047b6
add rbx, r14
lea rsi, [0x18004d640]
nop dword [rax + rax]
mov eax, dword [r12]
cmp dword [0x18015d644], eax
jle 0x18000473b
lea rcx, [0x18015d644]
call fcn.180005f98
cmp dword [0x18015d644], 0xffffffff
jne 0x18000473b
lea rcx, [0x180006d90]
mov qword [0x18015d648], r13
mov qword [0x18015d650], 0xffffffffffffffff
call fcn.180005df4
lea rcx, [0x18015d644]
call fcn.180005f38
mov eax, dword [0x18015d648]
mov rcx, qword [0x18015d650]
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 0x1800047a1
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 0x1800046f0
mov esi, dword [rbp - 0x29]
mov r8, r14
mov rdx, r15
mov ecx, esi
call fcn.180003a20
movzx ebx, word [r14 + 0x14]
movzx edi, r13w
add rbx, 0x28
cmp r13w, word [r14 + 6]
jae 0x1800048dc
add rbx, r14
nop
mov eax, dword [rbx]
test eax, eax
je 0x1800048ca
test dword [rbx + 0x14], 0x2000000
je 0x1800048ca
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 [0x18015d644], ecx
jle 0x180004859
lea rcx, [0x18015d644]
call fcn.180005f98
cmp dword [0x18015d644], 0xffffffff
jne 0x180004859
lea rcx, [0x180006d90]
mov qword [0x18015d648], r13
mov qword [0x18015d650], 0xffffffffffffffff
call fcn.180005df4
lea rcx, [0x18015d644]
call fcn.180005f38
mov eax, dword [0x18015d648]
mov rcx, qword [0x18015d650]
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 0x1800048b9
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 0x1800047e0
xor edx, edx
lea rcx, [0x18004d640]
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.180005a30
add rsp, 0xa0
pop r14
pop r13
pop rsi
pop rbx
pop rbp
ret