Function at 0x415420
Capabilities:
Delete file
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55de88
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x5b5be8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x108], eax
xor eax, eax
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x48], al
push 0x5b7610
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0x48]
mov edi, edx
mov byte [0x5be5e0], 1
mov dword [ebp - 0x34], 0xf
call fcn.00409a30
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x415496
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x38]
mov bl, 0x2f
cmp byte [edx + eax - 1], bl
je 0x4154a9
lea esi, [ebp - 0x48]
call fcn.004099a0
push 0
push edi
or eax, 0xffffffff
lea esi, [ebp - 0x48]
call fcn.00409fc0
push str..new
mov eax, esi
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040b1b0
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0x10
mov ebx, dword [ebp - 0x2c]
jae 0x4154db
lea ebx, [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push ebx
call esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call ebx
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
mov byte [ebp - 0xfd], 0
mov dword [ebp - 0x104], 0
cmp dword [ebp - 0x18], edi
jae 0x415513
lea eax, [ebp - 0x2c]
push 0x58e088
push eax
lea edx, [ebp - 0x104]
push edx
call fcn.00534419
mov eax, dword [ebp - 0x104]
add esp, 0xc
test eax, eax
je 0x41556b
mov ecx, dword [ebp - 0xfc]
push eax
mov eax, dword [ebp + 0xc]
push 1
push eax
push ecx
call fcn.00534d51
add esp, 0x10
cmp eax, 1
jne 0x415553
mov byte [ebp - 0xfd], al
mov edx, dword [ebp - 0x104]
push edx
call fcn.005347c7
add esp, 4
cmp byte [ebp - 0xfd], 0
jne 0x4155e1
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x415576
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 0x20]
push 0x1d
push ecx
call fcn.00414260
add esp, 0xc
cmp dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x2c]
jae 0x415596
lea edi, [ebp - 0x2c]
push 0x80
push edi
call esi
push edi
call ebx
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jb 0x4155b7
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], esi
jb 0x4155da
mov eax, dword [ebp - 0x48]
push eax
call fcn.004310e1
add esp, 4
xor al, al
jmp 0x41587b
push 0x58c578
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.0040b1b0
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], edi
mov edi, dword [ebp - 0x64]
jae 0x415605
lea edi, [ebp - 0x64]
push 0x80
push edi
call esi
push edi
call ebx
cmp dword [ebp - 0x50], 0x10
mov edi, dword [ebp - 0x64]
jae 0x41561c
lea edi, [ebp - 0x64]
cmp dword [ebp - 0x34], 0x10
jb 0x41562d
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xfc], eax
jmp 0x415636
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xfc], ecx
push 0x80
push edi
call esi
push edi
call ebx
mov edx, dword [ebp - 0xfc]
push 0x80
push edx
call esi
mov eax, dword [ebp - 0xfc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp dword [ebp - 0x34], 0x10
mov edi, dword [ebp - 0x48]
jae 0x415669
lea edi, [ebp - 0x48]
cmp dword [ebp - 0x18], 0x10
jb 0x41567a
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xfc], ecx
jmp 0x415683
lea edx, [ebp - 0x2c]
mov dword [ebp - 0xfc], edx
push 0x80
push edi
call esi
push edi
call ebx
mov eax, dword [ebp - 0xfc]
push 0x80
push eax
call esi
mov ecx, dword [ebp - 0xfc]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp eax, 1
je 0x4157fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x34], 0x10
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x10c], eax
jae 0x4156cb
lea edi, [ebp - 0x48]
cmp dword [ebp - 0x50], 0x10
jb 0x4156dc
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0xfc], edx
jmp 0x4156e5
lea eax, [ebp - 0x64]
mov dword [ebp - 0xfc], eax
push 0x80
push edi
call esi
push edi
call ebx
mov ecx, dword [ebp - 0xfc]
push 0x80
push ecx
call esi
mov edx, dword [ebp - 0xfc]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp dword [ebp - 0x18], 0x10
mov edi, dword [ebp - 0x2c]
jae 0x415718
lea edi, [ebp - 0x2c]
push 0x80
push edi
call esi
push edi
call ebx
lea eax, [ebp - 0xf8]
push eax
mov dword [ebp - 0xf8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor edi, edi
test eax, eax
je 0x415794
mov eax, dword [ebp - 0xe8]
cmp eax, 1
je 0x41574f
cmp eax, edi
jne 0x415794
mov esi, 0x10
cmp dword [ebp - 0x50], esi
jb 0x415765
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004310e1
add esp, 4
mov ebx, 0xf
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x18], esi
jb 0x415785
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
jmp 0x415868
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x4157a4
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x108]
push eax
mov eax, dword [edx + 0x20]
push ecx
push eax
call fcn.00414260
add esp, 0xc
cmp dword [ebp - 0x50], esi
jb 0x4157cf
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004310e1
add esp, 4
mov ebx, 0xf
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x18], esi
jb 0x4157ef
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
jmp 0x4155c5
cmp dword [ebp - 0x18], 0x10
mov edi, dword [ebp - 0x2c]
jae 0x415806
lea edi, [ebp - 0x2c]
push 0x80
push edi
call esi
push edi
call ebx
cmp dword [ebp - 0x50], 0x10
mov edi, dword [ebp - 0x64]
jae 0x41581d
lea edi, [ebp - 0x64]
push 0x80
push edi
call esi
push edi
call ebx
mov esi, 0x10
cmp dword [ebp - 0x50], esi
jb 0x41583e
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004310e1
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x18], esi
jb 0x41585f
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], esi
jb 0x415879
mov eax, dword [ebp - 0x48]
push eax
call fcn.004310e1
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005320a3
mov esp, ebp
pop ebp
ret 8