Function at 0x1000d0144
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x220
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x210], rax
xor edi, edi
mov rsi, rcx
mov rbx, r8
mov r12, rdx
mov dword [r8], edi
mov ebp, 0x180
lea rcx, [rsp + 0x90]
mov r8, rbp
xor edx, edx
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x54], edi
mov qword [rsp + 0x70], rdi
call sub.msvcrt.dll_memset
xor r11d, r11d
xor eax, eax
mov qword [rsp + 0x60], r11
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov rcx, qword [0x1001653b8]
lea r14, [0x1001653b8]
lea r15, [0x100003158]
mov r13b, 4
cmp rcx, r14
je 0x1000d01f3
test byte [rcx + 0x1c], r13b
je 0x1000d01f3
cmp byte [rcx + 0x19], r13b
jb 0x1000d01f3
mov rcx, qword [rcx + 0x10]
mov edx, ebp
mov r8, r15
call fcn.10001c854
or qword [rsp + 0x68], 0xffffffffffffffff
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.1000d6a30
mov ebp, eax
cmp eax, edi
je 0x1000d03b6
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d0285
test byte [rcx + 0x1c], r13b
je 0x1000d0285
cmp byte [rcx + 0x19], r13b
jb 0x1000d0285
mov eax, dword [rbx]
mov rcx, qword [rcx + 0x10]
mov edx, 0x181
mov dword [rsp + 0x28], eax
mov r9, rsi
mov r8, r15
mov dword [rsp + 0x20], ebp
call fcn.10001e4b0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rsi
mov dword [rsp + 0x28], 0x60000080
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1000d0309
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x90]
mov dword [rbx], eax
call fcn.1000d46cc
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d02ff
test byte [rcx + 0x1c], r13b
je 0x1000d02ff
cmp byte [rcx + 0x19], 2
jb 0x1000d02ff
mov edx, 0x182
mov eax, dword [rbx]
mov rcx, qword [rcx + 0x10]
mov r9, rsi
mov r8, r15
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
mov eax, 8
jmp 0x1000d0470
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1000d0358
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x90]
call fcn.1000d46cc
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d02ff
test byte [rcx + 0x1c], r13b
je 0x1000d02ff
cmp byte [rcx + 0x19], 2
jb 0x1000d02ff
mov edx, 0x183
jmp 0x1000d02ea
mov rbx, qword [rsp + 0x60]
test rbx, rbx
jne 0x1000d03ab
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d038e
test byte [rcx + 0x1c], r13b
je 0x1000d038e
cmp byte [rcx + 0x19], 2
jb 0x1000d038e
mov rcx, qword [rcx + 0x10]
mov edx, 0x184
mov r9, rsi
mov r8, r15
call fcn.10001db08
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x90]
call fcn.1000d46cc
mov eax, ebp
jmp 0x1000d0470
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000d03fd
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d03e4
test byte [rcx + 0x1c], r13b
je 0x1000d03e4
cmp byte [rcx + 0x19], r13b
jb 0x1000d03e4
mov r9d, dword [rsp + 0x54]
mov rcx, qword [rcx + 0x10]
mov edx, 0x185
mov r8, r15
call fcn.10001c878
cmp byte [rsp + 0x50], dil
je 0x1000d03f5
mov rbx, qword [rsp + 0xa8]
jmp 0x1000d03fd
mov ebx, dword [rsp + 0x54]
shl rbx, 0x15
mov qword [r12], rbx
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d042d
test byte [rcx + 0x1c], r13b
je 0x1000d042d
cmp byte [rcx + 0x19], r13b
jb 0x1000d042d
mov rcx, qword [rcx + 0x10]
mov edx, 0x186
mov r9, rbx
mov r8, r15
call fcn.10001d71c
lea rcx, [rsp + 0x90]
call fcn.1000d46cc
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d046e
test byte [rcx + 0x1c], r13b
je 0x1000d046e
cmp byte [rcx + 0x19], r13b
jb 0x1000d046e
mov rcx, qword [rcx + 0x10]
mov edx, 0x187
mov r8, r15
call fcn.10001c854
xor eax, eax
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.10014e600
mov rbx, qword [rsp + 0x278]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret