Function at 0x140096e60
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x508
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401f3f10]
xor rax, rbp
mov qword [rbp + 0x4c0], rax
mov rax, qword [rbp + 0x4f0]
cmp qword [rax + 0x90], 0
jne 0x140096ea0
xor eax, eax
jmp 0x140097566
mov r8d, 0x26c
mov rax, qword [rbp + 0x4f0]
mov rdx, qword [rax + 0x90]
mov rax, qword [rbp + 0x4f0]
mov ecx, dword [rax]
call qword [sym.imp.MSVCR120.dll__read]
cdqe
cmp rax, 0x26c
je 0x140096ee2
mov rax, qword [rbp + 0x4f0]
mov dword [rax + 8], 1
xor eax, eax
jmp 0x140097566
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x4f0]
call fcn.140097690
mov byte [rbp + 0x90], 0
lea rax, [rbp + 0x91]
mov rdi, rax
xor eax, eax
mov ecx, 0xf
rep stosb byte [rdi], al
cmp dword [rbp + 0x4f8], 0
je 0x1400973bc
call fcn.140015130
mov dword [rbp + 0x10], eax
mov rax, qword [rbp + 0x4f0]
add rax, 0x48
mov rcx, rax
call fcn.140030730
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140096f4d
mov qword [rbp + 0x48], 0
jmp 0x140096fce
mov rcx, qword [rbp + 8]
call qword [sym.imp.MSVCR120.dll_wcslen]
inc eax
mov dword [rbp], eax
cmp dword [rbp], 0x3fffffff
jle 0x140096f6f
mov qword [rbp + 0x40], 0
jmp 0x140096fc6
movsxd rax, dword [rbp]
shl rax, 1
mov qword [rbp + 0x68], rax
movsxd rcx, dword [rbp]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x140096f97
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.14010f740
sub rsp, rax
lea rax, [rsp + 0x30]
mov r9d, dword [rbp + 0x10]
mov rcx, qword [rbp + 0x68]
mov r8d, ecx
mov rdx, qword [rbp + 8]
mov rcx, rax
call fcn.14002ec40
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x4f0]
add rax, 0x30
mov rcx, rax
call fcn.140030730
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140096ff9
mov qword [rbp + 0x38], 0
jmp 0x140097080
mov rcx, qword [rbp + 8]
call qword [sym.imp.MSVCR120.dll_wcslen]
inc eax
mov dword [rbp], eax
cmp dword [rbp], 0x3fffffff
jle 0x14009701b
mov qword [rbp + 0x60], 0
jmp 0x140097078
movsxd rax, dword [rbp]
shl rax, 1
mov qword [rbp + 0x88], rax
movsxd rcx, dword [rbp]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x140097046
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.14010f740
sub rsp, rax
lea rax, [rsp + 0x30]
mov r9d, dword [rbp + 0x10]
mov rcx, qword [rbp + 0x88]
mov r8d, ecx
mov rdx, qword [rbp + 8]
mov rcx, rax
call fcn.14002ec40
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x38]
mov r8d, 0x400
lea rdx, [0x14015f8d4]
lea rcx, [rbp + 0xc0]
call fcn.1400979b0
lea rcx, [rbp + 0xc0]
call sub.MSVCR120.dll_strlen
mov eax, eax
lea r8, [rbp + 0x90]
mov edx, eax
lea rcx, [rbp + 0xc0]
call fcn.14007d710
mov rax, qword [rbp + 0x4f0]
mov rax, qword [rax + 0x90]
add rax, 0x18
mov r8d, 0x10
mov rdx, rax
lea rcx, [rbp + 0x90]
call sub.MSVCR120.dll_memcmp
test eax, eax
je 0x1400973bc
xor r8d, r8d
mov edx, 1
mov rcx, qword [rbp + 0x4f0]
call fcn.140097690
mov r8d, 1
xor edx, edx
mov rcx, qword [rbp + 0x4f0]
call fcn.140097690
mov rax, qword [rbp + 0x4f0]
add rax, 0x48
mov rcx, rax
call fcn.140030730
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14009714b
mov qword [rbp + 0x18], 0
jmp 0x1400971d2
mov rcx, qword [rbp + 8]
call qword [sym.imp.MSVCR120.dll_wcslen]
inc eax
mov dword [rbp], eax
cmp dword [rbp], 0x3fffffff
jle 0x14009716d
mov qword [rbp + 0x58], 0
jmp 0x1400971ca
movsxd rax, dword [rbp]
shl rax, 1
mov qword [rbp + 0x80], rax
movsxd rcx, dword [rbp]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x140097198
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.14010f740
sub rsp, rax
lea rax, [rsp + 0x30]
mov r9d, dword [rbp + 0x10]
mov rcx, qword [rbp + 0x80]
mov r8d, ecx
mov rdx, qword [rbp + 8]
mov rcx, rax
call fcn.14002ec40
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x4f0]
add rax, 0x30
mov rcx, rax
call fcn.140030730
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400971fd
mov qword [rbp + 0x50], 0
jmp 0x14009727e
mov rcx, qword [rbp + 8]
call qword [sym.imp.MSVCR120.dll_wcslen]
inc eax
mov dword [rbp], eax
cmp dword [rbp], 0x3fffffff
jle 0x14009721f
mov qword [rbp + 0x28], 0
jmp 0x140097276
movsxd rax, dword [rbp]
shl rax, 1
mov qword [rbp + 0x78], rax
movsxd rcx, dword [rbp]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x140097247
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.14010f740
sub rsp, rax
lea rax, [rsp + 0x30]
mov r9d, dword [rbp + 0x10]
mov rcx, qword [rbp + 0x78]
mov r8d, ecx
mov rdx, qword [rbp + 8]
mov rcx, rax
call fcn.14002ec40
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x4f0]
add rax, 0x18
mov rcx, rax
call fcn.140030730
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400972a9
mov qword [rbp + 0x20], 0
jmp 0x14009732a
mov rcx, qword [rbp + 8]
call qword [sym.imp.MSVCR120.dll_wcslen]
inc eax
mov dword [rbp], eax
cmp dword [rbp], 0x3fffffff
jle 0x1400972cb
mov qword [rbp + 0x30], 0
jmp 0x140097322
movsxd rax, dword [rbp]
shl rax, 1
mov qword [rbp + 0x70], rax
movsxd rcx, dword [rbp]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x1400972f3
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.14010f740
sub rsp, rax
lea rax, [rsp + 0x30]
mov r9d, dword [rbp + 0x10]
mov rcx, qword [rbp + 0x70]
mov r8d, ecx
mov rdx, qword [rbp + 8]
mov rcx, rax
call fcn.14002ec40
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x20]
mov r8d, 0x400
lea rdx, str._s:_s:_s
lea rcx, [rbp + 0xc0]
call fcn.1400979b0
lea rcx, [rbp + 0xc0]
call sub.MSVCR120.dll_strlen
mov eax, eax
lea r8, [rbp + 0x90]
mov edx, eax
lea rcx, [rbp + 0xc0]
call fcn.14007d710
mov rax, qword [rbp + 0x4f0]
mov rax, qword [rax + 0x90]
add rax, 0x18
mov r8d, 0x10
mov rdx, rax
lea rcx, [rbp + 0x90]
call sub.MSVCR120.dll_memcmp
test eax, eax
je 0x1400973bc
mov rax, qword [rbp + 0x4f0]
mov dword [rax + 8], 1
xor eax, eax
jmp 0x140097566
mov rax, qword [rbp + 0x4f0]
mov rax, qword [rax + 0x90]
mov r8d, 0x10
mov rdx, rax
lea rcx, [rbp + 0x90]
call sub.MSVCR120.dll_memcpy
mov rax, qword [rbp + 0x4f0]
mov rax, qword [rax + 0x90]
mov r8d, 0x10
xor edx, edx
mov rcx, rax
call sub.MSVCR120.dll_memset
lea r8, [rbp + 0xb0]
mov edx, 0x26c
mov rax, qword [rbp + 0x4f0]
mov rcx, qword [rax + 0x90]
call fcn.14007d710
mov r8d, 0x10
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x90]
call sub.MSVCR120.dll_memcmp
test eax, eax
je 0x140097524
cmp dword [rbp + 0x4f8], 0
jne 0x140097524
mov rax, qword [rbp + 0x4f0]
mov rax, qword [rax + 0x90]
mov r8d, 0x10
lea rdx, [rbp + 0x90]
mov rcx, rax
call sub.MSVCR120.dll_memcpy
xor r8d, r8d
mov edx, 1
mov rcx, qword [rbp + 0x4f0]
call fcn.140097690
mov r8d, 1
xor edx, edx
mov rcx, qword [rbp + 0x4f0]
call fcn.140097690
mov rax, qword [rbp + 0x4f0]
mov rax, qword [rax + 0x90]
mov r8d, 0x10
mov rdx, rax
lea rcx, [rbp + 0x90]
call sub.MSVCR120.dll_memcpy
mov rax, qword [rbp + 0x4f0]
mov rax, qword [rax + 0x90]
mov r8d, 0x10
xor edx, edx
mov rcx, rax
call sub.MSVCR120.dll_memset
lea r8, [rbp + 0xa0]
mov edx, 0x26c
mov rax, qword [rbp + 0x4f0]
mov rcx, qword [rax + 0x90]
call fcn.14007d710
mov r8d, 0x10
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x90]
call sub.MSVCR120.dll_memcmp
test eax, eax
je 0x140097524
mov rax, qword [rbp + 0x4f0]
mov dword [rax + 8], 1
xor eax, eax
jmp 0x140097566
mov rax, qword [rbp + 0x4f0]
mov rax, qword [rax + 0x90]
mov rcx, qword [rbp + 0x4f0]
mov rax, qword [rax + 0x28]
mov qword [rcx + 0x78], rax
mov rax, qword [rbp + 0x4f0]
mov rax, qword [rax + 0x90]
mov rcx, qword [rbp + 0x4f0]
mov rax, qword [rax + 0x30]
mov qword [rcx + 0x80], rax
mov eax, 1
mov rcx, qword [rbp + 0x4c0]
xor rcx, rbp
call fcn.14010f170
lea rsp, [rbp + 0x4d8]
pop rdi
pop rbp
ret