Function at 0x14012c550
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rbp - 0xc], 0
xorps xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
lea rax, [rbp - 0xc]
mov qword [rbp - 0x18], rax
lea rax, [0x14012cb10]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je case.0x14012aca1.47
mov rsi, qword [sym.imp.KERNEL32.dll_SleepEx]
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rsi
cmp dword [rbp - 0xc], 0
je case.0x14012478a.267
mov eax, dword [rbp - 8]
mov esi, dword [rbp - 4]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
xor edx, edx
test eax, eax
setne dl
cmovne rsi, rcx
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], rsi
je case.0x140125227.217
lea rdi, [rbp - 0x28]
jmp case.0x14012aca1.76
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov qword [rbp - 0x30], 1
lea rdi, [rbp - 0x28]
mov qword [rbp - 0x28], rsi
mov rcx, rsi
mov eax, ecx
and eax, 3
shr rcx, 0x20
cmp eax, 2
jne case.0x140124b77.286
call fcn.140134360
mov ecx, 1
cmp al, 0xb
jne case.0x1401246bc.303
mov rcx, rdi
call fcn.140119400
xor esi, esi
invalid
xor ecx, ecx
mov rax, rcx
mov rdx, rsi
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
cmp ecx, 0x28
ja case.default.0x14012c660
invalid
add dword [rax], 0
invalid
mov eax, ecx
lea rcx, [0x1401f2114]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
xor eax, eax
jmp case.0x140125227.229
mov al, 0x25
jmp case.0x140125227.229
mov al, 0x23
jmp case.0x140125227.229
mov al, 0x24
jmp case.0x140125227.229
mov al, 0x1b
jmp case.0x140125227.229
mov al, 0x22
jmp case.0x140125227.229
mov al, 0x10
jmp case.0x140125227.229
mov al, 0xe
jmp case.0x140125227.229
mov al, 0x21
jmp case.0x140125227.229
mov al, 0xb
jmp case.0x140125227.229
mov al, 4
jmp case.0x140125227.229
mov al, 0x28
jmp case.0x140125227.229
xchg edx, eax
mov al, 0xc
jmp case.0x140125227.229
mov al, 9
jmp case.0x140125227.229
mov al, 0x19
jmp case.0x140125227.229
invalid
mov al, 0x18
jmp case.0x140125227.229
mov al, 2
jmp case.0x140125227.229
mov al, 0xf
jmp case.0x140125227.229
mov al, 3
jmp case.0x140125227.229
mov al, 7
jmp case.0x140125227.229
mov al, 1
jmp case.0x140125227.229
mov al, 0x1f
jmp case.0x140125227.229
invalid
invalid
mov al, 0x11
jmp case.0x140125227.229
push rcx
invalid
invalid
invalid
mov al, 0x29
jmp case.0x140125227.229
invalid
invalid
mov al, 0x14
jmp case.0x140125227.229
mov al, 5
jmp case.0x140125227.229
invalid
invalid
mov al, 0x15
jmp case.0x140125227.229
invalid
invalid
mov al, 0xd
jmp case.0x140125227.229
invalid
invalid
mov al, 6
jmp case.0x140125227.229
invalid
invalid
mov al, 0x12
jmp case.0x140125227.229
invalid
invalid
mov al, 0xa
jmp case.0x140125227.229
invalid
invalid
mov al, 8
jmp case.0x140125227.229
invalid
invalid
mov al, 0x1e
jmp case.0x140125227.229
invalid
invalid
mov al, 0x20
jmp case.0x140125227.229
add al, 0xff
invalid
invalid
mov al, 0x16
jmp case.0x140125227.229
invalid
invalid
invalid
mov al, 0x27
jmp case.0x140125227.229
invalid
invalid
mov al, 0x13
jmp case.0x140125227.229
mov al, 0x17
jmp case.0x140125227.229
invalid
invalid
invalid
invalid
mov al, 0x1c
jmp case.0x140125227.229
invalid
invalid
invalid
mov al, 0x1d
jmp case.0x140125227.229
invalid
invalid
invalid
mov al, 0x26
jmp case.0x140125227.229
mov al, 0x1a
jmp case.0x140125227.229
int3
invalid
invalid
invalid