Function at 0x1400361b0
Capabilities:
Get file size

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x140104508]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r12d, r9d
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
mov r15d, 1
xor r13d, r13d
cmp qword [rcx + 0x140], r13
je 0x140036245
mov dword [rcx + 0x148], r15d
add rcx, 0x150
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [rbp + 0x188], r15d
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rbp + 0x140], r13
lea rbx, [rbp + 0x60]
mov qword [rsp + 0x50], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
test rdi, rdi
jne 0x140036262
mov eax, r13d
jmp 0x14003626b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rdi
mov edx, eax
lea rcx, [rbp + 0x48]
call fcn.140001a10
cmp esi, 0xffffffff
jne 0x14003628f
mov rdx, qword [rbp + 0x48]
mov rcx, rbp
call fcn.140032b10
mov dword [rbp + 0x50], eax
jmp 0x140036292
mov dword [rbp + 0x50], esi
test rdi, rdi
jne 0x1400362a8
lea rcx, [rbp + 0x88]
call fcn.140032910
jmp 0x140036330
mov rsi, qword [rbp + 0x48]
lea rdi, [rbp + 0x88]
cmp qword [rdi], 0xffffffffffffffff
je 0x1400362c1
mov rcx, rdi
call fcn.140032910
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, r15d
mov edx, 0x80000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x140036553
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 8], rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x18], rax
nop dword [rax + rax]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
lea rdx, [rsp + 0x58]
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
mov rdx, qword [rbp + 0xe0]
mov rcx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdi, rax
xor edx, edx
lea r8d, [rdx + 0x5c]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x70]
mov edx, VarDateFromDisp
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [rsp + 0x74]
mov dword [rbp + 0xe8], ecx
mov ecx, dword [rsp + 0x70]
mov dword [rbp + 0xec], ecx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov qword [rbp + 0x120], r13
mov qword [rbp + 0x118], r13
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0x130], rax
mov qword [rbp + 0x100], r13
mov dword [rbp + 0xf8], r13d
lea rdi, [rbp + 0x150]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x1400363fc
call qword [sym.imp.GDI32.dll_DeleteObject]
mov qword [rdi + 0x28], r13
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14003640f
call qword [sym.imp.GDI32.dll_DeleteObject]
mov qword [rdi + 0x30], r13
mov dword [rdi + 0x38], r13d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbp + 0x190]
call fcn.140032a50
mov eax, dword [rbp + 0x50]
test eax, eax
jne 0x140036478
mov r8, qword [rbp + 0xa0]
mov ecx, dword [rbp + 0x108]
test r8, r8
je 0x14003644e
lea eax, [rcx*4 + 0xb]
mov dword [rbp + 0xf8], eax
movsxd rcx, ecx
xor edx, edx
mov rax, r8
div rcx
mov qword [rbp + 0x100], rax
test rdx, rdx
je 0x140036530
inc rax
mov qword [rbp + 0x100], rax
jmp 0x140036530
cmp eax, 1
jne 0x1400364fa
mov rdx, qword [rbp + 0x48]
mov rcx, rbp
cmp r12d, 0xffffffff
jne 0x140036498
lea r8, [rbp + 0x58]
call fcn.140033780
mov dword [rbp + 0x54], eax
jmp 0x1400364b7
mov dword [rbp + 0x54], r12d
mov dword [rsp + 0x40], r13d
lea r8, [rsp + 0x40]
call fcn.140033780
cmp r12d, eax
jne 0x1400364b7
mov eax, dword [rsp + 0x40]
mov dword [rbp + 0x58], eax
mov dword [rbp + 0x148], r13d
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
mov r9, rbp
lea r8, [0x140036750]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x140], rax
xor r9d, r9d
xor edx, edx
mov r8d, 0xfa
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_SetTimer]
jmp 0x140036530
cmp eax, 2
je 0x1400364b7
cmp eax, 3
jne 0x140036530
mov dword [rbp + 0x148], r13d
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
mov r9, rbp
lea r8, [0x140036750]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x140], rax
mov rcx, rbp
call fcn.1400365d0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x14003655f
lea rcx, [rbp + 0x48]
call fcn.140008640
mov r15d, r13d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, r15d
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400bf680
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret