Function at 0x430060
Capabilities:
Access pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
mov dword [rsp + 0x38], 0xc0000001
xor edx, edx
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 8]
call fcn.00430f80
movzx eax, al
test eax, eax
je 0x4303d7
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x60], 0
mov word [rsp + 0x48], 0
lea rax, [rsp + 0x4a]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov qword [rsp + 0x58], 0
xor ecx, ecx
call fcn.0042e5c0
mov rax, qword [0x004c5ec0]
movzx eax, byte [rax + 0x3b]
test eax, eax
je 0x430117
mov rax, qword [0x004c5ec0]
mov eax, dword [rax + 0x30]
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x70], 2
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], 2
lea rcx, [rsp + 0x68]
call fcn.00431050
mov rax, qword [0x004c5ec0]
mov byte [rax + 0x3b], 0
mov rax, qword [0x004c5ec0]
mov byte [rax + 0x3a], 1
lea rdx, [0x004350a0]
lea rcx, [rsp + 0x48]
call sub.ntoskrnl.exe_RtlInitUnicodeString
cmp dword [0x004c6320], 0xa00
jl 0x430153
lea rcx, [rsp + 0x48]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov qword [rsp + 0xa0], rax
jmp 0x43015f
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 8]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x4301b4
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0xa8], eax
jmp 0x4301c3
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0xa8]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x58], 0
je 0x430205
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [rsp + 0x58]
mov dword [rsp + 0xac], eax
jmp 0x430232
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call fcn.0042f2e0
mov dword [rsp + 0xac], eax
mov eax, dword [rsp + 0xac]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x30]
add rax, 0x108
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x43027f
mov rax, qword [rsp + 0x30]
add rax, 0xf8
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
jmp 0x4302a5
mov rax, qword [rsp + 0x88]
add rax, 0x28
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x4303b7
xor edx, edx
mov rax, qword [rsp + 0x88]
mov ecx, dword [rax + 0x24]
call fcn.00412850
mov dword [rsp + 0x98], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0xd0]
add rax, qword [rcx + 8]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 8]
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x98], 1
jne 0x430338
mov dword [rsp + 0x98], 2
cmp qword [rsp + 0x58], 0
je 0x430370
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x98]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [rsp + 0x58]
mov dword [rsp + 0xb0], eax
jmp 0x43039f
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x98]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call fcn.0042f2e0
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0xb0]
mov ecx, dword [rsp + 0x38]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
jmp 0x430291
call sub.ntoskrnl.exe_IoGetCurrentProcess
mov r8b, 1
mov rcx, qword [rsp + 0xd0]
mov rdx, qword [rcx + 8]
mov rcx, rax
call fcn.004135f0
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
add rsp, 0xc0
pop rdi
ret