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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a7ed
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x42501c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x120
call fcn.00402d10
test eax, eax
jle 0x4034b7
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
mov eax, dword [ebp - 0x18]
add eax, 0x118
push eax
call fcn.00401b60
mov ecx, dword [ebp - 0x18]
call fcn.004026d0
mov byte [ebp - 0x19], al
movzx ecx, byte [ebp - 0x19]
test ecx, ecx
jne 0x403246
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x118
call fcn.00401f70
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
mov edx, dword [ebp - 0x18]
add edx, 0x11c
push edx
call fcn.00401b60
mov ecx, dword [ebp - 0x18]
call fcn.004026d0
mov byte [ebp - 0x1a], al
movzx eax, byte [ebp - 0x1a]
test eax, eax
jne 0x403285
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x11c
call fcn.00401f70
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0x80
push 4
push 0
push 1
push 4
mov ecx, dword [ebp - 0x18]
add ecx, 0x120
call fcn.00401f70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4032e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41b590
call fcn.00403e30
add esp, 8
mov byte [ebp - 0x1b], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401e00
mov al, byte [ebp - 0x1b]
jmp 0x4034cd
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x500000
jbe 0x4033ab
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
add ecx, 0x120
call fcn.00401f70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40334f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteFile_failed_w_err_0x_08lx_n
call fcn.00403e30
add esp, 8
mov byte [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401e00
mov al, byte [ebp - 0x1c]
jmp 0x4034cd
push 0
push 0x80
push 4
push 0
push 1
push 4
mov ecx, dword [ebp - 0x18]
add ecx, 0x120
call fcn.00401f70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4033ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile_failed_w_err_0x_08lx_n
call fcn.00403e30
add esp, 8
mov byte [ebp - 0x1d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401e00
mov al, byte [ebp - 0x1d]
jmp 0x4034cd
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0xe]
push eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0xa]
push ecx
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 8]
push eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 6]
push edx
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 2]
push ecx
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
push eax
push str._4d__02d__02d__02d:_02d:_02d._03d_t_t_s_r_n
mov ecx, dword [ebp - 0x18]
add ecx, 0x124
push ecx
call fcn.00402860
add esp, 0x28
mov ecx, dword [ebp - 0x18]
add ecx, 0x124
call fcn.00402d10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x124
call fcn.00401f70
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x403479
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile_failed_w_err_0x_08lx_n
call fcn.00403e30
add esp, 8
mov byte [ebp - 0x1e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401e00
mov al, byte [ebp - 0x1e]
jmp 0x4034cd
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x28]
je 0x4034ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile_Len_failed_w_err_0x_08lx_n
call fcn.00403e30
add esp, 8
mov byte [ebp - 0x1f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401e00
mov al, byte [ebp - 0x1f]
jmp 0x4034cd
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401e00
mov al, byte [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004081dc
mov esp, ebp
pop ebp
ret 4