Function at 0x1000cee98
Capabilities:
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa48
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0xa30], rax
mov rdi, qword [rsp + 0xab0]
mov rbp, qword [rsp + 0xab8]
mov r12, qword [rsp + 0xac0]
mov rsi, qword [rsp + 0xac8]
xor r15d, r15d
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0xe0], rbp
mov qword [rsp + 0xe8], r12
mov r14, r9
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0xb8], rdx
mov rbx, rcx
mov qword [rsp + 0xa0], rcx
mov dword [rsp + 0x54], r15d
mov qword [rsp + 0xc8], r9
mov byte [rsp + 0xd0], r15b
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x1000cef5d
test byte [rcx + 0x1c], 4
je 0x1000cef5d
cmp byte [rcx + 0x19], 4
jb 0x1000cef5d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x16f
call fcn.10001c7b8
xor eax, eax
lea rcx, [rsp + 0x220]
xor edx, edx
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rbp], r15
mov r8d, 0x100
mov qword [r12], r15
mov dword [rsi], r15d
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x3a0]
xor edx, edx
mov r8d, 0x400
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x320]
xor edx, edx
mov r8d, 0x80
call sub.msvcrt.dll_memset
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000cefe0
test byte [rcx + 0x1c], 4
je 0x1000cefe0
cmp byte [rcx + 0x19], 4
jb 0x1000cefe0
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x170
mov r9, rbx
call fcn.10001da24
mov edi, r15d
lea r12, [rsp + 0x320]
lea r13, [rsp + 0x3b8]
mov rbp, r15
mov ebx, 8
mov edx, 0x20000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + rbp + 0x120], rax
cmp rax, r15
je 0x1000cfde0
xor r9d, r9d
add rax, 0xffff
xor r8d, r8d
and rax, 0xffffffffffff0000
lea edx, [r9 + 1]
xor ecx, ecx
mov qword [rsp + rbp + 0x220], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r13], rax
cmp rax, r15
je 0x1000cfd92
inc edi
mov dword [r12], r15d
add rbp, rbx
add r13, 0x20
add r12, 4
cmp edi, 0x20
jb 0x1000ceffb
lea rcx, [rsp + 0x8a0]
xor edx, edx
mov r8d, 0x180
call sub.msvcrt.dll_memset
cmp r14, 0xffffffffffffffff
je 0x1000cf0d6
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1000cf0ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x120]
mov ebp, 0x20
mov dword [rsi], eax
lea rsi, [rsp + 0x3b8]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsi, 0x20
add rdi, rbx
sub rbp, 1
jne 0x1000cf0a7
lea ebx, [rbp + 0x13]
jmp 0x1000cfe22
mov byte [rsp + 0xd0], 1
mov r14, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rsi
and qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x90]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd8]
lea rcx, [rsp + 0x8a0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x100]
mov rdx, r14
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
call fcn.1000d68dc
mov r13d, eax
test eax, eax
je 0x1000cf5cd
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000cf183
test byte [rcx + 0x1c], 4
je 0x1000cf183
cmp byte [rcx + 0x19], 4
jb 0x1000cf183
mov eax, dword [rsi]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov dword [rsp + 0x28], eax
mov edx, 0x171
mov r9, r14
mov dword [rsp + 0x20], r13d
call fcn.10001dd64
and qword [rsp + 0x30], r15
mov edi, 3
xor r9d, r9d
lea r8d, [rdi - 2]
mov edx, 0x80000000
mov rcx, r14
mov dword [rsp + 0x28], 0x60000080
mov byte [rsp + 0x53], 1
mov byte [rsp + 0x52], 1
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1000cf251
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x120]
lea rbp, [rsp + 0x3b8]
mov dword [rsi], eax
mov r12d, 0x20
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rbp, 0x20
add rdi, rbx
sub r12, 1
jne 0x1000cf1e3
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000cfe22
test byte [rcx + 0x1c], 4
je 0x1000cfe22
cmp byte [rcx + 0x19], 2
jb 0x1000cfe22
mov eax, dword [rsi]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x172
mov r9, r14
mov dword [rsp + 0x20], eax
call fcn.10001daa4
jmp 0x1000cfe22
lea rdx, [rsp + 0x98]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1000cf2b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [rsp + 0x120]
lea rsi, [rsp + 0x3b8]
mov ebp, 0x20
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsi, 0x20
add rdi, rbx
sub rbp, 1
jne 0x1000cf28c
jmp 0x1000cfe22
mov r12, qword [rsp + 0x98]
test r12, r12
jne 0x1000cf302
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [rsp + 0x120]
lea rsi, [rsp + 0x3b8]
lea ebp, [r12 + 0x20]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsi, 0x20
add rdi, rbx
sub rbp, 1
jne 0x1000cf2db
mov ebx, r13d
jmp 0x1000cfe22
mov edx, 0x20000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
jne 0x1000cf363
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsi, [rsp + 0x120]
lea rbp, [rsp + 0x3b8]
lea r12d, [r14 + 0x20]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rbp, 0x20
add rsi, rbx
sub r12, 1
jne 0x1000cf33c
mov ebx, edi
jmp 0x1000cfe22
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ecx, ecx
mov qword [rsp + 0x88], rax
cmp rax, rcx
jne 0x1000cf3d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsi, [rsp + 0x120]
lea rbp, [rsp + 0x3b8]
mov r12d, 0x20
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rbp, 0x20
add rsi, rbx
sub r12, 1
jne 0x1000cf3af
jmp 0x1000cf35c
mov rdx, qword [rsp + 0x220]
mov eax, 0x10000
mov dword [rsp + 0xc0], ecx
mov edi, eax
cmp r12, rax
mov dword [rsp + 0x3b0], ecx
cmovl edi, r12d
mov dword [rsp + 0x3b4], ecx
lea r9, [rsp + 0x3a0]
mov r8d, edi
mov rcx, rbp
mov dword [rsp + 0x60], edi
call fcn.1000d33d4
lea r8, [rsp + 0x54]
lea rdx, [rsp + 0x3a0]
mov r9d, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1000cf499
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x88]
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [rsp + 0x120]
lea rsi, [rsp + 0x3b8]
mov ebp, 0x20
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsi, 0x20
add rdi, rbx
sub rbp, 1
jne 0x1000cf470
mov ebx, 4
jmp 0x1000cfe22
mov r9d, dword [rsp + 0x54]
cmp r9d, edi
je 0x1000cf53e
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000cf4df
test byte [rcx + 0x1c], 4
je 0x1000cf4df
cmp byte [rcx + 0x19], 2
jb 0x1000cf4df
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x173
mov dword [rsp + 0x20], edi
call fcn.10001e8b4
mov rcx, qword [rsp + 0x88]
mov dword [rsi], 0x45d
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [rsp + 0x120]
lea rsi, [rsp + 0x3b8]
mov ebp, 0x20
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsi, 0x20
add rdi, rbx
sub rbp, 1
jne 0x1000cf51a
jmp 0x1000cf48f
mov rcx, qword [rsp + 0x220]
lea rdx, [0x10000d0e0]
mov r8d, 0x10
call qword [sym.imp.KERNEL32.dll_RtlCompareMemory]
cmp rax, 0x10
je 0x1000cf5b8
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [rsp + 0x120]
lea rsi, [rsp + 0x3b8]
mov ebp, 0x20
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsi, 0x20
add rdi, rbx
sub rbp, 1
jne 0x1000cf594
jmp 0x1000cf2fa
mov dl, byte [rsp + 0x53]
mov qword [rsp + 0x90], 1
mov r8b, dl
jmp 0x1000cf61b
mov rax, qword [rsp + 0x70]
mov dl, byte [rsp + 0x50]
mov rbp, qword [rsp + 0x90]
mov r14, qword [rsp + 0x70]
xor r8b, r8b
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x70]
mov byte [rsp + 0x52], r8b
mov byte [rsp + 0x53], dl
mov qword [rsp + 0x90], rax
test dl, dl
je 0x1000cf612
mov r12, qword [rsp + 0x8b8]
jmp 0x1000cf61b
mov r12d, dword [rsp + 0x60]
shl r12, 0x15
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x1000cf68a
test byte [rcx + 0x1c], 4
je 0x1000cf661
cmp byte [rcx + 0x19], 4
jb 0x1000cf661
mov rcx, qword [rcx + 0x10]
movzx eax, dl
movzx r9d, r8b
lea r8, [0x100003198]
mov edx, 0x174
mov dword [rsp + 0x20], eax
call fcn.10001e8b4
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000cf68a
test byte [rcx + 0x1c], 4
je 0x1000cf68a
cmp byte [rcx + 0x19], 4
jb 0x1000cf68a
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x175
mov r9, r12
call fcn.10001d680
lea rcx, [rsp + 0xc8]
call fcn.1000c2cfc
mov rcx, qword [rsp + 0xa8]
mov r8, r12
xor edx, edx
call qword [rsp + 0xb8]
test al, al
jne 0x1000cf6f3
mov r13d, 1
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000cfc32
test byte [rcx + 0x1c], 4
je 0x1000cfc32
cmp byte [rcx + 0x19], 2
jb 0x1000cfc32
mov edx, 0x176
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
call fcn.10001c7b8
jmp 0x1000cfc32
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov rcx, qword [0x1001653b8]
xor r9b, r9b
mov byte [rsp + 0x51], r9b
xor r8d, r8d
lea rax, [rsp + 0x320]
lea rdx, [rsp + 0x3b4]
xor edi, edi
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], rdx
mov dword [rsp + 0x5c], r8d
mov qword [rsp + 0x68], rdi
cmp dword [rax], 0
je 0x1000cf97b
mov eax, r8d
lea r8, [rsp + 0x54]
mov r9d, 1
shl rax, 5
mov rcx, rbp
lea rdx, [rsp + rax + 0x3a0]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1000cfccf
cmp byte [rsp + 0x52], 0
je 0x1000cf810
mov r9, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + rdi + 0x220]
mov eax, dword [r9 - 4]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x98], eax
mov eax, dword [r9]
mov dword [rsp + 0x9c], eax
mov rax, r8
add rax, qword [rsp + 0x98]
cmp rax, r12
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x88]
sete r9b
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x58], r9b
call fcn.1000cec28
mov r13d, eax
test eax, eax
jne 0x1000cfc32
mov rcx, qword [0x1001653b8]
jmp 0x1000cf961
mov rdi, qword [rsp + rdi + 0x7a0]
cmp rdi, qword [rsp + 0xb0]
jl 0x1000cf83a
lea r8, [0x10000d4c8]
lea rcx, [0x10000d130]
mov edx, 0x1ff9
call fcn.100099ad8
mov r8d, dword [rsp + 0x54]
lea rax, [rdi + r8]
cmp rax, qword [rsp + 0xb0]
jle 0x1000cf867
mov rax, qword [rsp + 0x68]
mov r8d, dword [rsp + 0xb0]
sub r8d, dword [rsp + rax + 0x7a0]
mov dword [rsp + 0x54], r8d
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000cf8b7
test byte [rcx + 0x1c], 4
je 0x1000cf8b7
cmp byte [rcx + 0x19], 5
jb 0x1000cf8b7
mov r9, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x10]
mov edx, 0x177
mov eax, dword [r9 - 4]
mov dword [rsp + 0x28], eax
mov eax, dword [r9]
mov r9d, r8d
lea r8, [0x100003198]
mov dword [rsp + 0x20], eax
call fcn.1000c27bc
mov r8d, dword [rsp + 0x54]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0xa20]
mov rdx, qword [rsp + rax + 0x220]
call fcn.1000d31e0
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000cf95c
test byte [rcx + 0x1c], 4
je 0x1000cf95c
cmp byte [rcx + 0x19], 5
jb 0x1000cf95c
mov eax, dword [rsp + 0xa2c]
mov rcx, qword [rcx + 0x10]
sar rdi, 0x20
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0xa28]
lea r8, [0x100003198]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa24]
mov edx, 0x178
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa20]
mov r9d, edi
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x68]
mov eax, dword [rsp + rax + 0x7a0]
mov dword [rsp + 0x20], eax
call fcn.1000c243c
mov rcx, qword [0x1001653b8]
mov rdi, qword [rsp + 0x68]
mov rax, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x5c]
and dword [rax], 0
mov r9b, byte [rsp + 0x51]
test r9b, r9b
jne 0x1000cfb86
cmp byte [rsp + 0x52], r9b
je 0x1000cfa5b
cmp r15, r12
jne 0x1000cf9dd
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000cf9d0
test byte [rcx + 0x1c], 4
je 0x1000cf9d0
cmp byte [rcx + 0x19], 4
jb 0x1000cf9d0
mov edx, 0x179
mov r9, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
call fcn.10001da24
mov rcx, qword [0x1001653b8]
mov r9b, 1
mov byte [rsp + 0x51], r9b
jmp 0x1000cfb74
mov rax, r15
mov edi, 0x10000
mov qword [rsp + 0x98], r15
shr rax, 0x20
mov dword [rdx - 4], r15d
mov dword [rsp + 0x60], edi
mov dword [rdx], eax
lea rax, [r15 + 0x10000]
cmp rax, r12
jle 0x1000cfa11
mov edi, r12d
sub edi, r15d
mov dword [rsp + 0x60], edi
mov eax, r8d
mov rcx, rbp
mov r8d, edi
shl rax, 5
lea r9, [rsp + rax + 0x3a0]
mov rax, qword [rsp + 0x68]
mov rdx, qword [rsp + rax + 0x220]
call fcn.1000d33d4
mov r11, qword [rsp + 0x80]
mov eax, edi
mov rdi, qword [rsp + 0x68]
mov byte [rsp + 0x50], 0
add r15, rax
mov dword [r11], 1
jmp 0x1000cfb1b
and qword [rsp + 0x38], 0
mov eax, r8d
mov edx, r8d
shl rax, 5
lea r8, [rsp + rdx*8 + 0x7a0]
mov rdx, qword [rsp + rdi + 0x220]
lea rcx, [rsp + rax + 0x3a0]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc4]
lea rcx, [rsp + 0x8a0]
mov qword [rsp + 0x20], rax
call fcn.1000d99dc
test al, al
jne 0x1000cfaea
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000cf9d0
test byte [rcx + 0x1c], 4
je 0x1000cf9d0
cmp byte [rcx + 0x19], 4
jb 0x1000cf9d0
mov edx, 0x17a
jmp 0x1000cf9b1
cmp byte [rsp + 0x53], 0
mov r11, qword [rsp + 0x80]
mov byte [rsp + 0x50], 0
mov dword [r11], 1
je 0x1000cfb0f
mov r15, qword [rsp + 0x8d8]
jmp 0x1000cfb1b
mov r15d, dword [rsp + 0xc4]
shl r15, 0x15
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx r11d, word [rsp + 0xfc]
cmp word [rsp + 0x11c], r11w
je 0x1000cfb68
mov rcx, qword [rsp + 0xa8]
mov r8, r12
mov rdx, r15
call qword [rsp + 0xb8]
test al, al
je 0x1000cfce2
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov r9b, byte [rsp + 0x51]
mov rcx, qword [0x1001653b8]
mov r8d, dword [rsp + 0x5c]
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x80]
inc r8d
add rdx, 0x20
add rdi, rbx
add rax, 4
mov dword [rsp + 0x5c], r8d
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x80], rax
cmp r8d, 0x20
jb 0x1000cf741
mov al, byte [rsp + 0x50]
test al, al
je 0x1000cf710
mov rcx, qword [rsp + 0xa8]
mov r8, r12
mov rdx, r12
mov r15, r12
call qword [rsp + 0xb8]
test r13d, r13d
jne 0x1000cfc32
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000cfc32
test byte [rcx + 0x1c], 4
je 0x1000cfc32
cmp byte [rcx + 0x19], 4
jb 0x1000cfc32
mov r8, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x10]
mov edx, 0x17c
mov eax, dword [r8 + 0xc]
mov r9d, dword [r8]
mov dword [rsp + 0x30], eax
mov eax, dword [r8 + 8]
mov dword [rsp + 0x28], eax
mov eax, dword [r8 + 4]
lea r8, [0x100003198]
mov dword [rsp + 0x20], eax
call fcn.10001e8fc
mov rax, qword [rsp + 0xe0]
mov qword [rax], r15
mov rax, qword [rsp + 0xe8]
mov qword [rax], r12
test r13d, r13d
je 0x1000cfc71
lea r9, [rsp + 0x320]
lea r8, [rsp + 0x3a0]
or rdx, 0xffffffffffffffff
mov rcx, rbp
mov dword [rsp + 0x20], 0x20
call fcn.1000c2ff4
lea rdi, [rsp + 0x120]
lea rsi, [rsp + 0x3b8]
mov r12d, 0x20
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsi, 0x20
add rdi, rbx
sub r12, 1
jne 0x1000cfc87
cmp byte [rsp + 0x52], r12b
je 0x1000cfd1d
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000cfd4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, 4
mov dword [rsi], eax
jmp 0x1000cfc32
mov r13d, 1
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000cfc32
test byte [rcx + 0x1c], 4
je 0x1000cfc32
cmp byte [rcx + 0x19], 2
jb 0x1000cfc32
mov edx, 0x17b
jmp 0x1000cf6de
cmp byte [rsp + 0x53], 0
je 0x1000cfd32
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rsp + 0x8a0]
call fcn.1000d4578
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000cf2fa
test byte [rcx + 0x1c], 4
je 0x1000cf2fa
cmp byte [rcx + 0x19], 4
jb 0x1000cf2fa
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x17d
call fcn.10001c7b8
jmp 0x1000cf2fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + rdi*8 + 0x120]
mov ebp, edi
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, r15d
jbe 0x1000cfe22
lea rdi, [rsp + 0x120]
lea rsi, [rsp + 0x3b8]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsi, 0x20
add rdi, rbx
sub rbp, 1
jne 0x1000cfdbf
jmp 0x1000cfe22
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
cmp edi, r15d
jbe 0x1000cfe1d
lea rsi, [rsp + 0x120]
lea rbp, [rsp + 0x3b8]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rbp, 0x20
add rsi, rbx
sub rdi, 1
jne 0x1000cfdfd
mov ebx, 3
lea rcx, [rsp + 0xc8]
call fcn.1000c2cfc
mov eax, ebx
mov rcx, qword [rsp + 0xa30]
xor rcx, rsp
call fcn.10014e480
add rsp, 0xa48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret