Function at 0x421433
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433e88
push 0x42e480
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffff758
push ebx
push esi
push edi
mov dword [ebp - 0x8b8], ecx
mov dword [ebp - 0x124], 0xffffffff
mov dword [ebp - 0x33c], 0xffffffff
mov dword [ebp - 0x230], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x558]
push ecx
lea edx, [ebp - 0x65c]
push edx
lea eax, [ebp - 0x76c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea edx, [ebp - 0x76c]
push edx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x65c]
push ecx
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x338]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..bak
lea edx, [ebp - 0x338]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x22c]
push eax
push 0
push 0x43d944
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x42151c
jmp 0x42177e
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0xffffffff
jne 0x42154f
jmp 0x42177e
cmp dword [ebp + 0xc], 0xffffffff
jne 0x421561
mov eax, dword [ebp - 0x8b8]
mov ecx, dword [eax + 0x2c]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx*4 + 0x43d910]
mov dword [ebp - 0x664], eax
mov ecx, dword [ebp - 0x664]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x668], eax
mov ecx, dword [ebp - 0x8b8]
add ecx, 0x38
call fcn.00423270
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x348], 0
jmp 0x4215bf
mov edx, dword [ebp - 0x348]
add edx, 1
mov dword [ebp - 0x348], edx
mov eax, dword [ebp - 0x348]
cmp eax, dword [ebp - 0x340]
jge 0x4216a8
mov ecx, dword [ebp - 0x348]
push ecx
mov ecx, dword [ebp - 0x8b8]
add ecx, 0x38
call fcn.00422f90
mov edx, dword [eax + 4]
mov dword [ebp - 0x770], edx
cmp dword [ebp - 0x770], 0
jle 0x421652
push 0
lea eax, [ebp - 0x774]
push eax
mov ecx, dword [ebp - 0x770]
push ecx
mov edx, dword [ebp - 0x348]
push edx
mov ecx, dword [ebp - 0x8b8]
add ecx, 0x38
call fcn.00422f90
mov eax, dword [eax]
push eax
call fcn.004206d0
add esp, 4
push eax
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42163f
jmp 0x42177e
mov edx, dword [ebp - 0x770]
cmp edx, dword [ebp - 0x774]
je 0x421652
jmp 0x42177e
mov eax, dword [ebp - 0x340]
sub eax, 1
cmp dword [ebp - 0x348], eax
jge 0x4216a3
push 0
lea ecx, [ebp - 0x774]
push ecx
mov edx, dword [ebp - 0x668]
push edx
mov eax, dword [ebp - 0x664]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x421690
jmp 0x42177e
mov edx, dword [ebp - 0x668]
cmp edx, dword [ebp - 0x774]
je 0x4216a3
jmp 0x42177e
jmp 0x4215b0
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x124], 0xffffffff
mov ecx, dword [ebp - 0x8b8]
cmp dword [ecx + 0x30], 0
je 0x421728
lea edx, [ebp - 0x8b4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x33c], eax
cmp dword [ebp - 0x33c], 0xffffffff
je 0x421726
lea ecx, [ebp - 0x338]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x338]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x42170f
jmp 0x42177e
mov ecx, dword [ebp - 0x33c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x33c], 0xffffffff
jmp 0x421732
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x421749
jmp 0x42177e
cmp dword [ebp + 0x10], 0
je 0x421774
push 0
mov edx, dword [ebp - 0x8b8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x8b8]
call dword [eax + 0x5c]
mov ecx, dword [ebp - 0x8b8]
mov edx, dword [ebp - 0x8b8]
mov eax, dword [edx + 0x60]
mov dword [ecx + 0x64], eax
mov dword [ebp - 0x230], 1
mov dword [ebp - 4], 0xffffffff
call fcn.0042178c
jmp 0x4217c6
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc