Function at 0x14000bdc0
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x218
movaps xmmword [rsp + 0x200], xmm6
test rdx, rdx
je 0x14000c1a1
mov r13, r8
mov rbp, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
xor ebx, ebx
lea rdi, [rsp + 0xf8]
mov r8d, 0x108
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movaps xmm6, xmmword [0x14001fff0]
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], rbp
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 0x40
mov dword [rsp + 0x4c], 0
lea r14, [rsp + 0x4c]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov rcx, rsi
mov edx, 0x80862007
mov r9d, 0x28
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14000c1a3
movzx eax, word [rsp + 0xb0]
cmp eax, 0x5a4d
jne 0x14000c1a1
movsxd rax, dword [rsp + 0xec]
add rax, rbp
je 0x14000c1a1
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], 0x108
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov rcx, rsi
mov edx, 0x80862007
mov r9d, 0x28
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14000c1a1
cmp dword [rsp + 0xf8], 0x4550
jne 0x14000c1a1
mov r12d, dword [rsp + 0x180]
xor ebx, ebx
test r12, r12
je 0x14000c1a3
mov edi, dword [rsp + 0x184]
test edi, edi
je 0x14000c1a3
xor ecx, ecx
mov rdx, rdi
mov r8d, 0x3000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
mov rbx, r12
add rbx, rbp
je 0x14000c18c
test r15, r15
je 0x14000c18c
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov rcx, rsi
mov edx, 0x80862007
mov r9d, 0x28
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14000c18c
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rdi
cmp dword [r15 + 0x18], 0
je 0x14000c18c
mov rax, r15
sub rax, r12
mov ecx, dword [r15 + 0x1c]
mov edx, dword [r15 + 0x20]
add rdx, rax
mov qword [rsp + 0xa0], rdx
mov edx, dword [r15 + 0x24]
add rdx, rax
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0xa8], rax
add rcx, rax
mov qword [rsp + 0x98], rcx
mov rax, qword [rsp + 0x80]
add qword [rsp + 0x88], rax
xor r14d, r14d
movaps xmm6, xmmword [0x140017010]
mov rax, qword [rsp + 0xa0]
mov esi, dword [rax + r14*4]
add rsi, qword [rsp + 0xa8]
mov qword [rsp + 0x50], 0
movups xmmword [rsp + 0x60], xmm6
mov byte [rsp + 0x50], 0
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rdi, rax
cmp rax, 0xf
jbe 0x14000c09d
lea r12, [rsp + 0x50]
mov rcx, r12
mov rdx, rdi
mov r9, rsi
call fcn.14000fa60
jmp 0x14000c0ba
mov qword [rsp + 0x60], rdi
lea r12, [rsp + 0x50]
mov rcx, r12
mov rdx, rsi
mov r8, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rdi + 0x50], 0
cmp qword [r13 + 0x18], 0xf
mov rdx, r13
jbe 0x14000c0c8
mov rdx, qword [r13]
cmp qword [rsp + 0x68], 0xf
jbe 0x14000c0d5
mov r12, qword [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov esi, eax
test eax, eax
jne 0x14000c13a
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + r14*2]
mov rcx, qword [rsp + 0x98]
mov edi, dword [rcx + rax*4]
cmp rdi, 0x1001
jae 0x14000c109
xor ebx, ebx
jmp 0x14000c13a
add rdi, rbp
mov rcx, r15
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp rdi, qword [rsp + 0x88]
mov ebx, 0
cmova rbx, rdi
cmp rdi, qword [rsp + 0x80]
cmovb rbx, rdi
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x14000c177
mov rcx, qword [rsp + 0x50]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14000c172
mov rdi, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rdi
cmp rcx, 0x20
jae 0x14000c1c2
add rax, 0x28
mov rdx, rax
mov rcx, rdi
call fcn.1400150b4
test esi, esi
je 0x14000c1a3
add r14, 1
mov eax, dword [r15 + 0x18]
cmp r14, rax
jb 0x14000c050
xor ebx, ebx
mov rcx, r15
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000c1a3
xor ebx, ebx
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x200]
add rsp, 0x218
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3