Function at 0x14002cc40
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 0x14002cc62
mov r14d, dword [r15 + 0x58]
jmp 0x14002d1ff
mov rbp, qword [r15 + 0x10]
mov rdi, qword [r15 + 0x18]
cmp rbp, rdi
je 0x14002cdb3
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 0x14002cc7b
mov rcx, rsi
call fcn.140057a8c
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 0x14002ccb5
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.140057a8c
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, [0x1400a2de2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
test rax, rax
je 0x14002cdc9
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 0x14002d05a
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
test eax, eax
jle 0x14002d05a
mov r13d, eax
lea rcx, [r13 + 1]
call fcn.140057a8c
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 0x14002cddc
mov rcx, rbx
jmp 0x14002d04b
movabs rax, 0x100000000
mov qword [r15 + 0x58], rax
xor r14d, r14d
jmp 0x14002d1ff
add rbx, 6
mov qword [r15 + 0x58], rbx
mov r14d, 6
jmp 0x14002d1c0
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 0x14002d04b
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 0x14002ce5f
cmp ecx, 0xd
je 0x14002ce5f
test ecx, ecx
je 0x14002d039
lea r13, [rax + 1]
mov rbp, r13
mov edx, ecx
cmp dl, 0xa
je 0x14002ce67
movzx edx, dl
cmp edx, 0xd
je 0x14002ce67
mov dl, byte [rbp]
inc rbp
test dl, dl
jne 0x14002ce44
xor ebp, ebp
jmp 0x14002ce6d
inc rax
mov rbp, rax
jmp 0x14002ce22
mov byte [rbp - 1], 0
mov cl, byte [rax]
cmp cl, 0x23
je 0x14002cfd9
movzx edx, cl
cmp edx, 0x3b
je 0x14002cfd9
lea rdx, [rax + 2]
add rax, 3
movzx ebx, cl
cmp ebx, 0x1f
jg 0x14002ce99
cmp ebx, 9
je 0x14002ce9e
jmp 0x14002cead
cmp ebx, 0x20
jne 0x14002ceb7
mov cl, byte [r13]
inc r13
inc rdx
inc rax
jmp 0x14002ce8a
test ebx, ebx
je 0x14002cfd9
jmp 0x14002ced2
cmp ebx, 0x5b
jne 0x14002ced2
mov rcx, r13
movzx ebx, byte [rcx]
cmp ebx, 0x5d
jne 0x14002cef4
inc rcx
inc rdx
inc rax
jmp 0x14002cebf
cmp byte [rsp + 0x30], 0
je 0x14002cfd9
lea r12, [r13 - 1]
mov rax, r12
cmp cl, 0x3d
jne 0x14002cf1c
mov cl, byte [rax + 1]
inc rax
inc r13
jmp 0x14002cee4
test ebx, ebx
jne 0x14002cf05
mov dword [rsp + 0x30], 0
jmp 0x14002cfd9
cmp bl, 0x5d
je 0x14002cf3c
mov bl, byte [rcx + 1]
inc rcx
inc rdx
inc rax
test bl, bl
jne 0x14002cf05
jmp 0x14002cf58
movzx eax, cl
test eax, eax
je 0x14002cfd9
cmp cl, 0x3d
je 0x14002cf97
mov cl, byte [r13]
inc r13
test cl, cl
jne 0x14002cf27
xor r13d, r13d
jmp 0x14002cf9c
mov byte [rcx], 0
movzx ecx, byte [rdx]
cmp ecx, 9
je 0x14002cf4c
cmp ecx, 0x20
jne 0x14002cf54
inc rdx
inc rax
jmp 0x14002cf3f
test ecx, ecx
jne 0x14002cf7c
mov rdx, qword [rsp + 0x50]
mov rcx, r13
test rdx, rdx
jne 0x14002cf6c
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 0x14002cfd9
cmp cl, 9
je 0x14002cfe4
movzx ecx, cl
cmp ecx, 0x20
je 0x14002cfe4
mov cl, byte [rax]
inc rax
test cl, cl
jne 0x14002cf7c
jmp 0x14002cef8
mov byte [r13 - 1], 0
mov rax, qword [rsp + 0x40]
cmp byte [rax], 0
je 0x14002cfd9
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 0x14002cfd5
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 0x14002cfad
jmp 0x14002cfd9
cmp ebx, edi
jb 0x14002cfed
test rbp, rbp
jne 0x14002ce22
jmp 0x14002d039
mov byte [rax - 1], 0
jmp 0x14002cef8
mov rcx, r13
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea r12, [rax + 1]
mov rcx, r12
call fcn.140057a8c
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 0x14002d028
call fcn.140057960
mov rcx, r14
mov rdx, r13
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
inc dword [rsp + 0x3c]
jmp 0x14002cfd9
xor eax, eax
cmp dword [rsp + 0x3c], edi
setne al
lea r14d, [rax + rax*4]
mov rcx, qword [rsp + 0x58]
call fcn.140057960
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 0x14002d1c0
mov rbx, qword [r15 + 0x28]
mov r14, qword [r15 + 0x30]
cmp rbx, r14
je 0x14002d0e3
mov rax, qword [rbx]
mov rcx, qword [rsp + 0x48]
mov rbp, qword [rcx + rax*8]
test rbp, rbp
je 0x14002d0dd
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.140057a8c
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 0x14002d0d2
call fcn.140057960
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 0x14002d07e
mov rsi, qword [r15 + 0x40]
mov rax, qword [r15 + 0x48]
mov qword [rsp + 0x30], rax
cmp rsi, rax
je 0x14002d1bd
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 0x14002d1ac
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.140057a8c
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 0x14002d181
call fcn.140057960
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 0x14002d103
jmp 0x14002d1c0
xor r14d, r14d
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rdi]
test rsi, rsi
je 0x14002d1ed
shl rsi, 3
mov rcx, qword [rdi + rsi]
mov qword [rdi + rsi], 0
test rcx, rcx
je 0x14002d1e7
call fcn.140057960
add rsi, 0xfffffffffffffff8
jne 0x14002d1d1
mov rcx, rdi
call fcn.140057960
mov rcx, qword [rsp + 0x40]
call fcn.140057960
mov eax, r14d
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret