Function at 0x14002c7a0
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 0x14002c7c2
mov r14d, dword [r15 + 0x58]
jmp 0x14002cd5f
mov rbp, qword [r15 + 0x10]
mov rdi, qword [r15 + 0x18]
cmp rbp, rdi
je 0x14002c913
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 0x14002c7db
mov rcx, rsi
call fcn.14005766c
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 0x14002c815
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.14005766c
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, [0x1400a2d22]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
test rax, rax
je 0x14002c929
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 0x14002cbba
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
test eax, eax
jle 0x14002cbba
mov r13d, eax
lea rcx, [r13 + 1]
call fcn.14005766c
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 0x14002c93c
mov rcx, rbx
jmp 0x14002cbab
movabs rax, 0x100000000
mov qword [r15 + 0x58], rax
xor r14d, r14d
jmp 0x14002cd5f
add rbx, 6
mov qword [r15 + 0x58], rbx
mov r14d, 6
jmp 0x14002cd20
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 0x14002cbab
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 0x14002c9bf
cmp ecx, 0xd
je 0x14002c9bf
test ecx, ecx
je 0x14002cb99
lea r13, [rax + 1]
mov rbp, r13
mov edx, ecx
cmp dl, 0xa
je 0x14002c9c7
movzx edx, dl
cmp edx, 0xd
je 0x14002c9c7
mov dl, byte [rbp]
inc rbp
test dl, dl
jne 0x14002c9a4
xor ebp, ebp
jmp 0x14002c9cd
inc rax
mov rbp, rax
jmp 0x14002c982
mov byte [rbp - 1], 0
mov cl, byte [rax]
cmp cl, 0x23
je 0x14002cb39
movzx edx, cl
cmp edx, 0x3b
je 0x14002cb39
lea rdx, [rax + 2]
add rax, 3
movzx ebx, cl
cmp ebx, 0x1f
jg 0x14002c9f9
cmp ebx, 9
je 0x14002c9fe
jmp 0x14002ca0d
cmp ebx, 0x20
jne 0x14002ca17
mov cl, byte [r13]
inc r13
inc rdx
inc rax
jmp 0x14002c9ea
test ebx, ebx
je 0x14002cb39
jmp 0x14002ca32
cmp ebx, 0x5b
jne 0x14002ca32
mov rcx, r13
movzx ebx, byte [rcx]
cmp ebx, 0x5d
jne 0x14002ca54
inc rcx
inc rdx
inc rax
jmp 0x14002ca1f
cmp byte [rsp + 0x30], 0
je 0x14002cb39
lea r12, [r13 - 1]
mov rax, r12
cmp cl, 0x3d
jne 0x14002ca7c
mov cl, byte [rax + 1]
inc rax
inc r13
jmp 0x14002ca44
test ebx, ebx
jne 0x14002ca65
mov dword [rsp + 0x30], 0
jmp 0x14002cb39
cmp bl, 0x5d
je 0x14002ca9c
mov bl, byte [rcx + 1]
inc rcx
inc rdx
inc rax
test bl, bl
jne 0x14002ca65
jmp 0x14002cab8
movzx eax, cl
test eax, eax
je 0x14002cb39
cmp cl, 0x3d
je 0x14002caf7
mov cl, byte [r13]
inc r13
test cl, cl
jne 0x14002ca87
xor r13d, r13d
jmp 0x14002cafc
mov byte [rcx], 0
movzx ecx, byte [rdx]
cmp ecx, 9
je 0x14002caac
cmp ecx, 0x20
jne 0x14002cab4
inc rdx
inc rax
jmp 0x14002ca9f
test ecx, ecx
jne 0x14002cadc
mov rdx, qword [rsp + 0x50]
mov rcx, r13
test rdx, rdx
jne 0x14002cacc
lea rdx, [0x1400a0400]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
sete al
mov dword [rsp + 0x30], eax
jmp 0x14002cb39
cmp cl, 9
je 0x14002cb44
movzx ecx, cl
cmp ecx, 0x20
je 0x14002cb44
mov cl, byte [rax]
inc rax
test cl, cl
jne 0x14002cadc
jmp 0x14002ca58
mov byte [r13 - 1], 0
mov rax, qword [rsp + 0x40]
cmp byte [rax], 0
je 0x14002cb39
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 0x14002cb35
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 0x14002cb0d
jmp 0x14002cb39
cmp ebx, edi
jb 0x14002cb4d
test rbp, rbp
jne 0x14002c982
jmp 0x14002cb99
mov byte [rax - 1], 0
jmp 0x14002ca58
mov rcx, r13
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea r12, [rax + 1]
mov rcx, r12
call fcn.14005766c
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 0x14002cb88
call fcn.140057540
mov rcx, r14
mov rdx, r13
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
inc dword [rsp + 0x3c]
jmp 0x14002cb39
xor eax, eax
cmp dword [rsp + 0x3c], edi
setne al
lea r14d, [rax + rax*4]
mov rcx, qword [rsp + 0x58]
call fcn.140057540
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 0x14002cd20
mov rbx, qword [r15 + 0x28]
mov r14, qword [r15 + 0x30]
cmp rbx, r14
je 0x14002cc43
mov rax, qword [rbx]
mov rcx, qword [rsp + 0x48]
mov rbp, qword [rcx + rax*8]
test rbp, rbp
je 0x14002cc3d
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.14005766c
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 0x14002cc32
call fcn.140057540
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 0x14002cbde
mov rsi, qword [r15 + 0x40]
mov rax, qword [r15 + 0x48]
mov qword [rsp + 0x30], rax
cmp rsi, rax
je 0x14002cd1d
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 0x14002cd0c
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.14005766c
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 0x14002cce1
call fcn.140057540
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 0x14002cc63
jmp 0x14002cd20
xor r14d, r14d
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rdi]
test rsi, rsi
je 0x14002cd4d
shl rsi, 3
mov rcx, qword [rdi + rsi]
mov qword [rdi + rsi], 0
test rcx, rcx
je 0x14002cd47
call fcn.140057540
add rsi, 0xfffffffffffffff8
jne 0x14002cd31
mov rcx, rdi
call fcn.140057540
mov rcx, qword [rsp + 0x40]
call fcn.140057540
mov eax, r14d
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret