Function at 0x1000d56d8
Capabilities:
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x498
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, r9
mov r12, r8
mov rsi, rdx
mov rbp, rcx
mov rcx, qword [0x1001653b8]
lea r14, [0x1001653b8]
lea r15, [0x100003148]
mov r13b, 4
cmp rcx, r14
je 0x1000d5744
test byte [rcx + 0x1c], r13b
je 0x1000d5744
cmp byte [rcx + 0x19], r13b
jb 0x1000d5744
mov rcx, qword [rcx + 0x10]
mov edx, 0x29
mov r8, r15
call fcn.10001c854
xor eax, eax
xor ecx, ecx
mov ebx, 0x1f8
mov byte [rsp + 0x40], cl
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x78], ecx
mov qword [rsp + 0x58], rcx
mov byte [rsp + 0x80], cl
lea rcx, [rsp + 0x88]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x7c], eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x81], eax
mov word [rsp + 0x85], ax
mov byte [rsp + 0x87], al
call sub.msvcrt.dll_memset
xor eax, eax
lea rcx, [rsp + 0x288]
mov r8, rbx
xor edx, edx
mov byte [rsp + 0x280], 0
mov dword [rsp + 0x281], eax
mov word [rsp + 0x285], ax
mov byte [rsp + 0x287], al
call sub.msvcrt.dll_memset
and qword [rsp + 0x30], 0
mov ebx, 3
lea r8d, [rbx - 2]
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x60000080
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp], rax
cmp rax, 0xffffffffffffffff
jne 0x1000d5848
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d583e
test byte [rcx + 0x1c], r13b
je 0x1000d583e
cmp byte [rcx + 0x19], 2
jb 0x1000d583e
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x27]
mov r9, rsi
mov r8, r15
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
mov eax, 8
jmp 0x1000d5c7b
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d5879
test byte [rcx + 0x1c], r13b
je 0x1000d5879
cmp byte [rcx + 0x19], r13b
jb 0x1000d5879
mov rcx, qword [rcx + 0x10]
mov edx, 0x2b
mov r9, rsi
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.10001e82c
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov r9, rdi
mov rcx, rbp
call fcn.1000dc5c0
mov esi, eax
test eax, eax
je 0x1000d58ca
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d58c3
test byte [rcx + 0x1c], r13b
je 0x1000d58c3
cmp byte [rcx + 0x19], 2
jb 0x1000d58c3
mov edx, 0x2c
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.10001c878
mov eax, esi
jmp 0x1000d5c7b
cmp byte [rsp + 0x40], 0
je 0x1000d5904
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d58fa
test byte [rcx + 0x1c], r13b
je 0x1000d58fa
cmp byte [rcx + 0x19], 2
jb 0x1000d58fa
mov edx, 0x2d
mov rcx, qword [rcx + 0x10]
mov r8, r15
call fcn.10001c854
mov eax, 2
jmp 0x1000d5c7b
mov al, byte [rsp + 0xa3]
mov byte [rsp + 0x44], al
mov al, byte [rsp + 0xa2]
mov byte [rsp + 0x45], al
mov al, byte [rsp + 0xa1]
mov byte [rsp + 0x46], al
mov al, byte [rsp + 0xa0]
mov byte [rsp + 0x47], al
cmp dword [rsp + 0x44], 0x10001
je 0x1000d5959
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d58fa
test byte [rcx + 0x1c], r13b
je 0x1000d58fa
cmp byte [rcx + 0x19], 2
jb 0x1000d58fa
mov edx, 0x2e
jmp 0x1000d58ee
mov al, byte [rsp + 0xaf]
lea rdx, [rsp + 0x280]
mov r9, r12
mov byte [rsp + 0x50], al
mov al, byte [rsp + 0xae]
mov rcx, rbp
mov byte [rsp + 0x51], al
mov al, byte [rsp + 0xad]
mov qword [rsp + 0x28], rdi
mov byte [rsp + 0x52], al
mov al, byte [rsp + 0xac]
mov byte [rbp + 0x30], 1
mov byte [rsp + 0x53], al
mov al, byte [rsp + 0xab]
mov byte [rsp + 0x54], al
mov al, byte [rsp + 0xaa]
mov byte [rsp + 0x55], al
mov al, byte [rsp + 0xa9]
mov byte [rsp + 0x56], al
mov al, byte [rsp + 0xa8]
mov byte [rsp + 0x57], al
mov al, byte [rsp + 0xbf]
mov r8, qword [rsp + 0x50]
mov byte [rsp + 0x44], al
mov al, byte [rsp + 0xbe]
mov byte [rsp + 0x45], al
mov al, byte [rsp + 0xbd]
mov byte [rsp + 0x46], al
mov al, byte [rsp + 0xbc]
mov byte [rsp + 0x47], al
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
call fcn.1000df2f0
mov esi, eax
test eax, eax
je 0x1000d5a3a
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d58c3
test byte [rcx + 0x1c], r13b
je 0x1000d58c3
cmp byte [rcx + 0x19], 2
jb 0x1000d58c3
mov edx, 0x2f
jmp 0x1000d58b4
mov r12d, 0x20000
xor ecx, ecx
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x1000d5a62
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov eax, ebx
jmp 0x1000d5c7b
mov r8, r12
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea r12, [rsi + 0xffff]
lea rdx, [rsp + 0x280]
and r12, 0xffffffffffff0000
mov r8d, 0x200
mov rcx, r12
call sub.msvcrt.dll_memcpy
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x1000d5abc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
jmp 0x1000d5c39
mov rcx, qword [rbp]
and dword [rsp + 0x68], 0
and dword [rsp + 0x6c], 0
mov ebx, 0x200
lea r9, [rsp + 0x58]
mov rdx, r12
mov r8d, ebx
call fcn.1000d3658
mov rcx, qword [rbp]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1000d5b0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
jmp 0x1000d5c29
mov r9d, dword [rsp + 0x48]
cmp r9d, ebx
je 0x1000d5b42
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d5c23
test byte [rcx + 0x1c], r13b
je 0x1000d5c23
cmp byte [rcx + 0x19], 2
jb 0x1000d5c23
mov edx, 0x30
jmp 0x1000d5c17
mov rcx, qword [rbp]
lea rdx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1000d5ba3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d5b8e
test byte [rcx + 0x1c], r13b
je 0x1000d5b8e
cmp byte [rcx + 0x19], 2
jb 0x1000d5b8e
mov r9, qword [rbp]
mov rcx, qword [rcx + 0x10]
mov edx, 0x31
mov r8, r15
mov dword [rsp + 0x20], eax
call fcn.1000c2c40
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 8
jmp 0x1000d5c39
mov rax, qword [rsp + 0x78]
mov rcx, qword [rbp]
lea r9, [rsp + 0x58]
add rax, 0xfffffffffffffe00
mov r8d, ebx
mov rdx, r12
mov dword [rsp + 0x68], eax
shr rax, 0x20
mov dword [rsp + 0x6c], eax
call fcn.1000d3658
mov rcx, qword [rbp]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1000d5afd
mov r9d, dword [rsp + 0x48]
cmp r9d, ebx
je 0x1000d5c47
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d5c23
test byte [rcx + 0x1c], r13b
je 0x1000d5c23
cmp byte [rcx + 0x19], 2
jb 0x1000d5c23
mov edx, 0x32
mov rcx, qword [rcx + 0x10]
mov r8, r15
call fcn.10001c878
mov dword [rdi], 0x45d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1000d5a5b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d5c79
test byte [rcx + 0x1c], r13b
je 0x1000d5c79
cmp byte [rcx + 0x19], r13b
jb 0x1000d5c79
mov rcx, qword [rcx + 0x10]
mov edx, 0x33
mov r8, r15
call fcn.10001c854
xor eax, eax
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.10014e600
add rsp, 0x498
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret