Function at 0x140001c00
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0xf8]
sub rsp, 0x1f8
mov rax, qword [0x14001b010]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov r12, r8
mov r13, rdx
mov r14, rcx
test rdx, rdx
je 0x140001fd3
xorps xmm0, xmm0
lea rcx, [rbp - 0x30]
xor edx, edx
mov r8d, 0x108
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
mov qword [rsp + 0x68], 0x33
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x70]
mov qword [rbp - 0x80], rax
lea r8, [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x30], rax
lea r9d, [rbx + 0x28]
mov dword [rsp + 0x28], ebx
mov edx, 0x80862007
mov rcx, r14
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x78], 0x40
mov dword [rsp + 0x60], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140001fd3
mov eax, 0x5a4d
cmp word [rbp - 0x70], ax
jne 0x140001fd3
movsxd rax, dword [rbp - 0x34]
add rax, r13
je 0x140001fd3
mov qword [rsp + 0x78], rax
lea r9d, [rbx + 0x28]
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x30]
mov qword [rbp - 0x80], rax
lea r8, [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x30], rax
mov edx, 0x80862007
mov dword [rsp + 0x28], ebx
mov rcx, r14
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x68], 0x33
mov qword [rbp - 0x78], 0x108
mov dword [rsp + 0x60], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140001fd3
cmp dword [rbp - 0x30], 0x4550
jne 0x140001fd3
mov edi, dword [rbp + 0x58]
test edi, edi
je 0x140001fd3
mov eax, dword [rbp + 0x5c]
test eax, eax
je 0x140001fd3
mov qword [rsp + 0x248], rsi
lea r9d, [rbx + 4]
mov qword [rsp + 0x1f0], r15
mov r8d, 0x3000
mov edx, eax
mov qword [rsp + 0x58], rax
xor ecx, ecx
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
mov qword [rsp + 0x50], rdi
lea rax, [rdi + r13]
test rsi, rsi
je 0x140001eef
test rax, rax
je 0x140001eef
test r15, r15
je 0x140001eef
mov qword [rsp + 0x38], rbx
lea r9d, [rbx + 0x28]
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x30], rax
mov edx, 0x80862007
mov dword [rsp + 0x28], ebx
mov rcx, r14
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x68], 0x33
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], r15
mov dword [rsp + 0x60], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140001eef
mov ecx, dword [rsi + 0x24]
mov r15, rsi
mov eax, dword [rsi + 0x20]
sub r15, rdi
add rcx, r15
add rax, r15
mov qword [rsp + 0x40], rcx
mov edi, ebx
mov ecx, dword [rsi + 0x1c]
add rcx, r15
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], rcx
cmp dword [rsi + 0x18], ebx
jbe 0x140001eef
nop dword [rax + rax]
mov r14d, edi
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], 0xf
mov edx, dword [rax + r14*4]
add rdx, r15
inc r8
cmp byte [rdx + r8], bl
jne 0x140001e63
lea rcx, [rsp + 0x68]
call fcn.140002930
cmp qword [r12 + 0x18], 0x10
mov rdx, r12
jb 0x140001e85
mov rdx, qword [r12]
cmp qword [rbp - 0x80], 0x10
lea rcx, [rsp + 0x68]
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140001f32
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140001edf
mov rcx, qword [rsp + 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001eda
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001fbf
call fcn.14000b334
mov rax, qword [rsp + 0x60]
inc edi
cmp edi, dword [rsi + 0x18]
jb 0x140001e40
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rsi, qword [rsp + 0x248]
mov r15, qword [rsp + 0x1f0]
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.14000af90
add rsp, 0x1f8
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + r14*2]
mov edi, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x50]
add rdi, r13
lea rax, [rcx + r13]
cmp rdi, rax
jb 0x140001f78
mov rax, qword [rsp + 0x58]
add rax, rcx
add rax, r13
cmp rdi, rax
ja 0x140001f78
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140001f8c
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, rdi
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140001fcb
mov rcx, qword [rsp + 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001fc6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001fc6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b334
mov rax, rbx
jmp 0x140001f02
xor eax, eax
jmp 0x140001f12