Function at 0x1401549b0
Capabilities:
Get file attributes

Disassembly:
push rbp
push rbx
push rdi
push r12
push r14
lea rbp, [rsp - 0x2190]
mov eax, 0x2290
call fcn.140130110
sub rsp, rax
mov rax, qword [0x1402922b8]
xor rax, rsp
mov qword [rbp + 0x2180], rax
mov r14, rcx
mov dword [rsp + 0x30], 0x10000
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x140154aba
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtQueryObject
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rdi, rdi
je 0x140154aba
test rax, rax
je 0x140154aba
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140154aee
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbx
mov ecx, 0x10
call rdi
test eax, eax
jns 0x140154aee
cmp eax, 0xc0000004
jne 0x140154ab1
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 0x1ffffe
ja 0x140154ab1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rsp + 0x30]
lea ecx, [rax*4]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
mov ecx, edx
mov dword [rsp + 0x30], edx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x140154a50
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r9, qword [r14]
lea rdx, str._info_currently_unavailable_for_this_platform_or_process__r_n
xor r8d, r8d
mov rcx, r14
call qword [r9 + 0x70]
xor al, al
mov rcx, qword [rbp + 0x2180]
xor rcx, rsp
call fcn.14012fd90
add rsp, 0x2290
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret
mov qword [rsp + 0x22d0], r13
mov qword [rsp + 0x22d8], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor r13d, r13d
mov r15d, eax
mov edi, r13d
cmp dword [rbx], r13d
jbe 0x140154c84
mov qword [rsp + 0x22c8], rsi
nop
mov eax, edi
lea rcx, [rax + rax*2]
cmp dword [rbx + rcx*8 + 8], r15d
lea rdx, [rbx + rcx*8]
jne 0x140154c72
movzx eax, byte [rdx + 0xc]
cmp al, 0x1c
je 0x140154b45
cmp al, 0x19
jne 0x140154c72
mov ecx, dword [rdx + 0x18]
cmp ecx, 0x12019f
je 0x140154c72
cmp ecx, 0x1a019f
je 0x140154c72
cmp ecx, 0x120189
je 0x140154c72
cmp ecx, 0x160001
je 0x140154c72
lea eax, [rcx - 0x100000]
cmp eax, 1
jbe 0x140154c72
cmp ecx, 0x100020
je 0x140154c72
movzx esi, word [rdx + 0xe]
lea r8, [rbp + 0x170]
xor eax, eax
mov dword [rsp + 0x34], r13d
mov qword [rsp + 0x40], rax
mov r9d, 0x2000
mov qword [rsp + 0x48], rax
mov edx, 2
mov qword [rsp + 0x50], rax
mov ecx, esi
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
call r12
test eax, eax
js 0x140154c72
cmp word [rbp + 0x170], 8
jne 0x140154c72
mov rax, qword [rbp + 0x178]
lea rdx, str.File
mov rcx, qword [rax]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x4a], r13w
call fcn.14004c8a0
test eax, eax
jne 0x140154c72
lea r9, [rsp + 0x38]
mov qword [rsp + 0x38], r13
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov ecx, esi
call fcn.1401532d0
test al, al
je 0x140154c72
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r10, qword [r14]
lea r9, str.file
mov r8, qword [rsp + 0x38]
lea rdx, str.Size:__9I64u_Type:__4s_Path:__ls_r_n
test al, 0x10
mov rcx, r14
lea rax, [0x140237f74]
cmovne r9, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [r10 + 0x78]
inc edi
cmp edi, dword [rbx]
jb 0x140154b20
mov rsi, qword [rsp + 0x22c8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r15, qword [rsp + 0x22d8]
mov al, 1
mov r13, qword [rsp + 0x22d0]
jmp 0x140154ad0