Function at 0x4d4240
Capabilities:
Create directory
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa50
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa50], ecx
mov dword [ebp - 0xa48], 0
mov eax, dword [ebp + 8]
add eax, 0x20
push eax
lea ecx, [ebp - 0xa44]
call fcn.00479f40
mov dword [ebp - 0xa4c], 0
mov cl, byte [0x69828a]
mov byte [ebp - 0xa2c], cl
push 0xa27
push 0
lea edx, [ebp - 0xa2b]
push edx
call fcn.0063a460
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14c], 0
je 0x4d42bd
lea ecx, [ebp - 0xa44]
call fcn.00421c30
jmp 0x4d44e2
push 0x6984d4
lea ecx, [ebp - 0xa44]
call fcn.0044de90
lea ecx, [ebp - 0xa44]
call fcn.00424f20
push eax
push 0xa28
lea ecx, [ebp - 0xa2c]
push ecx
call fcn.004c9e30
lea edx, [ebp - 0xa2c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0
lea eax, [ebp - 0xa2c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov ecx, dword [ebp + 8]
add ecx, 0x104
call fcn.00425220
test eax, eax
jne 0x4d431f
jmp 0x4d43f1
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
lea ecx, [ebp - 0xa44]
call fcn.00424f20
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xa48], eax
cmp dword [ebp - 0xa48], 0
je 0x4d435b
cmp dword [ebp - 0xa48], 0xffffffff
jne 0x4d436d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1a8], 1
jmp 0x4d43f1
push 2
push 0
push 0
mov edx, dword [ebp - 0xa48]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xa4c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x104
call fcn.00425220
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x104
call fcn.00424f20
push eax
mov ecx, dword [ebp - 0xa48]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d43ce
mov ecx, dword [ebp + 8]
add ecx, 0x104
call fcn.00425220
cmp dword [ebp - 0xa4c], eax
je 0x4d43db
mov edx, dword [ebp + 8]
mov dword [edx + 0x1a8], 1
mov ecx, dword [ebp + 8]
add ecx, 0x104
call fcn.0047d9f0
xor eax, eax
jne 0x4d4308
cmp dword [ebp - 0xa48], 0
je 0x4d44b8
cmp dword [ebp - 0xa48], 0xffffffff
je 0x4d44b8
mov ecx, dword [ebp - 0xa48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa48], 0
cmp dword [ebp + 0xc], 0
jne 0x4d4439
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x78]
cmp ecx, dword [eax + 0x170]
jne 0x4d44b6
mov edx, dword [ebp + 8]
mov dword [edx + 0x14c], 1
mov ecx, dword [ebp + 8]
add ecx, 0x20
call fcn.00424f20
push eax
lea ecx, [ebp - 0xa44]
call fcn.00424f20
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4d44a9
lea ecx, [ebp - 0xa44]
call fcn.00424f20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x6984dc
mov ecx, dword [ebp + 8]
add ecx, 0x11c
call fcn.00424f20
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4d44a7
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xa50]
call fcn.004d3ce0
jmp 0x4d44b6
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1a8], 1
jmp 0x4d44d7
mov ecx, dword [ebp + 8]
add ecx, 0x104
call fcn.00425220
test eax, eax
je 0x4d44d7
mov edx, dword [ebp + 8]
mov dword [edx + 0x1a8], 1
lea ecx, [ebp - 0xa44]
call fcn.00421c30
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret 8