Function at 0x1400433b0
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402ee230]
xor rax, rsp
mov qword [rbp + 0x108], rax
mov rdi, rcx
xor r13d, r13d
mov qword [rsp + 0x40], r13
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140043839
mov eax, dword [rdi + 0x3c]
cmp qword [rsp + 0x40], rax
jle 0x140043839
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rsi, 0xffffffffffffffff
mov qword [rdi + 8], rsi
mov eax, dword [rdi + 0x40]
lea rbx, [rdi + 0x10]
mov r12d, 0x8000080
and al, 1
mov edx, r12d
mov ecx, 0x88000080
cmp al, 1
cmovne edx, ecx
lea r14d, [r13 + 8]
cmp qword [rbx + 0x18], r14
jb 0x14004345d
mov rcx, qword [rbx]
jmp 0x140043460
mov rcx, rbx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], edx
mov eax, 4
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r15d, [rax + 3]
mov r8d, r15d
mov edx, eax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, rsi
je 0x140043839
mov qword [rsp + 0x40], r13
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140043839
mov eax, dword [rdi + 0x3c]
cmp qword [rsp + 0x40], rax
jle 0x140043839
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rsi
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x28], r13
mov word [rbp + 0x18], r13w
cmp qword [rbx + 0x18], r14
jb 0x1400434e0
mov rdx, qword [rbx]
jmp 0x1400434e3
mov rdx, rbx
lea rcx, [rbp + 0x18]
call fcn.1400319c8
nop
lea rdx, [rdi + 0x38]
lea rcx, [rbp + 0xb8]
call fcn.140040674
nop
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0xe0]
call fcn.140042d9c
nop
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x50], r13
mov word [rbp - 0x60], r13w
cmp qword [rax + 0x18], r14
jb 0x140043527
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400319c8
nop
cmp qword [rbp + 0xf8], r14
jb 0x140043549
mov rcx, qword [rbp + 0xe0]
call fcn.14005a61c
mov qword [rbp + 0xf8], r15
mov qword [rbp + 0xf0], r13
mov word [rbp + 0xe0], r13w
cmp qword [rbp + 0xd0], r14
jb 0x140043574
mov rcx, qword [rbp + 0xb8]
call fcn.14005a61c
mov qword [rbp + 0xd0], r15
mov qword [rbp + 0xc8], r13
mov word [rbp + 0xb8], r13w
lea rcx, [rbp - 0x60]
call fcn.1400430b8
mov r11d, dword [rdi + 0x38]
dec r11d
mov dword [rsp + 0x40], r11d
cmp r11d, 1
jb 0x140043716
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x68]
call fcn.140040674
nop
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.140042d9c
nop
mov qword [rbp + 8], r15
mov qword [rbp], r13
mov word [rbp - 0x10], r13w
cmp qword [rax + 0x18], r14
jb 0x1400435e1
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.1400319c8
nop
cmp qword [rbp + 0xa8], r14
jb 0x140043603
mov rcx, qword [rbp + 0x90]
call fcn.14005a61c
mov qword [rbp + 0xa8], r15
mov qword [rbp + 0xa0], r13
mov word [rbp + 0x90], r13w
cmp qword [rbp + 0x80], r14
jb 0x14004362b
mov rcx, qword [rbp + 0x68]
call fcn.14005a61c
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x78], r13
mov word [rbp + 0x68], r13w
lea rcx, [rbp - 0x10]
call fcn.140040040
mov esi, dword [rsp + 0x40]
test al, al
je 0x1400436f8
lea eax, [rsi + 1]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140040674
nop
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140042d9c
nop
mov qword [rbp + 0x58], r15
mov qword [rbp + 0x50], r13
mov word [rbp + 0x40], r13w
cmp qword [rax + 0x18], r14
jb 0x14004368e
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1400319c8
nop
cmp qword [rbp - 0x70], r14
jb 0x1400436ab
mov rcx, qword [rsp + 0x78]
call fcn.14005a61c
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x78], r13
mov word [rsp + 0x78], r13w
cmp qword [rsp + 0x68], r14
jb 0x1400436ca
mov rcx, qword [rsp + 0x50]
call fcn.14005a61c
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.1400431c4
nop
cmp qword [rbp + 0x58], r14
jb 0x1400436f8
mov rcx, qword [rbp + 0x40]
call fcn.14005a61c
nop
cmp qword [rbp + 8], r14
jb 0x140043707
mov rcx, qword [rbp - 0x10]
call fcn.14005a61c
dec esi
mov dword [rsp + 0x40], esi
cmp esi, 1
jae 0x1400435a9
mov dword [rsp + 0x40], 1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.14004261c
nop
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140042d9c
nop
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x28], r13
mov word [rbp - 0x38], r13w
cmp qword [rax + 0x18], r14
jb 0x140043755
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.1400319c8
nop
cmp qword [rsp + 0x68], r14
jb 0x140043773
mov rcx, qword [rsp + 0x50]
call fcn.14005a61c
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
cmp qword [rbp - 0x70], r14
jb 0x140043793
mov rcx, qword [rsp + 0x78]
call fcn.14005a61c
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x78], r13
mov word [rsp + 0x78], r13w
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x18]
call fcn.1400431c4
mov r11d, dword [rdi + 0x40]
and r11b, 1
cmp r11b, 1
mov eax, 0x88000080
cmovne r12d, eax
cmp qword [rbx + 0x18], r14
jb 0x1400437cc
mov rbx, qword [rbx]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r12d
mov edx, 4
mov dword [rsp + 0x20], edx
xor r9d, r9d
mov r8d, r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp qword [rbp - 0x20], r14
jb 0x140043801
mov rcx, qword [rbp - 0x38]
call fcn.14005a61c
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x28], r13
mov word [rbp - 0x38], r13w
cmp qword [rbp - 0x48], r14
jb 0x14004381d
mov rcx, qword [rbp - 0x60]
call fcn.14005a61c
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x50], r13
mov word [rbp - 0x60], r13w
cmp qword [rbp + 0x30], r14
jb 0x140043839
mov rcx, qword [rbp + 0x18]
call fcn.14005a61c
mov rcx, qword [rbp + 0x108]
xor rcx, rsp
call fcn.1401be9b0
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret