Function at 0x140001060
Capabilities:
Parse pe header

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0x50
mov rbp, rcx
test rcx, rcx
je 0x14000130d
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000130d
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x14000130d
cmp dword [rax + rcx], 0x4550
jne 0x14000130d
mov ecx, dword [rax + rcx + 0x90]
test ecx, ecx
je 0x14000130d
mov edx, dword [rax + rbp + 0x94]
mov eax, ecx
mov qword [rsp + 0x70], rdx
test rdx, rdx
je 0x140001305
mov qword [r11 + 0x20], rbx
movabs r8, 0x8000000080000000
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
lea r14, [rbp + 0x10]
add r14, rcx
mov qword [r11 - 0x38], r15
mov rcx, 0xfffffffffffffff0
mov qword [rsp + 0x60], r14
sub rcx, rax
sub rcx, rbp
mov qword [rsp + 0x68], rcx
mov edx, dword [r14 - 0x10]
test edx, edx
jne 0x140001119
cmp dword [r14], edx
je 0x1400012e2
mov ecx, dword [r14]
mov r15d, dword [r14 - 4]
mov r12d, ecx
add r15, rbp
lea r14, [0x140001010]
test edx, edx
lea r13, [rcx + rbp]
cmovne r12, rdx
mov rbx, r13
nop word [rax + rax]
mov rsi, rbx
sub rsi, r13
add rsi, r12
mov rax, qword [rsi + rbp]
test r8, rax
je 0x140001176
mov rcx, r15
movzx edi, ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
movabs r8, 0x8000000080000000
mov rax, qword [rbx]
test rax, rax
je 0x1400012c1
mov rsi, qword [rsi + rbp]
cmp rax, rsi
jne 0x1400012ae
movzx edi, word [rsi + rbp]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdi, [rbp + 2]
mov rcx, r15
add rdi, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [0x140021cb4], 0
mov rsi, rax
je 0x1400012ab
lea rdx, [0x14001d898]
mov rcx, rdi
call fcn.140008568
test eax, eax
jne 0x1400011fc
mov qword [rbx], r14
movabs r8, 0x8000000080000000
add rbx, 8
jmp 0x140001140
cmp byte [0x140021cb4], 0
je 0x1400012ab
lea rdx, [0x14001d8a8]
mov rcx, rdi
call fcn.140008568
test eax, eax
jne 0x140001239
lea rax, section..text
movabs r8, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x140001140
cmp byte [0x140021cb4], 0
je 0x1400012ab
lea rdx, str.__wgetmainargs
mov rcx, rdi
call fcn.140008568
test eax, eax
jne 0x140001272
lea rax, [0x140001020]
movabs r8, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x140001140
cmp byte [0x140021cb4], 0
je 0x1400012ab
lea rdx, str.__getmainargs
mov rcx, rdi
call fcn.140008568
test eax, eax
jne 0x1400012ab
lea rax, [0x140001040]
movabs r8, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x140001140
mov qword [rbx], rsi
add rbx, 8
movabs r8, 0x8000000080000000
jmp 0x140001140
mov r14, qword [rsp + 0x60]
mov rax, qword [rsp + 0x68]
add r14, 0x14
add rax, r14
mov qword [rsp + 0x60], r14
cmp rax, qword [rsp + 0x70]
jb 0x140001108
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
mov r15, qword [rsp + 0x20]
mov al, 1
add rsp, 0x50
pop rbp
ret
xor al, al
add rsp, 0x50
pop rbp
ret