Function at 0x10000607c
Capabilities:
Get file size

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x490
mov rax, qword [0x10000e160]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, rcx
lea rcx, [r11 - 0x436]
xor r15d, r15d
xor edx, edx
mov r8d, 0x3fe
mov word [r11 - 0x438], r15w
call sub.msvcrt.dll_memset
mov rcx, qword [0x10000e7c8]
mov eax, 0x1f90
mov word [rsp + 0x50], ax
mov rax, qword [rsi + 0x888]
lea r8, [rsp + 0x80]
mov r9d, 0x200
mov edx, 0x910
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x58], r15
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rsi + 0x890]
lea r9, [rsp + 0x80]
xor r8d, r8d
mov edx, 0x408
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, dword [rsi + 0x230]
mov rdx, qword [rsi + 0x228]
lea r8, [0x100001d90]
lea rcx, [rsp + 0x40]
call fcn.100008050
mov rbx, qword [rsp + 0x48]
cmp eax, r15d
jge 0x100006195
cmp rbx, r15
jne 0x100006187
mov r9d, dword [rsi + 0x230]
mov rdx, qword [rsi + 0x228]
lea r8, [0x100001da0]
lea rcx, [rsp + 0x40]
call fcn.100008050
mov rbx, qword [rsp + 0x48]
mov edi, eax
jmp 0x10000618c
mov edi, 0x8000ffff
cmp edi, r15d
jl 0x10000641f
cmp rbx, r15
je 0x1000061ad
lea rcx, [rsp + 0x40]
call fcn.1000081a8
mov rbx, qword [rsp + 0x48]
mov edi, eax
jmp 0x1000061b2
mov edi, 0x8000ffff
cmp edi, r15d
jl 0x100006409
lea r12, [rsi + 0x860]
mov rbp, qword [r12]
jmp 0x1000063ec
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x400
call sub.msvcrt.dll_memset
mov rcx, qword [0x10000e7c8]
lea r8, [rsp + 0x80]
mov r9d, 0x200
mov edx, 0x913
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rsi + 0x890]
lea r9, [rsp + 0x80]
xor r8d, r8d
mov edx, 0x408
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
mov qword [rsp + 0x30], r15
lea rcx, [rbp - 0x210]
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x10000626e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
jmp 0x10000638e
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, r15d
jne 0x10000629b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
jmp 0x100006385
cmp dword [rsp + 0x74], r15d
je 0x1000062ac
mov edi, 0x80070008
jmp 0x100006385
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0x80]
xor edx, edx
mov dword [rsi + 0x874], eax
mov r8d, 0x400
mov dword [rbp - 8], eax
call sub.msvcrt.dll_memset
mov rcx, qword [0x10000e7c8]
lea r8, [rsp + 0x80]
mov r9d, 0x200
mov edx, 0x911
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rsi + 0x890]
lea r9, [rsp + 0x80]
xor r8d, r8d
mov edx, 0x408
call qword [sym.imp.USER32.dll_SendMessageW]
lea r10, [rsi + 0x244]
lea rdx, [rbp - 0x210]
mov rcx, r10
sub rdx, r10
mov r11d, 0x104
lea rax, [r11 + 0x7ffffefa]
cmp rax, r15
je 0x100006349
movzx eax, word [rdx + rcx]
cmp ax, r15w
je 0x100006349
mov word [rcx], ax
add rcx, 2
sub r11, 1
jne 0x100006326
cmp r11, r15
jne 0x100006352
sub rcx, 2
mov word [rcx], r15w
cmp rbx, r15
je 0x100006380
mov r9d, dword [rsi + 0x874]
lea rcx, [rsp + 0x40]
mov r8, r13
mov rdx, r10
mov qword [rsp + 0x20], rsi
call fcn.100008a28
mov rbx, qword [rsp + 0x48]
mov edi, eax
jmp 0x100006385
mov edi, 0x8000ffff
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x400
call sub.msvcrt.dll_memset
mov rcx, qword [0x10000e7c8]
lea r8, [rsp + 0x80]
mov r9d, 0x200
mov edx, 0x912
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rsi + 0x890]
lea r9, [rsp + 0x80]
xor r8d, r8d
mov edx, 0x408
call qword [sym.imp.USER32.dll_SendMessageW]
cmp edi, r15d
mov dword [rbp + 0x10], edi
jl 0x1000063f5
mov rbp, qword [rbp]
cmp rbp, r12
jne 0x1000061cb
cmp rbx, r15
je 0x100006443
lea rcx, [rsp + 0x40]
call fcn.100008448
mov rbx, qword [rsp + 0x48]
cmp rbx, r15
je 0x100006443
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, r15
mov qword [rsp + 0x48], rbx
cmp rbx, r15
je 0x100006443
cmp dword [rsp + 0x40], r15d
je 0x10000643a
lea rcx, [rsp + 0x40]
call fcn.100008448
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rsp + 0x58]
cmp rbx, r15
je 0x100006461
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.10000ad60
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret