Function at 0x428210
Capabilities:
Create directory
Delete file
Get file size
Move file
Write file on windows

Disassembly:
sub esp, 0x314
mov dl, byte [0x456160]
push ebx
push ebp
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], dl
mov byte [esp + 0x220], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x221]
mov byte [esp + 0x18], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x19]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
xor ebx, ebx
push 0x459d3c
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x18]
push ecx
call esi
test eax, eax
jne 0x4282a7
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.00427cb0
add esp, 8
lea eax, [esp + 0x18]
push eax
call esi
mov cl, byte [esp + eax + 0x17]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x4282c9
lea ecx, [esp + 0x18]
push 0x445344
push ecx
call esi
lea edx, [esp + 0x18]
lea eax, [esp + 0x11c]
push edx
push eax
call ebp
lea ecx, [esp + 0x11c]
push 0x451808
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 3
push ebx
push 3
lea edx, [esp + 0x130]
push 0xc0000000
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x428378
push ebx
push 0x80
push 4
push ebx
push 3
lea eax, [esp + 0x130]
push 0xc0000000
push eax
call edi
mov esi, eax
mov dword [esp + 0x10], 1
cmp esi, 0xffffffff
jne 0x428378
lea ecx, [esp + 0x18]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x42845f
push ebx
push 0x80
push 4
push ebx
push 3
lea edx, [esp + 0x130]
push 0xc0000000
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x42845f
mov dword [esp + 0x10], 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x459e40]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ecx
jbe 0x428401
push esi
call ebx
lea eax, [esp + 0x11c]
lea ecx, [esp + 0x220]
push eax
push ecx
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x220]
push edx
call ebp
mov byte [esp + eax + 0x21f], 0x5f
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x220]
lea edx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
push 0x80
push 4
push 0
push 3
lea eax, [esp + 0x130]
push 0xc0000000
push eax
call edi
mov esi, eax
jmp 0x428407
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42843a
mov edx, dword [0x451570]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
call ebp
push eax
mov eax, dword [0x451570]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x328]
lea ecx, [esp + 0x14]
push 0
push ecx
push edi
call ebp
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret