Function at 0x180013900
Capabilities:
Parse pe header

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0x50
mov rbp, rcx
test rcx, rcx
je 0x180013d1d
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180013d1d
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x180013d1d
add rax, rcx
cmp dword [rax], 0x4550
jne 0x180013d1d
test rax, rax
je 0x180013d1d
add rax, 0x90
cmp dword [rax], 0
je 0x180013d1d
test rax, rax
je 0x180013d1d
mov edx, dword [rax + 4]
mov ecx, dword [rax]
mov qword [rsp + 0x70], rdx
test rdx, rdx
je 0x180013d15
mov qword [r11 + 0x20], rbx
mov rax, 0xfffffffffffffff0
mov qword [r11 - 0x10], rsi
sub rax, rcx
mov qword [r11 - 0x18], rdi
movabs r8, 0x8000000080000000
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
sub rax, rbp
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], rax
mov edx, dword [r14 - 0x10]
test edx, edx
jne 0x1800139c9
cmp dword [r14], edx
je 0x180013cf2
mov ecx, dword [r14]
mov r15d, dword [r14 - 4]
mov r12d, ecx
add r15, rbp
lea r14, [0x180013870]
test edx, edx
lea r13, [rcx + rbp]
cmovne r12, rdx
mov rbx, r13
nop word [rax + rax]
mov rdi, rbx
sub rdi, r13
add rdi, r12
mov rsi, qword [rdi + rbp]
test r8, rsi
je 0x180013a24
mov rcx, r15
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 r8, 0x8000000080000000
mov rax, qword [rbx]
test rax, rax
je 0x180013cd1
mov rcx, qword [rdi + rbp]
cmp rax, rcx
jne 0x180013cbe
lea rdi, [rbp + 2]
add rdi, rcx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x1800b3400], 0
mov rsi, rax
je 0x180013cbb
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 0x180013a93
mov qword [rbx], r14
movabs r8, 0x8000000080000000
add rbx, 8
jmp 0x1800139f0
cmp dword [0x1800b3400], 0
je 0x180013cbb
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 0x180013ad1
lea rax, [0x180013860]
movabs r8, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x1800139f0
cmp dword [0x1800b3400], 0
je 0x180013cbb
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 0x180013b0f
lea rax, [0x1800138b0]
movabs r8, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x1800139f0
cmp dword [0x1800b3400], 0
je 0x180013cbb
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 0x180013b4d
lea rax, [0x1800138d0]
movabs r8, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x1800139f0
cmp dword [0x1800b3400], 0
je 0x180013cbb
lea rdx, str.__p___argv
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x180013b8b
lea rax, [0x180013880]
movabs r8, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x1800139f0
cmp dword [0x1800b3400], 0
je 0x180013cbb
lea rdx, str.__p___wargv
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x180013bc9
lea rax, [0x180013890]
movabs r8, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x1800139f0
cmp dword [0x1800b3400], 0
je 0x180013cbb
lea rdx, str.__p___argc
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x180013c07
lea rax, [0x1800138a0]
movabs r8, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x1800139f0
cmp dword [0x1800b3400], 0
je 0x180013cbb
lea rdx, [0x180097684]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x180013c9e
lea rdx, str._Exit
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x180013c9e
lea rdx, str._exit
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x180013c9e
lea rdx, str.quick_exit
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x180013c9e
cmp dword [0x1800b3400], 0
je 0x180013cbb
lea rdx, str.ExitProcess
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x180013cbb
lea rax, [0x1800138f0]
movabs r8, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x1800139f0
lea rax, [0x1800138f0]
movabs r8, 0x8000000080000000
mov qword [rbx], rax
add rbx, 8
jmp 0x1800139f0
mov qword [rbx], rsi
add rbx, 8
movabs r8, 0x8000000080000000
jmp 0x1800139f0
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 0x1800139b8
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