Function at 0x140001080
Capabilities:
Parse pe header

Disassembly:
push r15
sub rsp, 0x60
lea r9, [rsp + 0x68]
mov r15, rcx
mov r8, qword [r9]
lea rax, [rsp + 0x68]
mov qword [r9], 0
mov rdx, qword [rax]
mov qword [rsp + 0x38], r8
test rcx, rcx
je 0x1400010cc
mov ecx, 0x5a4d
cmp word [r15], cx
jne 0x1400010cc
movsxd rcx, dword [r15 + 0x3c]
cmp ecx, 0x400
jg 0x1400010cc
add rcx, r15
cmp dword [rcx], 0x4550
je 0x1400010db
mov qword [rax], rdx
xor al, al
mov qword [r9], r8
add rsp, 0x60
pop r15
ret
cmp dword [rcx + 0x90], 0
jne 0x1400010f0
xor al, al
mov qword [r9], r8
add rsp, 0x60
pop r15
ret
mov edx, dword [rcx + 0x94]
mov eax, dword [rcx + 0x90]
mov qword [rsp + 0x30], rdx
test rdx, rdx
je 0x14000134c
mov qword [rsp + 0x78], rbx
mov rcx, 0xfffffffffffffff0
mov qword [rsp + 0x80], rbp
sub rcx, r15
mov qword [rsp + 0x88], rsi
lea rbp, [r15 + 0x10]
mov qword [rsp + 0x58], rdi
add rbp, rax
mov qword [rsp + 0x50], r12
sub rcx, rax
mov qword [rsp + 0x48], r13
movabs rdx, 0x8000000080000000
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x20], rbp
nop dword [rax + rax]
mov ecx, dword [rbp - 0x10]
test ecx, ecx
jne 0x140001170
cmp dword [rbp], ecx
je 0x140001319
mov r12d, dword [rbp]
mov r14d, dword [rbp - 4]
mov r13d, r12d
add r14, r15
lea rbp, [0x140001030]
test ecx, ecx
lea rbx, [r15 + r12]
cmovne r13, rcx
neg r12
lea rdi, [r12 + rbx]
mov rsi, qword [rdi + r13]
test rdx, rsi
je 0x1400011c1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
movzx edx, si
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
movabs rdx, 0x8000000080000000
mov rax, qword [rbx]
test rax, rax
je 0x1400012f8
mov rcx, qword [rdi + r13]
cmp rax, rcx
jne 0x1400012e5
lea rdi, [r15 + 2]
add rdi, rcx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [0x1401a1e34], 0
mov rsi, rax
je 0x1400012e2
lea rdx, str.GetCommandLineA
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140001230
mov qword [rbx], rbp
movabs rdx, 0x8000000080000000
add rbx, 8
jmp 0x140001192
cmp byte [0x1401a1e34], 0
je 0x1400012e2
lea rdx, str.GetCommandLineW
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000126e
lea rax, [0x140001020]
movabs rdx, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x140001192
cmp byte [0x1401a1e34], 0
je 0x1400012e2
lea rdx, str.__wgetmainargs
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400012a8
lea rax, [0x140001040]
movabs rdx, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x140001192
cmp byte [0x1401a1e34], 0
je 0x1400012e2
lea rdx, str.__getmainargs
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400012e2
lea rax, [0x140001060]
movabs rdx, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x140001192
mov qword [rbx], rsi
add rbx, 8
movabs rdx, 0x8000000080000000
jmp 0x140001192
mov rbp, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
add rbp, 0x14
add rax, rbp
mov qword [rsp + 0x20], rbp
cmp rax, qword [rsp + 0x30]
jb 0x140001160
mov r8, qword [rsp + 0x38]
lea r9, [rsp + 0x68]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
mov al, 1
mov qword [r9], r8
add rsp, 0x60
pop r15
ret