Function at 0x1000d68dc
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 0x1000d698e
test byte [rcx + 0x1c], r12b
je 0x1000d698e
cmp byte [rcx + 0x19], r12b
jb 0x1000d698e
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov edx, 0x48
call fcn.10001c7b8
mov rcx, rbx
call fcn.1000d4578
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 0x1000d69f9
mov eax, 8
jmp 0x1000d7289
lea rdx, [rdi + 1]
mov r8, rbp
mov rcx, rax
call fcn.100043e4c
cmp eax, r13d
jge 0x1000d6a1c
movzx eax, ax
mov rcx, rbx
mov dword [rsi], eax
call fcn.1000d4578
jmp 0x1000d69ef
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 0x1000d6a9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov rcx, qword [0x1001653b8]
lea rdx, [0x1001653b8]
cmp rcx, rdx
je 0x1000d69ef
test byte [rcx + 0x1c], r12b
je 0x1000d69ef
cmp byte [rcx + 0x19], 2
jb 0x1000d69ef
mov edx, 0x49
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov r9, rbp
mov dword [rsp + 0x20], eax
call fcn.10001daa4
jmp 0x1000d69ef
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x1000d6adb
test byte [rcx + 0x1c], r12b
je 0x1000d6adb
cmp byte [rcx + 0x19], r12b
jb 0x1000d6adb
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov edx, 0x4a
mov r9, rbp
mov qword [rsp + 0x20], rax
call fcn.100059300
mov rcx, qword [rbx]
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, r13d
jne 0x1000d6b31
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rsi], eax
call fcn.1000d4578
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000d69ef
test byte [rcx + 0x1c], r12b
je 0x1000d69ef
cmp byte [rcx + 0x19], 2
jb 0x1000d69ef
mov eax, dword [rsi]
mov edx, 0x4b
jmp 0x1000d6a83
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1000dc46c
mov edi, eax
cmp eax, r13d
je 0x1000d6b90
mov rcx, qword [0x1001653b8]
lea rdx, [0x1001653b8]
cmp rcx, rdx
je 0x1000d7268
test byte [rcx + 0x1c], r12b
je 0x1000d7268
cmp byte [rcx + 0x19], 2
jb 0x1000d7268
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov edx, 0x4c
mov r9d, eax
call fcn.10001c7dc
jmp 0x1000d7268
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 0x1000d6c68
test byte [rcx + 0x1c], r12b
je 0x1000d6c68
cmp byte [rcx + 0x19], r12b
jb 0x1000d6c68
mov rax, qword [rbx + 0x18]
mov r9, qword [rbx + 8]
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x4c]
lea r8, [0x100003188]
mov qword [rsp + 0x20], rax
call fcn.100059300
cmp qword [rbx + 0x50], r13
je 0x1000d7274
cmp qword [rbx + 0x58], r13
je 0x1000d7274
cmp qword [rbx + 0x60], r13
je 0x1000d7274
mov rax, qword [rbx + 0xc8]
cmp rax, r13
je 0x1000d7274
mov rcx, qword [rbx + 0x100]
cmp rcx, r13
je 0x1000d7274
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 0x1000d725b
cmp rax, r13
je 0x1000d725b
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.1000dce10
mov edi, eax
test eax, eax
je 0x1000d6db4
mov rcx, rbx
call fcn.1000d4578
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000d7270
test byte [rcx + 0x1c], 4
je 0x1000d7270
cmp byte [rcx + 0x19], 2
jb 0x1000d7270
mov edx, 0x4e
mov eax, dword [rsi]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov r9d, edi
mov dword [rsp + 0x20], eax
call fcn.10001e8b4
jmp 0x1000d7270
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 0x1000d6e7b
lea rdx, [rsp + 0xb0]
mov r9, rsi
mov rcx, rbx
call fcn.1000ddbb4
mov rcx, rbx
mov edi, eax
test eax, eax
je 0x1000d6e26
call fcn.1000d4578
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000d7270
test byte [rcx + 0x1c], 4
je 0x1000d7270
cmp byte [rcx + 0x19], 2
jb 0x1000d7270
mov edx, 0x4f
jmp 0x1000d6d96
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0xb0]
call fcn.1000ddf00
mov edi, eax
test eax, eax
je 0x1000d6e74
mov rcx, rbx
call fcn.1000d4578
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000d7270
test byte [rcx + 0x1c], 4
je 0x1000d7270
cmp byte [rcx + 0x19], 2
jb 0x1000d7270
mov edx, 0x50
jmp 0x1000d6d96
mov rbp, qword [rsp + 0x58]
jmp 0x1000d6e7f
mov rbp, qword [r12]
mov r10, qword [0x1001653b8]
lea rdi, [0x1001653b8]
mov r14b, 4
cmp r10, rdi
je 0x1000d6ed0
test byte [r10 + 0x1c], r14b
je 0x1000d6ed0
cmp byte [r10 + 0x19], r14b
jb 0x1000d6ed0
mov rax, qword [r12]
movzx r9d, byte [r13]
mov rcx, qword [r10 + 0x10]
mov qword [rsp + 0x28], rax
lea r8, [0x100003188]
mov edx, 0x51
mov qword [rsp + 0x20], rbp
call fcn.1000d3fe8
mov r10, qword [0x1001653b8]
movabs rax, 0x1fdffe00000
cmp rbp, rax
jg 0x1000d720e
cmp rbp, qword [r12]
jg 0x1000d720e
cmp byte [rbx + 0x48], 0
mov r9d, 0x600
mov dword [rbx + 0xb4], r9d
je 0x1000d6f49
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 0x1000d6f76
test byte [rcx + 0x1c], r14b
je 0x1000d6f76
cmp byte [rcx + 0x19], r14b
jb 0x1000d6f76
mov edx, 0x53
mov r9d, eax
jmp 0x1000d6f66
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000d6f76
test byte [rcx + 0x1c], r14b
je 0x1000d6f76
cmp byte [rcx + 0x19], r14b
jb 0x1000d6f76
mov edx, 0x54
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
call fcn.10001c7dc
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 0x1000d6fb0
mov eax, dword [rbx + 0xb4]
shr eax, 9
lea r9d, [rax + rcx + 1]
jmp 0x1000d6fbe
mov r9d, dword [rbx + 0xb4]
shr r9d, 9
add r9d, ecx
mov dword [rbx + 0xb8], r9d
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000d6ff8
test byte [rcx + 0x1c], r14b
je 0x1000d6ff8
cmp byte [rcx + 0x19], r14b
jb 0x1000d6ff8
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov edx, 0x55
call fcn.10001c7dc
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 0x1000d703f
mov dword [rbx + 0xac], 0x10000
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000d7079
test byte [rcx + 0x1c], r14b
je 0x1000d7079
cmp byte [rcx + 0x19], r14b
jb 0x1000d7079
mov r9d, dword [rbx + 0xac]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov edx, 0x56
call fcn.10001c7dc
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 0x1000d70d8
test byte [rcx + 0x1c], r14b
je 0x1000d70d8
cmp byte [rcx + 0x19], r14b
jb 0x1000d70d8
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov edx, 0x57
call fcn.10001c7dc
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.1000dd8b4
mov rcx, qword [rsp + 0x60]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x1000d7164
mov rcx, rbx
call fcn.1000d4578
mov rcx, qword [0x1001653b8]
lea rdx, [0x1001653b8]
cmp rcx, rdx
je 0x1000d7270
test byte [rcx + 0x1c], r14b
je 0x1000d7270
cmp byte [rcx + 0x19], 2
jb 0x1000d7270
mov edx, 0x58
jmp 0x1000d6d96
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x58]
mov qword [rbx + 0x88], rax
mov dword [rbx + 0x90], ecx
test r15, r15
je 0x1000d7193
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x1000d7193
mov qword [r15], rax
mov dword [rdx], ecx
jmp 0x1000d71ce
mov rcx, qword [0x1001653b8]
lea rdx, [0x1001653b8]
cmp rcx, rdx
je 0x1000d71c7
test byte [rcx + 0x1c], r14b
je 0x1000d71c7
cmp byte [rcx + 0x19], r14b
jb 0x1000d71c7
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov edx, 0x59
call fcn.10001c7b8
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 0x1000d7289
cmp r10, rdi
je 0x1000d7254
test byte [r10 + 0x1c], r14b
je 0x1000d7254
cmp byte [r10 + 0x19], 2
jb 0x1000d7254
mov rcx, qword [r12]
mov eax, dword [r12]
mov r9, rbp
sar rcx, 0x20
mov dword [rsp + 0x30], eax
lea r8, [0x100003188]
mov dword [rsp + 0x28], ecx
mov rcx, qword [r10 + 0x10]
sar r9, 0x20
mov edx, 0x52
mov dword [rsp + 0x20], ebp
call fcn.10001e8fc
mov edi, 2
jmp 0x1000d7268
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 3
mov dword [rsi], eax
mov rcx, rbx
call fcn.1000d4578
mov eax, edi
jmp 0x1000d7289
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rsi], eax
call fcn.1000d4578
mov eax, 3
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.10014e480
add rsp, 0x2c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret