Function at 0x14002c380
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 r12, rcx
cmp byte [rcx + 0x5c], 0
je 0x14002c3a3
mov r15d, dword [r12 + 0x58]
jmp 0x14002c99d
mov rdi, qword [r12 + 0x10]
mov rbp, qword [r12 + 0x18]
cmp rdi, rbp
je 0x14002c796
mov esi, 1
mov rbx, rdi
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, rbp
jne 0x14002c3be
mov rcx, rsi
call fcn.14005896c
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x50], rbx
mov rsi, rbx
mov rbx, rdi
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, rbp
jne 0x14002c3f8
sub rbp, rdi
mov rdi, rbp
sar rdi, 3
mov ecx, 8
mov rax, rdi
mul rcx
seto dl
add rax, 8
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov byte [rsi], 0
test dl, dl
cmove rcx, rax
call fcn.14005896c
mov qword [rax], rdi
mov qword [rsp + 0x60], rax
lea rdi, [rax + 8]
test rbp, rbp
je 0x14002c471
mov r8, rbp
and r8, 0xfffffffffffffff8
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [r12]
mov rbx, qword [r12 + 8]
lea rdx, [0x1400a1984]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
test rax, rax
je 0x14002c7ad
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 r15d, 6
test eax, eax
mov qword [rsp + 0x48], rdi
jne 0x14002c7ee
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
test eax, eax
jle 0x14002c7ee
mov r13d, eax
lea rcx, [r13 + 1]
call fcn.14005896c
mov rdi, 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 r15d, 6
test eax, eax
jne 0x14002c7e1
mov edx, 1
mov rcx, rdi
mov r8, r13
mov r9, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, r13
jne 0x14002c7e1
shr rbp, 3
mov byte [rdi + r13], 0
lea r8, [0x14009ef40]
xor r9d, r9d
xor r13d, r13d
mov r15, rdi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x38], rdi
lea rdi, [r15 + 1]
lea rcx, [r15 + 2]
lea rsi, [r15 + 3]
mov rbx, r15
mov al, byte [rbx]
cmp al, 0xa
je 0x14002c551
cmp al, 0xd
jne 0x14002c55f
inc rbx
inc rdi
inc rcx
inc rsi
jmp 0x14002c547
mov r15, rdi
mov edx, eax
test al, al
je 0x14002c7cb
cmp dl, 0xa
je 0x14002c585
cmp dl, 0xd
je 0x14002c585
mov dl, byte [r15]
inc r15
test dl, dl
jne 0x14002c56c
xor r15d, r15d
jmp 0x14002c58c
mov byte [r15 - 1], 0
mov al, byte [rbx]
cmp al, 0x23
je 0x14002c6a6
cmp al, 0x3b
je 0x14002c6a6
jmp 0x14002c5ad
cmp al, 0x20
jne 0x14002c5bf
mov al, byte [rdi]
inc rdi
inc rcx
inc rsi
cmp al, 0x1f
jg 0x14002c59e
cmp al, 9
je 0x14002c5a2
test al, al
je 0x14002c6a6
jmp 0x14002c5d8
cmp al, 0x5b
jne 0x14002c5d8
mov rdx, rdi
mov bl, byte [rdx]
cmp bl, 0x5d
jne 0x14002c5fd
inc rdx
inc rcx
inc rsi
jmp 0x14002c5c6
test r9b, 1
je 0x14002c6a6
lea r14, [rdi - 1]
mov rcx, r14
mov rsi, qword [rsp + 0x30]
cmp al, 0x3d
jne 0x14002c620
mov al, byte [rcx + 1]
inc rcx
inc rdi
jmp 0x14002c5ee
test bl, bl
jne 0x14002c609
xor r9d, r9d
jmp 0x14002c6a6
cmp bl, 0x5d
je 0x14002c645
mov bl, byte [rdx + 1]
inc rdx
inc rcx
inc rsi
test bl, bl
jne 0x14002c609
jmp 0x14002c660
test al, al
je 0x14002c6ab
cmp al, 0x3d
je 0x14002c6be
mov al, byte [rdi]
inc rdi
test al, al
jne 0x14002c628
mov dword [rsp + 0x40], r13d
xor edi, edi
jmp 0x14002c6c7
mov byte [rdx], 0
mov dl, byte [rcx]
cmp dl, 9
je 0x14002c654
cmp dl, 0x20
jne 0x14002c65c
inc rcx
inc rsi
jmp 0x14002c648
test dl, dl
jne 0x14002c672
mov rbx, qword [rsp + 0x58]
mov rcx, rdi
test rbx, rbx
je 0x14002c692
mov rdx, rbx
jmp 0x14002c695
cmp dl, 9
je 0x14002c70f
cmp dl, 0x20
je 0x14002c70f
mov dl, byte [rsi]
inc rsi
test dl, dl
jne 0x14002c672
jmp 0x14002c601
mov rdx, r8
mov rsi, r8
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov r8, rsi
test eax, eax
sete r9b
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
test r15, r15
jne 0x14002c538
jmp 0x14002c7d5
mov dword [rsp + 0x40], r13d
mov byte [rdi - 1], 0
mov r13, qword [rsp + 0x50]
cmp byte [r13], 0
je 0x14002c703
mov dword [rsp + 0x44], r9d
xor ebx, ebx
mov rcx, r14
mov rdx, r13
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14002c718
mov rcx, r13
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add r13, rax
inc r13
inc rbx
cmp byte [r13], 0
jne 0x14002c6da
jmp 0x14002c77b
mov rdi, qword [rsp + 0x38]
mov r13d, dword [rsp + 0x40]
jmp 0x14002c6b0
mov byte [rsi - 1], 0
jmp 0x14002c601
cmp ebx, ebp
jae 0x14002c776
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call fcn.14005896c
mov r13, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + rbx*8]
mov qword [rax + rbx*8], r13
test rcx, rcx
je 0x14002c757
call fcn.140058840
mov rcx, r13
mov rdx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov r13d, dword [rsp + 0x40]
inc r13d
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
jmp 0x14002c785
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r13d, dword [rsp + 0x40]
lea r8, [0x14009ef40]
mov r9d, dword [rsp + 0x44]
jmp 0x14002c6b0
movabs rax, 0x100000000
mov qword [r12 + 0x58], rax
xor r15d, r15d
jmp 0x14002c99d
movabs rax, 0x100000000
or rax, 6
mov qword [r12 + 0x58], rax
mov r15d, 6
jmp 0x14002c95e
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
xor eax, eax
cmp r13d, ebp
setne al
lea r15d, [rax + rax*4]
mov rcx, rdi
call fcn.140058840
mov rdi, qword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, r15d
bts rax, 0x20
mov qword [r12 + 0x58], rax
test r15d, r15d
jne 0x14002c95e
mov rbx, qword [r12 + 0x28]
mov r15, qword [r12 + 0x30]
cmp rbx, r15
je 0x14002c87c
mov rax, qword [rbx]
mov rbp, qword [rdi + rax*8]
test rbp, rbp
je 0x14002c876
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.14005896c
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 0x14002c866
call fcn.140058840
mov rsi, qword [r13]
mov rcx, rsi
mov rdx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rdi, qword [rsp + 0x48]
add rbx, 0x10
jmp 0x14002c817
mov rsi, qword [r12 + 0x40]
mov rax, qword [r12 + 0x48]
mov qword [rsp + 0x30], rax
cmp rsi, rax
je 0x14002c95b
mov rbp, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor r15d, r15d
mov rax, qword [rsi]
mov rbx, qword [rdi + rax*8]
test rbx, rbx
je 0x14002c94a
mov r12, 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 r14, rbp
call rbp
mov r13d, eax
movsxd rbp, eax
add rbp, rbp
mov rax, 0xffffffffffffffff
cmovb rbp, rax
mov rcx, rbp
call fcn.14005896c
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [r12]
mov qword [r12], rdi
test rcx, rcx
je 0x14002c91a
call fcn.140058840
mov rdi, qword [r12]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rdi
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
mov rbp, r14
call r14
test eax, eax
mov eax, 0x10
cmovle r15d, eax
mov rdi, qword [rsp + 0x48]
add rsi, 0x10
cmp rsi, qword [rsp + 0x30]
jne 0x14002c89e
jmp 0x14002c95e
xor r15d, r15d
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rdi]
test rsi, rsi
je 0x14002c98b
shl rsi, 3
mov rcx, qword [rdi + rsi]
mov qword [rdi + rsi], 0
test rcx, rcx
je 0x14002c985
call fcn.140058840
add rsi, 0xfffffffffffffff8
jne 0x14002c96f
mov rcx, rdi
call fcn.140058840
mov rcx, qword [rsp + 0x50]
call fcn.140058840
mov eax, r15d
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret