Function at 0x14003cea0
Capabilities:
Get file size

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x2e0
mov qword [r11 - 0x260], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x2d8], rax
mov r15, r8
mov r14, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], r8
mov r12, qword [rsp + 0x340]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x220], shutdown
mov byte [rsp + 0x41], 0
xor eax, eax
mov qword [r11 - 0x88], rax
mov qword [r11 - 0x80], rax
mov qword [r11 - 0x78], rax
mov qword [r11 - 0x90], 0xffffffffffffffff
mov esi, 0x80000000
mov dword [rsp + 0x280], esi
xor ebx, ebx
mov qword [r11 - 0x70], rbx
mov qword [r11 - 0x68], rbx
xor r8d, r8d
xor edx, edx
lea rcx, [r11 - 0x80]
call fcn.14000e930
nop
xor dil, dil
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbx
test dil, dil
jne 0x14003cfae
movzx eax, byte [rsp + 0x42]
mov byte [rsp + 0x20], al
mov r9, r12
mov rdx, r15
lea rcx, [rsp + 0x278]
call fcn.14003e4f0
mov byte [rsp + 0x41], 1
mov dil, 1
mov byte [rsp + 0x40], dil
jmp 0x14003cfa2
lea rcx, [rsp + 0x78]
call fcn.140053d10
jmp 0x14003cf57
cmp byte [rsp + 0x41], 0
je 0x14003d16e
mov rdx, qword [rsp + 0x220]
lea rcx, [rsp + 0x278]
call fcn.14003e600
xor eax, eax
mov qword [rsp + 0x228], rax
mov qword [rsp + 0x230], rax
mov qword [rsp + 0x238], rax
mov qword [rsp + 0x240], rax
mov qword [rsp + 0x248], rax
mov r8d, 0xc0000000
lea rdx, [rsp + 0x278]
lea rcx, [rsp + 0x228]
call fcn.14003e670
nop
mov rdx, qword [rsp + 0x228]
mov ecx, 1
xor eax, eax
lock cmpxchg dword [rdx], ecx
jne 0x14003d103
mov rax, qword [rsp + 0x348]
test eax, eax
je 0x14003d041
sub eax, ecx
je 0x14003d051
cmp eax, ecx
jne 0x14003d051
mov rax, qword [rsp + 0x228]
add rax, 8
je 0x14003d051
mov dword [rax], ebx
mov rcx, qword [r14]
mov qword [rsp + 0xc0], rcx
mov rax, qword [rsp + 0x228]
mov qword [r14], rax
mov qword [rsp + 0x228], rcx
mov rcx, qword [r14 + 8]
mov qword [rsp + 0xc8], rcx
mov rax, qword [rsp + 0x230]
mov qword [r14 + 8], rax
mov qword [rsp + 0x230], rcx
mov rcx, qword [r14 + 0x10]
mov qword [rsp + 0xd0], rcx
mov rax, qword [rsp + 0x238]
mov qword [r14 + 0x10], rax
mov qword [rsp + 0x238], rcx
mov ecx, dword [r14 + 0x18]
mov dword [rsp + 0x58], ecx
mov eax, dword [rsp + 0x240]
mov dword [r14 + 0x18], eax
mov dword [rsp + 0x240], ecx
mov rcx, qword [r14 + 0x20]
mov qword [rsp + 0xd8], rcx
mov rax, qword [rsp + 0x248]
mov qword [r14 + 0x20], rax
mov qword [rsp + 0x248], rcx
mov eax, 2
xchg dword [rdx], eax
lea rcx, [rsp + 0x228]
call fcn.140045920
nop
jmp 0x14003d342
dec eax
cmp eax, ecx
jbe 0x14003d13b
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x64], shutdown
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xe0]
call fcn.14004fac0
lea rdx, [0x1400b7b18]
lea rcx, [rsp + 0xe0]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x6c], 9
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x120]
call fcn.14004fac0
lea rdx, [0x1400b7b18]
lea rcx, [rsp + 0x120]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov qword [rsp + 0x220], rbx
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], 0
nop word [rax + rax]
lea rdx, [rsp + 0x220]
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003d376
lea rcx, [rsp + 0x88]
call fcn.140053d10
mov rax, qword [rsp + 0x220]
test rax, rax
je 0x14003d190
cmp rax, 1
jne 0x14003d201
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x4c], shutdown
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x160]
call fcn.14004fac0
lea rdx, [0x1400b7b18]
lea rcx, [rsp + 0x160]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
xor eax, eax
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x258], rax
mov qword [rsp + 0x260], rax
mov qword [rsp + 0x268], rax
mov qword [rsp + 0x270], rax
cmp al, al
jne 0x14003d23b
mov esi, ebx
setne sil
add esi, 0xc0000000
mov r8d, esi
lea rdx, [rsp + 0x278]
lea rcx, [rsp + 0x250]
call fcn.14003e670
nop
mov rdi, qword [rsp + 0x250]
mov eax, dword [rdi]
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa0], 0
cmp eax, 1
ja 0x14003d288
lea rcx, [rsp + 0x98]
call fcn.140053d10
mov eax, dword [rdi]
jmp 0x14003d272
cmp eax, 2
je 0x14003d2c0
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x54], shutdown
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x1a0]
call fcn.14004fac0
lea rdx, [0x1400b7b18]
lea rcx, [rsp + 0x1a0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rcx, qword [r14]
mov rax, qword [rsp + 0x250]
mov qword [r14], rax
mov qword [rsp + 0x250], rcx
mov rcx, qword [r14 + 8]
mov rax, qword [rsp + 0x258]
mov qword [r14 + 8], rax
mov qword [rsp + 0x258], rcx
mov rcx, qword [r14 + 0x10]
mov rax, qword [rsp + 0x260]
mov qword [r14 + 0x10], rax
mov qword [rsp + 0x260], rcx
mov ecx, dword [r14 + 0x18]
mov eax, dword [rsp + 0x268]
mov dword [r14 + 0x18], eax
mov dword [rsp + 0x268], ecx
mov rcx, qword [r14 + 0x20]
mov rax, qword [rsp + 0x270]
mov qword [r14 + 0x20], rax
mov qword [rsp + 0x270], rcx
lea rcx, [rsp + 0x250]
call fcn.140045920
nop
mov rcx, qword [rsp + 0x278]
cmp rcx, 0xffffffffffffffff
je 0x14003d362
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x278], 0xffffffffffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x288]
call fcn.14000e930
jmp 0x14003d3af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14004f980
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x1e0]
call fcn.14004fac0
lea rdx, [0x1400b7b18]
lea rcx, [rsp + 0x1e0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x2d8]
xor rcx, rsp
call fcn.140062f80
mov rbx, qword [rsp + 0x318]
add rsp, 0x2e0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret