Function at 0x140001ca0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov eax, dword [0x140021004]
mov dword [rsp + 0xc8], eax
mov dword [rsp + 0xcc], 0
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0xc8]
mov r8d, 0x1006
mov edx, 0xffff
mov rcx, qword [0x140021098]
call qword [0x140022278]
mov dword [rsp + 0x50], 0xffffffff
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0xf0]
call fcn.1400027f0
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x140001d5d
cmp qword [rsp + 0x48], 0
jne 0x140001ead
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0xb4], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 4
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0xb0]
mov dword [rax], ecx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 4
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0xb4]
mov dword [rax], ecx
xor r9d, r9d
mov r8d, 4
mov rdx, qword [rsp + 0x88]
mov rcx, qword [0x140021098]
call fcn.1400034c0
cmp eax, 0xffffffff
jne 0x140001e27
mov rcx, qword [rsp + 0x80]
call fcn.140004a60
mov rcx, qword [rsp + 0x88]
call fcn.140004a60
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400022fd
mov ecx, 0xa
call qword [0x1400222c0]
xor r9d, r9d
mov r8d, 4
mov rdx, qword [rsp + 0x80]
mov rcx, qword [0x140021098]
call fcn.1400034c0
cmp eax, 0xffffffff
jne 0x140001e7e
mov rcx, qword [rsp + 0x80]
call fcn.140004a60
mov rcx, qword [rsp + 0x88]
call fcn.140004a60
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400022fd
mov rcx, qword [rsp + 0x80]
call fcn.140004a60
mov rcx, qword [rsp + 0x88]
call fcn.140004a60
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400022fd
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 4
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x78], 1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x78]
mov dword [rax], ecx
xor r9d, r9d
mov r8d, 4
lea rdx, [rsp + 0x78]
mov rcx, qword [0x140021098]
call fcn.1400034c0
cmp eax, 0xffffffff
jne 0x140001f16
mov rcx, qword [rsp + 0x90]
call fcn.140004a60
jmp 0x1400022fd
mov ecx, 0xa
call qword [0x1400222c0]
mov dword [rsp + 0xb8], 0
xor r9d, r9d
mov r8d, 4
lea rdx, [rsp + 0xb8]
mov rcx, qword [0x140021098]
call fcn.1400034c0
cmp eax, 0xffffffff
jne 0x140001f60
mov rcx, qword [rsp + 0x90]
call fcn.140004a60
jmp 0x1400022fd
mov rcx, qword [rsp + 0x90]
call fcn.140004a60
cmp qword [rsp + 0x58], 0
jne 0x140001f89
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0xa8], 0
xor edx, edx
mov rax, qword [rsp + 0x58]
mov ecx, 0x400
div rcx
mov rax, rdx
test rax, rax
jne 0x140001fc5
xor edx, edx
mov rax, qword [rsp + 0x58]
mov ecx, 0x400
div rcx
mov qword [rsp + 0xa8], rax
jmp 0x140001fdf
xor edx, edx
mov rax, qword [rsp + 0x58]
mov ecx, 0x400
div rcx
inc rax
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x40], 0
xor edx, edx
mov rax, qword [rsp + 0x58]
mov ecx, 0x400
div rcx
mov rax, rdx
test rax, rax
jne 0x140002008
mov dword [rsp + 0x40], 0x400
jmp 0x14000201e
xor edx, edx
mov rax, qword [rsp + 0x58]
mov ecx, 0x400
div rcx
mov rax, rdx
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 8
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa8]
mov qword [rax], rcx
mov ecx, 0x32
call qword [0x1400222c0]
xor r9d, r9d
mov r8d, 8
mov rdx, qword [rsp + 0x98]
mov rcx, qword [0x140021098]
call fcn.1400034c0
cmp eax, 0xffffffff
jne 0x14000209d
mov rcx, qword [rsp + 0x98]
call fcn.140004a60
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400022fd
mov rcx, qword [rsp + 0x98]
call fcn.140004a60
mov ecx, 0x32
call qword [0x1400222c0]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 4
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
xor r9d, r9d
mov r8d, 4
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [0x140021098]
call fcn.1400034c0
cmp eax, 0xffffffff
jne 0x140002124
mov rcx, qword [rsp + 0xa0]
call fcn.140004a60
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400022fd
mov rcx, qword [rsp + 0xa0]
call fcn.140004a60
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x400
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0
jmp 0x140002164
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
movsxd rax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xa8]
dec rcx
cmp rax, rcx
jae 0x14000221c
mov edx, 0x400
mov rcx, qword [rsp + 0x68]
call fcn.1400037f0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x400
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
call fcn.1400032a0
mov dword [rsp + 0xbc], eax
cmp dword [rsp + 0xbc], 0
jne 0x1400021d8
mov rcx, qword [rsp + 0x68]
call fcn.140004a60
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400022fd
xor r9d, r9d
mov r8d, 0x400
mov rdx, qword [rsp + 0x68]
mov rcx, qword [0x140021098]
call fcn.1400034c0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xffffffff
jne 0x140002217
mov rcx, qword [rsp + 0x68]
call fcn.140004a60
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400022fd
jmp 0x14000215a
mov rcx, qword [rsp + 0x68]
call fcn.140004a60
movsxd rax, dword [rsp + 0x40]
mov qword [rsp + 0xd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0xd0]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x70], rax
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call fcn.1400037f0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call fcn.1400032a0
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
jne 0x1400022ad
mov rcx, qword [rsp + 0x70]
call fcn.140004a60
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400022fd
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [0x140021098]
call fcn.1400034c0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xffffffff
jne 0x1400022e8
mov rcx, qword [rsp + 0x70]
call fcn.140004a60
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400022fd
mov rcx, qword [rsp + 0x70]
call fcn.140004a60
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0xe8
ret