Function at 0x1400d4af0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2160]
mov eax, 0x2270
call fcn.1400f9a20
sub rsp, rax
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rbp + 0x2150], rax
mov rax, rdx
mov qword [rbp - 0x68], rcx
lea rdx, [0x140183378]
xor r14d, r14d
mov rcx, rax
mov r12d, r9d
mov edi, r8d
xor r15d, r15d
xor esi, esi
mov dword [rbp - 0x70], r14d
call fcn.1400fafe4
mov rbx, rax
test rax, rax
je 0x1400d4b6b
lea edx, [rdi + 4]
xor r8d, r8d
mov rcx, rax
call fcn.1400fad50
test eax, eax
je 0x1400d4b72
mov rcx, rbx
call fcn.1400fa904
xor eax, eax
jmp 0x1400d4fb6
mov edx, 4
lea rcx, [rbp - 0x6c]
mov r9, rbx
lea r8d, [rdx - 3]
call fcn.1400fabdc
add r12d, r12d
test r12d, r12d
jle 0x1400d4fa2
mov qword [rsp + 0x22c8], r13
mov r13d, dword [rbp + 0x21c8]
nop dword [rax]
nop word [rax + rax]
mov edx, 4
lea rcx, [rbp - 0x7c]
mov r9, rbx
lea r8d, [rdx - 3]
call fcn.1400fabdc
mov edx, 4
lea rcx, [rbp - 0x74]
lea r8d, [rdx - 3]
mov r9, rbx
call fcn.1400fabdc
mov eax, dword [rbp - 0x74]
add eax, 8
add r14d, eax
mov eax, dword [rbp - 0x7c]
sub eax, 2
je 0x1400d4bfc
sub eax, 3
je 0x1400d4c89
dec eax
jne 0x1400d4f76
mov edx, 8
lea rcx, [rbp + 0x130]
mov r9, rbx
lea r8d, [rdx - 7]
call fcn.1400fabdc
mov edx, 4
lea rcx, [rbp - 0x80]
lea r8d, [rdx - 3]
mov r9, rbx
mov byte [rbp + 0x138], 0
call fcn.1400fabdc
cmp dword [rbp - 0x6c], 0
jne 0x1400d4c4b
mov edx, 4
lea rcx, [rbp - 0x70]
mov r9, rbx
lea r8d, [rdx - 3]
call fcn.1400fabdc
cmp dword [rbp - 0x7c], 2
jne 0x1400d4cac
test rsi, rsi
je 0x1400d4c5e
mov rcx, rsi
call fcn.1400f97e8
mov edi, dword [rbp - 0x80]
mov edx, 1
lea ecx, [rdi + 1]
call fcn.1400f97a4
mov edx, edi
mov r9, rbx
mov rcx, rax
mov r8d, 1
mov rsi, rax
call fcn.1400fabdc
jmp 0x1400d4f72
lea rcx, [rbp - 0x40]
mov r9, rbx
mov edx, 0xa4
mov r8d, 1
call fcn.1400fabdc
add r14d, 0xa4
jmp 0x1400d4f76
lea rdx, str.OiAnText
lea rcx, [rbp + 0x130]
call fcn.1400fecfc
test eax, eax
jne 0x1400d4f61
lea edx, [rax + 0x10]
lea r8d, [rax + 1]
lea rcx, [rbp - 0x50]
mov r9, rbx
call fcn.1400fabdc
test rsi, rsi
je 0x1400d4ce7
mov rcx, rsi
call fcn.1400f97e8
mov edi, dword [rbp - 0x44]
mov edx, 1
mov ecx, edi
call fcn.1400f97a4
mov r9, rbx
mov r8d, 1
mov rcx, rax
mov edx, edi
mov rsi, rax
call fcn.1400fabdc
mov edx, 4
mov rcx, rbx
lea r8d, [rdx - 3]
call fcn.1400fad50
cmp dword [rbp + 0x21c0], 0x1388
mov eax, dword [rbp - 0x10]
lea eax, [rax + rax*2]
mov dword [rbp - 0x10], eax
jge 0x1400d4d3b
cmp r13d, 0x1388
jl 0x1400d4d45
cmp eax, 0x1e
jg 0x1400d4d45
add eax, eax
mov dword [rbp - 0x10], eax
movzx edi, byte [rbp - 0x2b]
movzx eax, byte [rbp - 0x2c]
movaps xmm0, xmmword [rbp - 0x10]
movaps xmm1, xmmword [rbp]
shl eax, 0x10
shl edi, 8
or edi, eax
movzx eax, byte [rbp - 0x2a]
or r9d, 0xffffffff
or edi, eax
mov eax, dword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x20
lea r8, [rbp + 0xc]
test r15, r15
jne 0x1400d4e67
movaps xmmword [rbp + 0xd0], xmm0
movaps xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp + 0xe0], xmm1
movsd xmm1, qword [rbp + 0x20]
mov dword [rbp + 0x108], eax
lea rax, [rbp + 0xec]
movsd qword [rbp + 0x100], xmm1
mov qword [rsp + 0x20], rax
movaps xmmword [rbp + 0xf0], xmm0
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rbp + 0x150]
or r9d, 0xffffffff
mov r8, rsi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x800
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
lea rax, [rbp - 0x78]
movups xmm0, xmmword [rbp - 0x3c]
mov qword [rsp + 0x88], rcx
mov dword [rsp + 0x80], ecx
mov dword [rsp + 0x78], ecx
movaps xmmword [rbp - 0x60], xmm0
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x68], ecx
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp - 0x68]
lea r8, [rbp - 0x60]
lea rdx, [rbp + 0x150]
xor r9d, r9d
mov dword [rsp + 0x20], 1
call fcn.14003ab30
mov r15, rax
jmp 0x1400d4f72
movaps xmmword [rbp + 0x70], xmm0
movaps xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp + 0x80], xmm1
movsd xmm1, qword [rbp + 0x20]
mov dword [rbp + 0xa8], eax
lea rax, [rbp + 0x8c]
movsd qword [rbp + 0xa0], xmm1
mov qword [rsp + 0x20], rax
movaps xmmword [rbp + 0x90], xmm0
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rbp + 0x1150]
or r9d, 0xffffffff
mov r8, rsi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x800
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
lea rax, [rbp - 0x78]
movups xmm0, xmmword [rbp - 0x3c]
mov qword [rsp + 0x88], rcx
mov dword [rsp + 0x80], ecx
mov dword [rsp + 0x78], ecx
movaps xmmword [rbp - 0x60], xmm0
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x68], ecx
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
lea r8, [rbp - 0x60]
lea rdx, [rbp + 0x1150]
mov rcx, r15
xor r9d, r9d
mov dword [rsp + 0x20], 1
call fcn.14003ab30
mov rdi, rax
test rax, rax
je 0x1400d4f72
cmp dword [rbp - 0x78], 0
jne 0x1400d4f72
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r15, rdi
jmp 0x1400d4f72
mov edx, dword [rbp - 0x80]
mov r8d, 1
mov rcx, rbx
call fcn.1400fad50
add r14d, dword [rbp - 0x80]
test rsi, rsi
je 0x1400d4f85
mov rcx, rsi
call fcn.1400f97e8
xor esi, esi
mov rcx, rbx
call fcn.1400fa96c
test eax, eax
jne 0x1400d4f9a
cmp r14d, r12d
jl 0x1400d4bb0
mov r13, qword [rsp + 0x22c8]
mov rcx, rbx
call fcn.1400fa904
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rax, r15
mov rcx, qword [rbp + 0x2150]
xor rcx, rsp
call fcn.1400f9a80
add rsp, 0x2270
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret