Function at 0x1400044b0
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 [0x14001e018]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov eax, dword [0x14001ea10]
lea r9, [rbp - 0x18]
mov r15, rcx
mov dword [rbp - 0x18], eax
mov rcx, qword [0x14001ea18]
xor edi, edi
mov edx, 0xffff
mov dword [rbp - 0x14], edi
mov r8d, 0x1006
mov dword [rsp + 0x20], 8
call qword [0x14001fd30]
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 0x140004569
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x140004721
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140004721
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 0x140004a61
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 [0x14001ea18]
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 [0x14001fdb8]
cmp eax, 0xffffffff
je 0x140004a4b
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140004a45
cmp ebx, 4
jl 0x1400045f0
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 [0x14001ffc4], edi
call qword [0x14001fdc8]
mov r14, qword [0x14001ea18]
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 [0x14001fdb8]
cmp eax, 0xffffffff
je 0x140004a4b
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140004a45
cmp ebx, 4
jl 0x140004680
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 [0x14001ffc4], 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 0x14000470a
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 0x140004739
mov esi, 0x400
jmp 0x140004742
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [rbp - 0x20]
shl rsi, 0x20
or rsi, r14
jmp 0x14000456c
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 [0x14001fdc8]
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 [0x14001ea18]
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 [0x14001fdb8]
cmp eax, 0xffffffff
je 0x1400049f8
add r14d, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x1400049f2
cmp r14d, 8
jl 0x1400047a0
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 [0x14001ffc4], 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 [0x14001fdc8]
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 [0x14001ea18]
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 [0x14001fdb8]
cmp eax, 0xffffffff
je 0x1400049e7
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x1400049e1
cmp ebx, 4
jl 0x140004860
add byte [r14], 3
add byte [r14 + 1], 3
add byte [r14 + 2], 3
add byte [r14 + 3], 3
mov dword [0x14001ffc4], 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 0x140004972
test rbx, rbx
je 0x14000493c
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 0x140004910
mov r8d, 0x400
mov rdx, rbx
mov rcx, r15
call fcn.140001e60
test eax, eax
je 0x1400049da
mov r8d, 0x400
mov rdx, rbx
call fcn.140001f20
cmp eax, 0xffffffff
je 0x1400049da
inc edi
movsxd rax, edi
cmp rax, r13
jb 0x1400048f6
test rbx, rbx
je 0x14000498b
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 0x1400049bd
test esi, esi
je 0x1400049bd
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.140007860
mov r8d, esi
mov rdx, rbx
mov rcx, r15
call fcn.140001e60
test eax, eax
je 0x1400049da
mov r8d, esi
mov rdx, rbx
call fcn.140001f20
test rbx, rbx
je 0x140004a0c
jmp 0x1400049f8
mov dword [0x14001ffc4], edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
jmp 0x140004a01
mov dword [0x14001ffc4], 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.140005d50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [0x14001ffc4], 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 0x140004a1d
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 [0x14001ea18]
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 [0x14001fdb8]
cmp eax, 0xffffffff
je 0x140004b8f
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140004b89
cmp ebx, 4
jl 0x140004ac0
add byte [r14], 3
mov ecx, 0xa
add byte [r14 + 1], 3
add byte [r14 + 2], 3
add byte [r14 + 3], 3
mov dword [0x14001ffc4], edi
call qword [0x14001fdc8]
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 [0x14001ea18]
nop
mov r8d, 4
movsxd rdx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
mov rcx, r12
call qword [0x14001fdb8]
cmp eax, 0xffffffff
je 0x140004b8f
add ebx, eax
mov eax, dword [0x14001ffc4]
inc eax
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140004b89
cmp ebx, 4
jl 0x140004b40
add byte [rsi], 3
add byte [rsi + 1], 3
add byte [rsi + 2], 3
add byte [rsi + 3], 3
mov dword [0x14001ffc4], 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 0x140004a1d