Function at 0x1000d6a30
Capabilities:
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c8
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rax, qword [rsp + 0x330]
mov r15, qword [rsp + 0x340]
mov r14, qword [rsp + 0x350]
mov rsi, qword [rsp + 0x358]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x338]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x348]
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x70], r8
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x68], rax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
mov r12b, 4
cmp rcx, rax
je 0x1000d6ae2
test byte [rcx + 0x1c], r12b
je 0x1000d6ae2
cmp byte [rcx + 0x19], r12b
jb 0x1000d6ae2
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov edx, 0x48
call fcn.10001c854
mov rcx, rbx
call fcn.1000d46cc
xor eax, eax
lea rcx, [rsp + 0xb0]
xor r13d, r13d
xor edx, edx
mov r8d, 0x200
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rax
mov byte [rbx + 0x17c], r13b
call sub.msvcrt.dll_memset
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx + rcx]
lea rdi, [rcx - 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx + 8], rax
cmp rax, r13
jne 0x1000d6b4d
mov eax, 8
jmp 0x1000d73dd
lea rdx, [rdi + 1]
mov r8, rbp
mov rcx, rax
call fcn.1000c23ac
cmp eax, r13d
jge 0x1000d6b70
movzx eax, ax
mov rcx, rbx
mov dword [rsi], eax
call fcn.1000d46cc
jmp 0x1000d6b43
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbp
mov dword [rsp + 0x28], 0x60000080
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1000d6bf3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov rcx, qword [0x1001653b8]
lea rdx, [0x1001653b8]
cmp rcx, rdx
je 0x1000d6b43
test byte [rcx + 0x1c], r12b
je 0x1000d6b43
cmp byte [rcx + 0x19], 2
jb 0x1000d6b43
mov edx, 0x49
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov r9, rbp
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
jmp 0x1000d6b43
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x1000d6c2f
test byte [rcx + 0x1c], r12b
je 0x1000d6c2f
cmp byte [rcx + 0x19], r12b
jb 0x1000d6c2f
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov edx, 0x4a
mov r9, rbp
mov qword [rsp + 0x20], rax
call fcn.10001e82c
mov rcx, qword [rbx]
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, r13d
jne 0x1000d6c85
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rsi], eax
call fcn.1000d46cc
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000d6b43
test byte [rcx + 0x1c], r12b
je 0x1000d6b43
cmp byte [rcx + 0x19], 2
jb 0x1000d6b43
mov eax, dword [rsi]
mov edx, 0x4b
jmp 0x1000d6bd7
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1000dc5c0
mov edi, eax
cmp eax, r13d
je 0x1000d6ce4
mov rcx, qword [0x1001653b8]
lea rdx, [0x1001653b8]
cmp rcx, rdx
je 0x1000d73bc
test byte [rcx + 0x1c], r12b
je 0x1000d73bc
cmp byte [rcx + 0x19], 2
jb 0x1000d73bc
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov edx, 0x4c
mov r9d, eax
call fcn.10001c878
jmp 0x1000d73bc
mov rax, qword [rsp + 0x80]
mov edi, 1
mov edx, 0x10024
xor ecx, ecx
mov qword [rbx + 0x168], r13
mov qword [rbx + 0x38], r13
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x40], r13
mov byte [rbx + 0x49], dil
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, 0x10000
xor ecx, ecx
mov rdx, rbp
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdx, rbp
xor ecx, ecx
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, 0x10200
xor ecx, ecx
mov dword [rbx + 0x68], r13d
mov dword [rbx + 0xa8], r13d
mov qword [rbx + 0x60], rax
mov byte [rbx + 0xc0], r13b
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, 0x20000
xor ecx, ecx
mov byte [rbx + 0xf8], r13b
mov qword [rbx + 0xc8], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx + 0x100], rax
mov rcx, qword [0x1001653b8]
lea rbp, [0x1001653b8]
cmp rcx, rbp
je 0x1000d6dbc
test byte [rcx + 0x1c], r12b
je 0x1000d6dbc
cmp byte [rcx + 0x19], r12b
jb 0x1000d6dbc
mov rax, qword [rbx + 0x18]
mov r9, qword [rbx + 8]
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x4c]
lea r8, [0x100003148]
mov qword [rsp + 0x20], rax
call fcn.10001e82c
cmp qword [rbx + 0x50], r13
je 0x1000d73c8
cmp qword [rbx + 0x58], r13
je 0x1000d73c8
cmp qword [rbx + 0x60], r13
je 0x1000d73c8
mov rax, qword [rbx + 0xc8]
cmp rax, r13
je 0x1000d73c8
mov rcx, qword [rbx + 0x100]
cmp rcx, r13
je 0x1000d73c8
add rax, 0xffff
mov rdx, 0xffffffffffff0000
xor r9d, r9d
and rax, rdx
xor r8d, r8d
mov qword [rbx + 0xd0], rax
lea rax, [rcx + 0xffff]
xor ecx, ecx
and rax, rdx
mov edx, edi
mov qword [rbx + 0x108], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
mov qword [rbx + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x128], rax
cmp qword [rbx + 0xf0], r13
je 0x1000d73af
cmp rax, r13
je 0x1000d73af
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r14
mov qword [rbx + 0x130], r13
lea rax, [rbx + 0x140]
lea r13, [rbx + 0x30]
lea r12, [rbx + 0x28]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x54]
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r12
mov qword [rbx + 0x138], rdi
call fcn.1000dcf64
mov edi, eax
test eax, eax
je 0x1000d6f08
mov rcx, rbx
call fcn.1000d46cc
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000d73c4
test byte [rcx + 0x1c], 4
je 0x1000d73c4
cmp byte [rcx + 0x19], 2
jb 0x1000d73c4
mov edx, 0x4e
mov eax, dword [rsi]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov r9d, edi
mov dword [rsp + 0x20], eax
call fcn.10001d914
jmp 0x1000d73c4
mov r8b, byte [rsp + 0x50]
xor eax, eax
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x78], rax
and dword [rbx + 0x80], eax
mov byte [rbx + 0x48], r8b
cmp byte [r13], al
je 0x1000d6fcf
lea rdx, [rsp + 0xb0]
mov r9, rsi
mov rcx, rbx
call fcn.1000ddd08
mov rcx, rbx
mov edi, eax
test eax, eax
je 0x1000d6f7a
call fcn.1000d46cc
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000d73c4
test byte [rcx + 0x1c], 4
je 0x1000d73c4
cmp byte [rcx + 0x19], 2
jb 0x1000d73c4
mov edx, 0x4f
jmp 0x1000d6eea
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0xb0]
call fcn.1000de054
mov edi, eax
test eax, eax
je 0x1000d6fc8
mov rcx, rbx
call fcn.1000d46cc
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000d73c4
test byte [rcx + 0x1c], 4
je 0x1000d73c4
cmp byte [rcx + 0x19], 2
jb 0x1000d73c4
mov edx, 0x50
jmp 0x1000d6eea
mov rbp, qword [rsp + 0x58]
jmp 0x1000d6fd3
mov rbp, qword [r12]
mov r10, qword [0x1001653b8]
lea rdi, [0x1001653b8]
mov r14b, 4
cmp r10, rdi
je 0x1000d7024
test byte [r10 + 0x1c], r14b
je 0x1000d7024
cmp byte [r10 + 0x19], r14b
jb 0x1000d7024
mov rax, qword [r12]
movzx r9d, byte [r13]
mov rcx, qword [r10 + 0x10]
mov qword [rsp + 0x28], rax
lea r8, [0x100003148]
mov edx, 0x51
mov qword [rsp + 0x20], rbp
call fcn.1000d413c
mov r10, qword [0x1001653b8]
movabs rax, 0x1fdffe00000
cmp rbp, rax
jg 0x1000d7362
cmp rbp, qword [r12]
jg 0x1000d7362
cmp byte [rbx + 0x48], 0
mov r9d, 0x600
mov dword [rbx + 0xb4], r9d
je 0x1000d709d
lea rax, [rbp + 0xffff]
cqo
movzx edx, dx
add rax, rdx
sar rax, 0x10
add eax, 0x107f
shr eax, 0xc
add eax, 3
shl eax, 9
mov dword [rbx + 0xb4], eax
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000d70ca
test byte [rcx + 0x1c], r14b
je 0x1000d70ca
cmp byte [rcx + 0x19], r14b
jb 0x1000d70ca
mov edx, 0x53
mov r9d, eax
jmp 0x1000d70ba
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000d70ca
test byte [rcx + 0x1c], r14b
je 0x1000d70ca
cmp byte [rcx + 0x19], r14b
jb 0x1000d70ca
mov edx, 0x54
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
call fcn.10001c878
mov rax, qword [r12]
mov r8d, 0x1fffff
add rax, r8
cqo
and rdx, r8
add rax, rdx
sar rax, 0x15
lea ecx, [rax*4 + 0x1ff]
shr ecx, 9
cmp byte [r13], 0
je 0x1000d7104
mov eax, dword [rbx + 0xb4]
shr eax, 9
lea r9d, [rax + rcx + 1]
jmp 0x1000d7112
mov r9d, dword [rbx + 0xb4]
shr r9d, 9
add r9d, ecx
mov dword [rbx + 0xb8], r9d
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000d714c
test byte [rcx + 0x1c], r14b
je 0x1000d714c
cmp byte [rcx + 0x19], r14b
jb 0x1000d714c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov edx, 0x55
call fcn.10001c878
mov r8d, 0x1fffff
mov rax, qword [r12]
mov ecx, 0xffff
mov qword [rbx + 0x20], rbp
add rax, r8
cqo
and rdx, r8
add rax, rdx
sar rax, 0x15
mov dword [rbx + 0xbc], eax
mov rax, rbp
cqo
and rdx, rcx
add rax, rdx
and rax, rcx
sub rax, rdx
mov dword [rbx + 0xac], eax
test eax, eax
jne 0x1000d7193
mov dword [rbx + 0xac], 0x10000
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000d71cd
test byte [rcx + 0x1c], r14b
je 0x1000d71cd
cmp byte [rcx + 0x19], r14b
jb 0x1000d71cd
mov r9d, dword [rbx + 0xac]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov edx, 0x56
call fcn.10001c878
mov r8d, 0x1fffff
mov al, byte [r13]
neg al
mov rax, qword [rbx + 0x20]
sbb rcx, rcx
and ecx, 0x10000
lea rax, [rcx + rax + 0x1fffff]
cqo
and rdx, r8
lea r9, [rdx + rax]
sar r9, 0x15
dec r9d
mov dword [rbx + 0xb0], r9d
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000d722c
test byte [rcx + 0x1c], r14b
je 0x1000d722c
cmp byte [rcx + 0x19], r14b
jb 0x1000d722c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov edx, 0x57
call fcn.10001c878
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x58]
mov r9, rbp
mov rcx, rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
call fcn.1000dda08
mov rcx, qword [rsp + 0x60]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x1000d72b8
mov rcx, rbx
call fcn.1000d46cc
mov rcx, qword [0x1001653b8]
lea rdx, [0x1001653b8]
cmp rcx, rdx
je 0x1000d73c4
test byte [rcx + 0x1c], r14b
je 0x1000d73c4
cmp byte [rcx + 0x19], 2
jb 0x1000d73c4
mov edx, 0x58
jmp 0x1000d6eea
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x58]
mov qword [rbx + 0x88], rax
mov dword [rbx + 0x90], ecx
test r15, r15
je 0x1000d72e7
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x1000d72e7
mov qword [r15], rax
mov dword [rdx], ecx
jmp 0x1000d7322
mov rcx, qword [0x1001653b8]
lea rdx, [0x1001653b8]
cmp rcx, rdx
je 0x1000d731b
test byte [rcx + 0x1c], r14b
je 0x1000d731b
cmp byte [rcx + 0x19], r14b
jb 0x1000d731b
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov edx, 0x59
call fcn.10001c854
mov byte [rbx + 0x94], 1
mov rax, qword [rbx + 0x20]
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0x70]
movdqu xmm0, xmmword [rsp + 0x98]
mov qword [rcx], rax
mov rax, qword [rbx]
mov qword [rdx], rax
mov al, byte [rbx + 0x48]
mov rdx, qword [rsp + 0x78]
mov byte [rdx], al
mov rax, qword [rsp + 0x88]
mov qword [rcx], rbp
movdqu xmmword [rax], xmm0
xor eax, eax
jmp 0x1000d73dd
cmp r10, rdi
je 0x1000d73a8
test byte [r10 + 0x1c], r14b
je 0x1000d73a8
cmp byte [r10 + 0x19], 2
jb 0x1000d73a8
mov rcx, qword [r12]
mov eax, dword [r12]
mov r9, rbp
sar rcx, 0x20
mov dword [rsp + 0x30], eax
lea r8, [0x100003148]
mov dword [rsp + 0x28], ecx
mov rcx, qword [r10 + 0x10]
sar r9, 0x20
mov edx, 0x52
mov dword [rsp + 0x20], ebp
call fcn.10009ab38
mov edi, 2
jmp 0x1000d73bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 3
mov dword [rsi], eax
mov rcx, rbx
call fcn.1000d46cc
mov eax, edi
jmp 0x1000d73dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rsi], eax
call fcn.1000d46cc
mov eax, 3
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.10014e600
add rsp, 0x2c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret