Function at 0x140090c10
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
xor sil, sil
mov r14, r8
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x14009105b
test r8, r8
je 0x14009105b
mov qword [rsp + 0x2e0], r15
xor r15d, r15d
mov word [r8], r15w
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x140090c6f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x140091041
xorps xmm0, xmm0
mov dword [rsp + 0x40], r15d
xor eax, eax
mov ebx, r15d
movups xmmword [rsp + 0x70], xmm0
mov dword [rbp - 0x80], eax
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 0x70]
mov r8d, 0x40
mov eax, ebx
sub r8d, ebx
mov dword [rbp + 0x1e8], r15d
add rdx, rax
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x1e8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140090d04
mov eax, dword [rbp + 0x1e8]
test eax, eax
je 0x140090d04
add ebx, eax
cmp ebx, 0x40
jb 0x140090cc0
mov eax, ebx
lock add qword [0x1401f3d70], rax
mov rcx, qword [rdi + 8]
cmp ebx, 0x40
jne 0x140091029
mov eax, 0x5a4d
cmp word [rbp - 0x70], ax
jne 0x140091029
cmp rcx, 0xffffffffffffffff
jne 0x140090d32
jmp 0x140090d6a
movsxd rax, dword [rbp - 0x34]
lea r8, [rsp + 0x54]
mov edx, eax
mov qword [rsp + 0x50], rax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x50], eax
cmp eax, 0xffffffff
jne 0x140090d65
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, 0xffffffffffffffff
test eax, eax
jne 0x140090d6a
mov rcx, qword [rsp + 0x50]
movsxd rax, dword [rbp - 0x34]
cmp rcx, rax
jne 0x140091029
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x140091029
mov ebx, r15d
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x40]
mov r8d, 4
mov eax, ebx
sub r8d, ebx
mov dword [rbp + 0x1d8], r15d
add rdx, rax
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140090dd5
mov eax, dword [rbp + 0x1d8]
test eax, eax
je 0x140090dd5
add ebx, eax
cmp ebx, 4
jb 0x140090d90
mov eax, ebx
lock add qword [0x1401f3d70], rax
cmp ebx, 4
jne 0x140091029
cmp dword [rsp + 0x40], 0x4550
jne 0x140091029
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x140091029
mov ebx, r15d
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x70]
mov r8d, shutdown
mov eax, ebx
sub r8d, ebx
mov dword [rsp + 0x44], r15d
add rdx, rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140090e4f
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x140090e4f
add ebx, eax
cmp ebx, 0x14
jb 0x140090e10
mov eax, ebx
lock add qword [0x1401f3d70], rax
cmp ebx, 0x14
jne 0x140091029
movzx ebx, word [rsp + 0x70]
mov qword [rsp + 0x2d0], r12
mov r12d, 0x14c
cmp bx, r12w
je 0x140090e89
mov eax, 0x8664
cmp bx, ax
jne 0x140091021
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0xe0
call fcn.14014d290
xor edx, edx
lea rcx, [rbp + 0xb0]
mov r8d, 0xf0
call fcn.14014d290
mov rcx, qword [rdi + 8]
cmp bx, r12w
jne 0x140090f60
cmp rcx, 0xffffffffffffffff
je 0x140090ee9
mov r9d, 1
mov qword [rsp + 0x58], r15
lea r8, [rsp + 0x5c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x58], eax
cmp eax, 0xffffffff
jne 0x140090ee9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x140091021
mov ebx, r15d
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 0x30]
mov r8d, 0xe0
mov eax, ebx
sub r8d, ebx
mov dword [rsp + 0x48], r15d
add rdx, rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140090f41
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140090f41
add ebx, eax
cmp ebx, 0xe0
jb 0x140090f00
mov eax, ebx
lock add qword [0x1401f3d70], rax
cmp ebx, 0xe0
jne 0x140091021
mov rax, qword [rbp + 0x50]
jmp 0x140090ffd
cmp rcx, 0xffffffffffffffff
je 0x140090f8d
mov r9d, 1
mov qword [rsp + 0x60], r15
lea r8, [rsp + 0x64]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x60], eax
cmp eax, 0xffffffff
jne 0x140090f8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x140091021
mov ebx, r15d
nop dword [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [rbp + 0xb0]
mov r8d, 0xf0
mov eax, ebx
sub r8d, ebx
mov dword [rsp + 0x4c], r15d
add rdx, rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140090fe4
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x140090fe4
add ebx, eax
cmp ebx, 0xf0
jb 0x140090fa0
mov eax, ebx
lock add qword [0x1401f3d70], rax
cmp ebx, 0xf0
jne 0x140091021
mov rax, qword [rbp + 0x140]
mov qword [rsp + 0x68], rax
test eax, eax
je 0x140091021
shr rax, 0x20
test eax, eax
je 0x140091021
mov r8, r14
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.14008fed0
movzx esi, al
mov r12, qword [rsp + 0x2d0]
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140091041
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
mov r15, qword [rsp + 0x2e0]
movzx eax, sil
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
movzx eax, sil
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret