Function at 0x140078330
Capabilities:
Create thread
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20000]
mov eax, 0x20100
call fcn.1400b5dc0
sub rsp, rax
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rbp + 0x1fff0], rax
mov rax, rdx
mov rbx, rcx
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r12 + 3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], r15
cmp r15, 0xffffffffffffffff
jne 0x1400783ba
mov r15d, r12d
xor dil, dil
jmp 0x1400786e4
lea rsi, [0x1401424a0]
mov qword [rbp - 0x58], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov dword [0x140142c28], 4
mov byte [rsp + 0x40], 0
lea rdx, [rsp + 0x54]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x50]
movabs r13, 0x624dd2f1a9fbe77
mov rax, r13
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 9
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x64], r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rsp + 0x68], rax
lea rcx, str.Converting_boot_time_event_data
call fcn.1400b0640
mov rdx, rax
lea rcx, str.Converting_boot_time_event_data
call fcn.1400b0780
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x68], r12
cmp dword [rsp + 0x60], 0
je 0x140078520
test rbx, rbx
je 0x14007848b
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp - 0x38]
add eax, dword [rbp - 0x40]
cdq
sub eax, edx
sar eax, 1
mov dword [rbp - 0x78], eax
mov eax, dword [rbp - 0x34]
add eax, dword [rbp - 0x3c]
jmp 0x1400784a6
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
mov dword [rbp - 0x78], eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
mov dword [rbp - 0x74], eax
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetAncestor]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
mov qword [rbp - 0x68], rax
test rax, rax
je 0x1400784f8
call qword [sym.imp.USER32.dll_GetDesktopWindow]
cmp rbx, rax
je 0x1400784f8
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
test rax, rax
jne 0x1400784d1
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0x60]
lea r8, [0x1400219f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp - 0x70], rax
mov r14, r12
cmp byte [rsp + 0x40], r14b
jne 0x140078638
nop
xor edx, edx
mov rcx, qword [0x140142c20]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140078638
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x20]
mov r8d, 0x20000
lea rdx, [rbp - 0x1c]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140078638
mov r8d, dword [rbp - 0x20]
test r8d, r8d
je 0x140078638
mov ebx, r12d
cmp r8d, 0x34
jb 0x140078638
nop word [rax + rax]
mov eax, ebx
lea rcx, [rbp - 0x1c]
add rcx, rax
movzx edx, word [rcx + 0x28]
lea edi, [rdx*8 + 0x34]
add edi, dword [rcx + 0x2c]
lea esi, [rdi + rbx]
cmp esi, r8d
ja 0x1400785e5
mov edx, edi
call fcn.140078be0
mov eax, edi
add r14, rax
mov rax, r13
mul r14
mov rax, r14
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 9
mov dword [rsp + 0x64], eax
mov ebx, esi
mov r8d, dword [rbp - 0x20]
mov eax, r8d
sub eax, esi
cmp eax, 0x34
jae 0x140078590
lea rsi, [0x1401424a0]
test ebx, ebx
je 0x140078638
xor edx, edx
mov rcx, rsi
call fcn.140032900
sub ebx, dword [rbp - 0x20]
movsxd rax, ebx
mov qword [rsp + 0x48], rax
mov r9d, 1
lea r8, [rsp + 0x4c]
mov edx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x48], eax
cmp eax, 0xffffffff
je 0x140078721
mov r14, qword [rsp + 0x48]
cmp byte [rsp + 0x40], 0
je 0x140078530
mov dil, 1
mov dword [0x140142c28], r12d
cmp dword [rsp + 0x60], 0
je 0x1400786ca
cmp qword [rbp - 0x80], 0
jne 0x140078666
mov ecx, gethostbyaddr
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rbp - 0x80], 0
je 0x140078654
xor r9d, r9d
mov edx, VarUI4FromDisp
lea r8d, [r9 + 1]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x1400786ca
nop
call qword [sym.imp.USER32.dll_GetDesktopWindow]
cmp rbx, rax
je 0x1400786ca
mov edx, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
test rax, rax
jne 0x1400786a0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400786da
call fcn.1400b0810
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
test r15, r15
je 0x1400786f3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x1fff0]
xor rcx, rsp
call fcn.1400b5660
mov rbx, qword [rsp + 0x20150]
add rsp, 0x20100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor dil, dil
jmp 0x14007863b