Function at 0x180005c10
Capabilities:
Get file size
Read file on windows

Disassembly:
sub rsp, 0x508
mov rax, qword [0x180023010]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x2b4], 0
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x78], rax
lea rdx, str.9hOrMVw9VVEwepF9g9BlFPcIx67ZKXxfOI4AtcOj0leKlasIzV1ChuWSiElhJ7b8I4CDEyLtdPo6Yya8
mov rcx, qword [rsp + 0x78]
call fcn.180001050
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.180005890
mov rcx, rax
call fcn.180001390
mov rcx, rax
call qword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0xb0]
call fcn.1800012f0
cmp dword [rsp + 0x50], 0
je 0x180005ce7
mov dword [rsp + 0x2b0], 8
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
lea rdx, [rsp + 0x2b0]
mov ecx, 0x18
call qword [sym.imp.USER32.dll_BroadcastSystemMessageW]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0x104
lea rdx, [rsp + 0x2e0]
mov rcx, qword [0x180424f20]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x180005d0b
jmp 0x180006094
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x180005d4f
jmp 0x180006094
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0x80]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x180005d9a
jmp 0x180006094
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2b4]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180005dc9
jmp 0x180006094
lea rcx, [rsp + 0x2b8]
call fcn.180006110
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x88], rax
lea rdx, [0x180020038]
mov rcx, qword [rsp + 0x88]
call fcn.180001050
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.180005890
mov rcx, rax
call fcn.180001390
mov rcx, rax
call fcn.180005a50
mov byte [rsp + 0x40], al
lea rcx, [rsp + 0xd0]
call fcn.1800012f0
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x180005e92
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0x90], rax
lea rdx, str.WHiwUjb1DCtXiYlCV9t174bezF3MK_rbA9zc_2kk
mov rcx, qword [rsp + 0x90]
call fcn.180001050
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.180005890
mov rcx, rax
call fcn.180001390
mov rdx, rax
lea rcx, [rsp + 0x2b8]
call fcn.1800060e0
lea rcx, [rsp + 0xf0]
call fcn.1800012f0
jmp 0x180006054
lea rax, [rsp + 0x210]
mov qword [rsp + 0x98], rax
lea rdx, [0x180020068]
mov rcx, qword [rsp + 0x98]
call fcn.180001050
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.180005890
mov rcx, rax
call fcn.180001390
mov rcx, rax
call fcn.180005a50
mov byte [rsp + 0x41], al
lea rcx, [rsp + 0x110]
call fcn.1800012f0
movzx eax, byte [rsp + 0x41]
test eax, eax
je 0x180005f4e
lea rax, [rsp + 0x230]
mov qword [rsp + 0xa0], rax
lea rdx, str.30UUUaYzZHYqRccCAZ3a2pFm7vmTExEdCIFCNELwge3C8Q
mov rcx, qword [rsp + 0xa0]
call fcn.180001050
mov rdx, rax
lea rcx, [rsp + 0x130]
call fcn.180005890
mov rcx, rax
call fcn.180001390
mov rdx, rax
lea rcx, [rsp + 0x2b8]
call fcn.1800060e0
lea rcx, [rsp + 0x130]
call fcn.1800012f0
jmp 0x180006054
lea rax, [rsp + 0x250]
mov qword [rsp + 0xa8], rax
lea rdx, [0x180020128]
mov rcx, qword [rsp + 0xa8]
call fcn.180001050
mov rdx, rax
lea rcx, [rsp + 0x150]
call fcn.180005890
mov rcx, rax
call fcn.180001390
mov rcx, rax
call fcn.180005a50
mov byte [rsp + 0x42], al
lea rcx, [rsp + 0x150]
call fcn.1800012f0
movzx eax, byte [rsp + 0x42]
test eax, eax
je 0x180006001
lea rax, [rsp + 0x270]
mov qword [rsp + 0x68], rax
lea rdx, str.xDIWQV0iO9t7qrEVkjJSiiUNtRniD7BzNqFoLHDOT18
mov rcx, qword [rsp + 0x68]
call fcn.180001050
mov rdx, rax
lea rcx, [rsp + 0x170]
call fcn.180005890
mov rcx, rax
call fcn.180001390
mov rdx, rax
lea rcx, [rsp + 0x2b8]
call fcn.1800060e0
lea rcx, [rsp + 0x170]
call fcn.1800012f0
jmp 0x180006054
lea rax, [rsp + 0x290]
mov qword [rsp + 0x70], rax
lea rdx, str.OFR3X0FQG18zaUCyFez3pOUvzasdnvxuPkwgdI
mov rcx, qword [rsp + 0x70]
call fcn.180001050
mov rdx, rax
lea rcx, [rsp + 0x190]
call fcn.180005890
mov rcx, rax
call fcn.180001390
mov rdx, rax
lea rcx, [rsp + 0x2b8]
call fcn.1800060e0
lea rcx, [rsp + 0x190]
call fcn.1800012f0
lea rcx, [rsp + 0x2b8]
call fcn.180001390
mov r9d, 0x7cdba6e5
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.180004a40
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x2b8]
call fcn.1800012f0
xor eax, eax
test eax, eax
jne 0x180005c56
cmp qword [rsp + 0x48], 0
je 0x1800060b2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1800063b0
add rsp, 0x508
ret