Function at 0x4016ed
Capabilities:
Copy file
Delete file
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x124
mov eax, dword [0x40310c]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
xor ebx, ebx
push ebx
mov ebp, 0x80
push ebp
push 3
push ebx
push 1
mov edi, 0x80000000
push edi
push 0x403720
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
call esi
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x401823
push 0x24ac
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x401817
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x40180d
push ebx
push ebx
push dword [0x403120]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [esp + 0x20]
push eax
push 0x24ab
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4017ae
push str._____Cant_get_read_access_to_the_application_loader.
push 0x4036a0
mov dword [esp + 0x18], 0xfffffffb
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov byte [ecx + eax], bl
lea eax, [esp + 0x2c]
push eax
call fcn.00401601
pop ecx
push ebx
lea ecx, [esp + 0x2c]
push ecx
push dword [esp + 0x24]
mov dword [esp + 0x30], eax
push dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jg 0x4017f9
push str._____Cant_write_loader_data_stream._Is_the_temporary_Windows_folder_accessible_
push 0x4036a0
mov dword [esp + 0x18], 0xfffffffa
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40183b
push str._____Cant_get_read_access_to_the_application_file.
push 0x4036a0
mov dword [esp + 0x18], 0xfffffffe
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x40190e
push ebx
push ebp
push 3
push ebx
push ebx
push edi
lea eax, [esp + 0x44]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x4018d6
push edi
call sub.LZ32.dll_LZInit
push 0x3c01
push 2
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
je 0x4018cd
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4018c6
push 0x403460
call fcn.00401601
pop ecx
mov ebx, eax
push ebx
call sub.LZ32.dll_LZInit
push eax
push ebp
call sub.LZ32.dll_LZCopy
test eax, eax
jg 0x4018b8
push str._____Cant_decompress_loader_data_stream.
push 0x4036a0
mov dword [esp + 0x18], 0xfffffffd
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4018ee
push str._____Cant_get_read_access_to_the_application_loader.
push 0x4036a0
mov dword [esp + 0x18], 0xfffffffc
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x2c]
push 0x403840
push eax
call fcn.0040106c
mov eax, dword [esp + 0x18]
pop ecx
pop ecx
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401d4c
add esp, 0x124
ret