Function at 0x140004440
Capabilities:
Read file on windows
Terminate process

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140028188]
lea r12, [0x140028150]
mov r15, r9
mov r14, r8
mov rbp, rdx
mov rbx, rcx
cmp rax, 0x12
jae 0x1400044d6
mov r8d, 0x12
lea rcx, [rax + r12]
sub r8, rax
mov r9, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x1400044cf
mov rcx, qword [0x140028110]
lea rdx, str.HINT_ERROR:_Unable_to_read_image_header__s
mov r8, rbp
call fcn.1400015b4
mov rcx, qword [0x140028110]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [0x140028110]
lea rdx, [0x14001cec4]
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add qword [0x140028188], rax
cmp byte [0x140028150], 0xff
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], r13
movaps xmmword [rsp + 0x50], xmm8
movaps xmmword [rsp + 0x40], xmm9
movaps xmmword [rsp + 0x30], xmm10
movaps xmmword [rsp + 0x20], xmm11
jne 0x14000465c
cmp byte [0x140028151], 0xd8
jne 0x14000465c
cmp byte [0x140028152], 0xff
jne 0x14000465c
cmp byte [0x140028153], 0xe0
jne 0x14000465c
cmp byte [0x140028156], 0x4a
jne 0x14000465c
cmp byte [0x140028157], 0x46
jne 0x14000465c
cmp byte [0x140028158], 0x49
jne 0x14000465c
cmp byte [0x140028159], 0x46
jne 0x14000465c
cmp byte [0x14002815a], 0
jne 0x14000465c
movzx ecx, byte [0x14002815e]
xor r8d, r8d
movzx eax, byte [0x14002815f]
movzx edi, byte [0x140028155]
movzx esi, byte [0x14002815d]
add edi, 4
shl ecx, 8
add ecx, eax
movzx eax, byte [0x140028161]
movd xmm10, ecx
movzx ecx, byte [0x140028160]
shl ecx, 8
add ecx, eax
cvtdq2pd xmm10, xmm10
movd xmm11, ecx
movzx ecx, byte [0x140028154]
shl ecx, 8
add edi, ecx
mov rcx, rbx
mov edx, edi
cvtdq2pd xmm11, xmm11
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000465c
xor r13d, r13d
nop word [rax + rax]
mov edx, 1
mov qword [0x140028188], r13
mov r9, rbx
mov rcx, r12
lea r8d, [rdx + 9]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x14000478a
add qword [0x140028188], rax
cmp byte [0x140028150], 0xff
jne 0x14000465c
movzx eax, byte [0x140028151]
and al, 0xf0
cmp al, 0xc0
je 0x14000469b
movzx ecx, byte [0x140028152]
xor r8d, r8d
movzx eax, byte [0x140028153]
shl ecx, 8
add eax, edi
lea edi, [rcx + 2]
mov rcx, rbx
add edi, eax
mov edx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x1400045f0
xor eax, eax
movaps xmm10, xmmword [rsp + 0x30]
movaps xmm9, xmmword [rsp + 0x40]
movaps xmm8, xmmword [rsp + 0x50]
mov r13, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
movaps xmm11, xmmword [rsp + 0x20]
add rsp, 0x60
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
movzx eax, byte [0x140028156]
movzx ecx, byte [0x140028155]
shl ecx, 8
add ecx, eax
movzx eax, byte [0x140028158]
movd xmm9, ecx
movzx ecx, byte [0x140028157]
shl ecx, 8
add ecx, eax
cvtdq2pd xmm9, xmm9
movd xmm8, ecx
cvtdq2pd xmm8, xmm8
test esi, esi
je 0x14000476c
cmp esi, 1
jne 0x140004712
movaps xmm0, xmm8
mulsd xmm0, qword [0x14001de80]
divsd xmm0, xmm10
addsd xmm0, qword [0x14001de50]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
cvttsd2si eax, xmm0
movaps xmm0, xmm9
mulsd xmm0, qword [0x14001de80]
jmp 0x140004749
cmp esi, 2
jne 0x14000465c
movaps xmm0, xmm8
mulsd xmm0, qword [0x14001de70]
divsd xmm0, xmm10
addsd xmm0, qword [0x14001de50]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
cvttsd2si eax, xmm0
movaps xmm0, xmm9
mulsd xmm0, qword [0x14001de70]
divsd xmm0, xmm11
mov dword [r15], eax
addsd xmm0, qword [0x14001de50]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
mov rax, qword [rsp + 0xb0]
cvttsd2si ecx, xmm0
mov dword [rax], ecx
divsd xmm8, xmm10
mov eax, 1
divsd xmm9, xmm11
divsd xmm8, xmm9
movsd qword [r14], xmm8
jmp 0x14000465e
mov rcx, qword [0x140028110]
lea rdx, str.HINT_ERROR:_Unable_to_read_image_header__s
mov r8, rbp
call fcn.1400015b4
mov rcx, qword [0x140028110]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [0x140028110]
lea rdx, [0x14001cec4]
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3