Function at 0x14003c5e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push r12
sub rsp, 0x288
mov rax, qword [0x140073010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r12, rdx
lea r8, [0x14006d4b0]
mov rdx, rcx
xor esi, esi
lea rcx, [rsp + 0x28]
call fcn.14004cd44
mov rcx, qword [rsp + 0x28]
test rcx, rcx
jne 0x14003c628
lea eax, [rsi + 1]
jmp 0x14003c9b4
xor edx, edx
mov qword [rsp + 0x2b0], rbx
mov qword [rsp + 0x270], r13
lea r8d, [rdx + 2]
call fcn.14004ca98
mov rcx, qword [rsp + 0x28]
call fcn.14004c5f8
mov rcx, qword [rsp + 0x28]
xor r8d, r8d
xor edx, edx
movsxd rbx, eax
call fcn.14004ca98
mov rcx, rbx
call fcn.1400462e4
mov r13, rax
test rax, rax
je 0x14003c691
mov r9, qword [rsp + 0x28]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.14004d02c
cmp rbx, rax
je 0x14003c6a5
mov rcx, r13
call fcn.1400462d0
mov rcx, qword [rsp + 0x28]
call fcn.14004c82c
mov eax, 1
jmp 0x14003c9a4
movzx eax, byte [r13 + 0x14]
mov qword [rsp + 0x260], r15
mov r15d, 0x4c
test al, 1
je 0x14003c7c3
mov qword [rsp + 0x280], rbp
lea rdx, [r13 + 0x4d]
mov ebp, esi
mov ecx, 1
mov r8d, esi
nop word [rax + rax]
movzx eax, byte [rdx - 1]
lea rdx, [rdx + 2]
imul eax, ecx
add r8d, 2
imul ecx, ecx, 0xff
add ebp, eax
movzx eax, byte [rdx - 2]
imul eax, ecx
imul ecx, ecx, 0xff
add ebp, eax
cmp r8d, 2
jb 0x14003c6e0
mov r15d, 0x4e
cmp ebp, 2
jle 0x14003c7b2
mov qword [rsp + 0x278], rdi
mov qword [rsp + 0x268], r14
nop dword [rax + rax]
movsxd r14, r15d
mov edi, esi
add r14, r13
mov ecx, 1
mov rdx, r14
mov r8d, esi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 2]
imul eax, ecx
add r8d, 2
imul ecx, ecx, 0xff
add edi, eax
movzx eax, byte [rdx - 1]
imul eax, ecx
imul ecx, ecx, 0xff
add edi, eax
cmp r8d, 2
jb 0x14003c750
lea eax, [rdi - 2]
movsxd rbx, eax
mov rcx, rbx
call fcn.1400462e4
lea rdx, [r14 + 2]
mov r8, rbx
mov rcx, rax
call fcn.140044e90
add r15d, edi
sub ebp, edi
cmp ebp, 2
jg 0x14003c730
mov r14, qword [rsp + 0x268]
mov rdi, qword [rsp + 0x278]
movzx eax, byte [r13 + 0x14]
add r15d, 2
mov rbp, qword [rsp + 0x280]
test al, 2
je 0x14003c983
movsxd rax, r15d
lea r8, [r13 + 4]
add r8, rax
mov r9d, esi
mov ecx, 1
mov edx, esi
nop
movzx eax, byte [r8]
lea r8, [r8 + 1]
imul eax, ecx
inc edx
imul ecx, ecx, 0xff
add r9d, eax
cmp edx, 4
jb 0x14003c7e0
lea eax, [r15 + 8]
cmp r9d, 0x1c
je 0x14003c80f
cmp r9d, 0x24
jl 0x14003c983
movsxd r8, eax
mov r9d, esi
add r8, r13
mov ecx, 1
mov edx, esi
nop
movzx eax, byte [r8]
lea r8, [r8 + 1]
imul eax, ecx
inc edx
imul ecx, ecx, 0xff
add r9d, eax
cmp edx, 4
jb 0x14003c820
movsxd rax, r15d
lea r8, [r13 + 0x10]
add r8, rax
mov ebx, esi
mov ecx, 1
mov edx, esi
nop
movzx eax, byte [r8]
lea r8, [r8 + 1]
imul eax, ecx
inc edx
imul ecx, ecx, 0xff
add ebx, eax
cmp edx, 4
jb 0x14003c850
test r9b, 1
je 0x14003c983
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.1400452a0
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0x104
call fcn.1400452a0
lea eax, [rbx + r15]
mov rbx, 0xffffffffffffffff
movsxd r9, eax
mov rcx, rbx
lea rax, [r9 + r13]
inc rcx
cmp byte [rax + rcx], sil
jne 0x14003c8b0
inc rcx
mov r8d, 0x7ffffffe
lea rax, [rcx - 1]
cmp rax, r8
ja 0x14003c90b
lea rax, [rsp + 0x30]
sub r8, rcx
sub r9, rax
lea rdx, [rsp + 0x30]
add r9, r13
nop
lea rax, [r8 + rcx]
test rax, rax
je 0x14003c8fd
movzx eax, byte [r9 + rdx]
test al, al
je 0x14003c8fd
mov byte [rdx], al
inc rdx
sub rcx, 1
jne 0x14003c8e0
test rcx, rcx
lea rax, [rdx - 1]
cmovne rax, rdx
mov byte [rax], sil
xor r9d, r9d
lea r8, [rsp + 0x140]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov r8d, 0x104
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameA]
lea rax, [rsp + 0x140]
nop word [rax + rax]
cmp byte [rax + rbx + 1], sil
lea rbx, [rbx + 1]
jne 0x14003c950
lea rcx, [rbx + 1]
call fcn.1400462e4
mov qword [r12], rax
test rax, rax
je 0x14003c983
lea r8, [rsp + 0x140]
mov rcx, rax
lea rdx, [rbx + 1]
call fcn.1400466e0
jmp 0x14003c988
mov esi, 1
mov rcx, r13
call fcn.1400462d0
mov rcx, qword [rsp + 0x28]
call fcn.14004c82c
mov r15, qword [rsp + 0x260]
mov eax, esi
mov rbx, qword [rsp + 0x2b0]
mov r13, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140043fc0
add rsp, 0x288
pop r12
pop rsi
ret