Function at 0x1400045f0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140024018]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov eax, dword [0x140024a20]
lea r9, [rbp - 0x18]
mov r15, rcx
mov dword [rbp - 0x18], eax
mov rcx, qword [0x140024a28]
xor edi, edi
mov edx, 0xffff
mov dword [rbp - 0x14], edi
mov r8d, 0x1006
mov dword [rsp + 0x20], 8
call qword [0x140025d50]
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400046a9
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x140004861
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140004861
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, rdi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov edx, 0x80000000
mov rcx, r15
mov qword [rsp + 0x98], r12
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140004ba1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, qword [0x140024a28]
mov ebx, edi
mov dword [rbp - 0x1c], 1
mov r12, rax
mov dword [rax], 1
add byte [rbp - 0x1c], 0xfd
add byte [rbp - 0x1b], 0xfd
add byte [rbp - 0x1a], 0xfd
add byte [rbp - 0x19], 0xfd
nop dword [rax]
movsxd rcx, ebx
lea rdx, [rbp - 0x1c]
mov r8d, 4
add rdx, rcx
mov rcx, r14
sub r8d, ebx
xor r9d, r9d
call qword [0x140025dd8]
cmp eax, 0xffffffff
je 0x140004b8b
add ebx, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140004b85
cmp ebx, 4
jl 0x140004730
add byte [rbp - 0x1c], 3
mov ecx, 0xa
add byte [rbp - 0x1b], 3
add byte [rbp - 0x1a], 3
add byte [rbp - 0x19], 3
mov dword [0x140025ff4], edi
call qword [0x140025de8]
mov r14, qword [0x140024a28]
mov ebx, edi
mov dword [rbp - 0x20], edi
add byte [rbp - 0x1f], 0xfd
add byte [rbp - 0x1e], 0xfd
add byte [rbp - 0x1d], 0xfd
mov byte [rbp - 0x20], 0xfd
nop dword [rax]
nop word [rax + rax]
mov r8d, 4
movsxd rax, ebx
lea rdx, [rbp - 0x20]
sub r8d, ebx
add rdx, rax
xor r9d, r9d
mov rcx, r14
call qword [0x140025dd8]
cmp eax, 0xffffffff
je 0x140004b8b
add ebx, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140004b85
cmp ebx, 4
jl 0x1400047c0
add byte [rbp - 0x20], 3
add byte [rbp - 0x1f], 3
add byte [rbp - 0x1e], 3
add byte [rbp - 0x1d], 3
mov qword [rsp + 0xa0], r13
mov dword [0x140025ff4], edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
jne 0x14000484a
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov r13, rsi
shr r13, 0xa
test rsi, 0x3ff
jne 0x140004879
mov esi, 0x400
jmp 0x140004882
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [rbp - 0x20]
shl rsi, 0x20
or rsi, r14
jmp 0x1400046ac
inc r13
and esi, 0x3ff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x32
mov rbx, rax
mov qword [rax], r13
call qword [0x140025de8]
add byte [rbx], 0xfd
mov r14d, edi
add byte [rbx + 1], 0xfd
add byte [rbx + 2], 0xfd
add byte [rbx + 3], 0xfd
add byte [rbx + 4], 0xfd
add byte [rbx + 5], 0xfd
add byte [rbx + 6], 0xfd
add byte [rbx + 7], 0xfd
mov r12, qword [0x140024a28]
nop dword [rax]
nop word [rax + rax]
mov r8d, 8
movsxd rdx, r14d
sub r8d, r14d
add rdx, rbx
xor r9d, r9d
mov rcx, r12
call qword [0x140025dd8]
cmp eax, 0xffffffff
je 0x140004b38
add r14d, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140004b32
cmp r14d, 8
jl 0x1400048e0
add byte [rbx], 3
add byte [rbx + 1], 3
add byte [rbx + 2], 3
add byte [rbx + 3], 3
add byte [rbx + 4], 3
add byte [rbx + 5], 3
add byte [rbx + 6], 3
add byte [rbx + 7], 3
mov dword [0x140025ff4], edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, 0x32
call qword [0x140025de8]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, qword [0x140024a28]
lea ecx, [rsi - 3]
mov r14, rax
mov ebx, edi
mov dword [rax], esi
add byte [rax + 1], 0xfd
add byte [rax + 2], 0xfd
add byte [rax + 3], 0xfd
mov byte [rax], cl
nop
mov r8d, 4
movsxd rdx, ebx
sub r8d, ebx
add rdx, r14
xor r9d, r9d
mov rcx, r12
call qword [0x140025dd8]
cmp eax, 0xffffffff
je 0x140004b27
add ebx, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140004b21
cmp ebx, 4
jl 0x1400049a0
add byte [r14], 3
add byte [r14 + 1], 3
add byte [r14 + 2], 3
add byte [r14 + 3], 3
mov dword [0x140025ff4], edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
sub r13, 1
je 0x140004ab2
test rbx, rbx
je 0x140004a7c
mov rcx, rbx
xorps xmm0, xmm0
mov edx, 8
nop word [rax + rax]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x10], xmm0
sub rdx, 1
jne 0x140004a50
mov r8d, 0x400
mov rdx, rbx
mov rcx, r15
call fcn.140001ee0
test eax, eax
je 0x140004b1a
mov r8d, 0x400
mov rdx, rbx
call fcn.140001fa0
cmp eax, 0xffffffff
je 0x140004b1a
inc edi
movsxd rax, edi
cmp rax, r13
jb 0x140004a36
test rbx, rbx
je 0x140004acb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, esi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140004afd
test esi, esi
je 0x140004afd
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.140007990
mov r8d, esi
mov rdx, rbx
mov rcx, r15
call fcn.140001ee0
test eax, eax
je 0x140004b1a
mov r8d, esi
mov rdx, rbx
call fcn.140001fa0
test rbx, rbx
je 0x140004b4c
jmp 0x140004b38
mov dword [0x140025ff4], edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
jmp 0x140004b41
mov dword [0x140025ff4], edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x98]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140005e90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [0x140025ff4], edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140004b5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
mov dword [rax], ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, qword [0x140024a28]
mov ebx, edi
mov r14, rax
mov dword [rax], edi
add byte [rax + 1], 0xfd
add byte [rax + 2], 0xfd
add byte [rax + 3], 0xfd
mov byte [rax], 0xfd
nop dword [rax + rax]
mov r8d, 4
movsxd rdx, ebx
sub r8d, ebx
add rdx, r14
xor r9d, r9d
mov rcx, r12
call qword [0x140025dd8]
cmp eax, 0xffffffff
je 0x140004ccf
add ebx, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140004cc9
cmp ebx, 4
jl 0x140004c00
add byte [r14], 3
mov ecx, 0xa
add byte [r14 + 1], 3
add byte [r14 + 2], 3
add byte [r14 + 3], 3
mov dword [0x140025ff4], edi
call qword [0x140025de8]
add byte [rsi], 0xfd
mov ebx, edi
add byte [rsi + 1], 0xfd
add byte [rsi + 2], 0xfd
add byte [rsi + 3], 0xfd
mov r12, qword [0x140024a28]
nop
mov r8d, 4
movsxd rdx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
mov rcx, r12
call qword [0x140025dd8]
cmp eax, 0xffffffff
je 0x140004ccf
add ebx, eax
mov eax, dword [0x140025ff4]
inc eax
mov dword [0x140025ff4], eax
cmp eax, 0xa
je 0x140004cc9
cmp ebx, 4
jl 0x140004c80
add byte [rsi], 3
add byte [rsi + 1], 3
add byte [rsi + 2], 3
add byte [rsi + 3], 3
mov dword [0x140025ff4], edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004b5d