Function at 0x14002c810
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15, rcx
cmp byte [rcx + 0x5c], 0
je 0x14002c832
mov r14d, dword [r15 + 0x58]
jmp 0x14002cdcf
mov rbp, qword [r15 + 0x10]
mov rdi, qword [r15 + 0x18]
cmp rbp, rdi
je 0x14002c983
mov esi, 1
mov rbx, rbp
mov rcx, qword [rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add rsi, rax
inc rsi
add rbx, 8
cmp rbx, rdi
jne 0x14002c84b
mov rcx, rsi
call fcn.14005753c
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x40], rbx
mov rsi, rbx
mov rbx, rbp
mov rdx, qword [rbx]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rcx, qword [rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add rsi, rax
inc rsi
add rbx, 8
cmp rbx, rdi
jne 0x14002c885
sub rdi, rbp
mov rbp, rdi
sar rbp, 3
mov ecx, 8
mov rax, rbp
mul rcx
seto dl
add rax, 8
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
movabs rbx, 0x100000000
mov byte [rsi], 0
test dl, dl
cmove rcx, rax
call fcn.14005753c
mov qword [rax], rbp
mov qword [rsp + 0x60], rax
mov rcx, rax
add rcx, 8
mov r8, rdi
and r8, 0xfffffffffffffff8
mov qword [rsp + 0x48], rcx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [r15]
mov rbp, qword [r15 + 8]
lea rdx, [0x1400a2dd4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
test rax, rax
je 0x14002c999
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8d, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r14d, 6
test eax, eax
jne 0x14002cc2a
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
test eax, eax
jle 0x14002cc2a
mov r13d, eax
lea rcx, [r13 + 1]
call fcn.14005753c
mov rbx, rax
mov rcx, rsi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r14d, 6
test eax, eax
je 0x14002c9ac
mov rcx, rbx
jmp 0x14002cc1b
movabs rax, 0x100000000
mov qword [r15 + 0x58], rax
xor r14d, r14d
jmp 0x14002cdcf
add rbx, 6
mov qword [r15 + 0x58], rbx
mov r14d, 6
jmp 0x14002cd90
mov edx, 1
mov rcx, rbx
mov r8, r13
mov r9, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, r13
mov rcx, rbx
jne 0x14002cc1b
mov qword [rsp + 0x50], rbp
shr rdi, 3
mov byte [rcx + r13], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x58], rcx
mov rbp, rcx
mov rax, rbp
movzx ecx, byte [rbp]
cmp ecx, 0xa
je 0x14002ca2f
cmp ecx, 0xd
je 0x14002ca2f
test ecx, ecx
je 0x14002cc09
lea r13, [rax + 1]
mov rbp, r13
mov edx, ecx
cmp dl, 0xa
je 0x14002ca37
movzx edx, dl
cmp edx, 0xd
je 0x14002ca37
mov dl, byte [rbp]
inc rbp
test dl, dl
jne 0x14002ca14
xor ebp, ebp
jmp 0x14002ca3d
inc rax
mov rbp, rax
jmp 0x14002c9f2
mov byte [rbp - 1], 0
mov cl, byte [rax]
cmp cl, 0x23
je 0x14002cba9
movzx edx, cl
cmp edx, 0x3b
je 0x14002cba9
lea rdx, [rax + 2]
add rax, 3
movzx ebx, cl
cmp ebx, 0x1f
jg 0x14002ca69
cmp ebx, 9
je 0x14002ca6e
jmp 0x14002ca7d
cmp ebx, 0x20
jne 0x14002ca87
mov cl, byte [r13]
inc r13
inc rdx
inc rax
jmp 0x14002ca5a
test ebx, ebx
je 0x14002cba9
jmp 0x14002caa2
cmp ebx, 0x5b
jne 0x14002caa2
mov rcx, r13
movzx ebx, byte [rcx]
cmp ebx, 0x5d
jne 0x14002cac4
inc rcx
inc rdx
inc rax
jmp 0x14002ca8f
cmp byte [rsp + 0x30], 0
je 0x14002cba9
lea r12, [r13 - 1]
mov rax, r12
cmp cl, 0x3d
jne 0x14002caec
mov cl, byte [rax + 1]
inc rax
inc r13
jmp 0x14002cab4
test ebx, ebx
jne 0x14002cad5
mov dword [rsp + 0x30], 0
jmp 0x14002cba9
cmp bl, 0x5d
je 0x14002cb0c
mov bl, byte [rcx + 1]
inc rcx
inc rdx
inc rax
test bl, bl
jne 0x14002cad5
jmp 0x14002cb28
movzx eax, cl
test eax, eax
je 0x14002cba9
cmp cl, 0x3d
je 0x14002cb67
mov cl, byte [r13]
inc r13
test cl, cl
jne 0x14002caf7
xor r13d, r13d
jmp 0x14002cb6c
mov byte [rcx], 0
movzx ecx, byte [rdx]
cmp ecx, 9
je 0x14002cb1c
cmp ecx, 0x20
jne 0x14002cb24
inc rdx
inc rax
jmp 0x14002cb0f
test ecx, ecx
jne 0x14002cb4c
mov rdx, qword [rsp + 0x50]
mov rcx, r13
test rdx, rdx
jne 0x14002cb3c
lea rdx, [0x1400a04c0]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
sete al
mov dword [rsp + 0x30], eax
jmp 0x14002cba9
cmp cl, 9
je 0x14002cbb4
movzx ecx, cl
cmp ecx, 0x20
je 0x14002cbb4
mov cl, byte [rax]
inc rax
test cl, cl
jne 0x14002cb4c
jmp 0x14002cac8
mov byte [r13 - 1], 0
mov rax, qword [rsp + 0x40]
cmp byte [rax], 0
je 0x14002cba9
xor ebx, ebx
mov r14, qword [rsp + 0x40]
mov rcx, r12
mov rdx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14002cba5
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add r14, rax
inc r14
inc rbx
cmp byte [r14], 0
jne 0x14002cb7d
jmp 0x14002cba9
cmp ebx, edi
jb 0x14002cbbd
test rbp, rbp
jne 0x14002c9f2
jmp 0x14002cc09
mov byte [rax - 1], 0
jmp 0x14002cac8
mov rcx, r13
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea r12, [rax + 1]
mov rcx, r12
call fcn.14005753c
mov r14, rax
mov rcx, rax
xor edx, edx
mov r8, r12
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + rbx*8]
mov qword [rax + rbx*8], r14
test rcx, rcx
je 0x14002cbf8
call fcn.1400574f0
mov rcx, r14
mov rdx, r13
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
inc dword [rsp + 0x3c]
jmp 0x14002cba9
xor eax, eax
cmp dword [rsp + 0x3c], edi
setne al
lea r14d, [rax + rax*4]
mov rcx, qword [rsp + 0x58]
call fcn.1400574f0
movabs rbx, 0x100000000
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, r14d
or rax, rbx
mov qword [r15 + 0x58], rax
test r14d, r14d
jne 0x14002cd90
mov rbx, qword [r15 + 0x28]
mov r14, qword [r15 + 0x30]
cmp rbx, r14
je 0x14002ccb3
mov rax, qword [rbx]
mov rcx, qword [rsp + 0x48]
mov rbp, qword [rcx + rax*8]
test rbp, rbp
je 0x14002ccad
mov r13, qword [rbx + 8]
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rdi, [rax + 1]
mov rcx, rdi
call fcn.14005753c
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8, rdi
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [r13]
mov qword [r13], rsi
test rcx, rcx
je 0x14002cca2
call fcn.1400574f0
mov rsi, qword [r13]
mov rcx, rsi
mov rdx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add rbx, 0x10
jmp 0x14002cc4e
mov rsi, qword [r15 + 0x40]
mov rax, qword [r15 + 0x48]
mov qword [rsp + 0x30], rax
cmp rsi, rax
je 0x14002cd8d
mov rdi, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor r14d, r14d
mov rax, qword [rsi]
mov rcx, qword [rsp + 0x48]
mov rbx, qword [rcx + rax*8]
test rbx, rbx
je 0x14002cd7c
mov r15, qword [rsi + 8]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
mov r12, rdi
call rdi
mov r13d, eax
movsxd rbp, eax
add rbp, rbp
mov rax, 0xffffffffffffffff
cmovb rbp, rax
mov rcx, rbp
call fcn.14005753c
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [r15]
mov qword [r15], rdi
test rcx, rcx
je 0x14002cd51
call fcn.1400574f0
mov rdi, qword [r15]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rdi
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
mov rdi, r12
call r12
test eax, eax
mov eax, 0x10
cmovle r14d, eax
add rsi, 0x10
cmp rsi, qword [rsp + 0x30]
jne 0x14002ccd3
jmp 0x14002cd90
xor r14d, r14d
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rdi]
test rsi, rsi
je 0x14002cdbd
shl rsi, 3
mov rcx, qword [rdi + rsi]
mov qword [rdi + rsi], 0
test rcx, rcx
je 0x14002cdb7
call fcn.1400574f0
add rsi, 0xfffffffffffffff8
jne 0x14002cda1
mov rcx, rdi
call fcn.1400574f0
mov rcx, qword [rsp + 0x40]
call fcn.1400574f0
mov eax, r14d
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret