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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55df38
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5b5be8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
jl 0x4147ff
mov eax, ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4145c1
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.00409b10
xor esi, esi
push 4
mov eax, str..new
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.0040a0b0
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
mov dword [ebp - 0x68], esi
cmp dword [ebp - 0x18], edi
jae 0x4145fd
lea eax, [ebp - 0x2c]
push 0x58e088
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.00534419
mov eax, dword [ebp - 0x68]
add esp, 0xc
cmp eax, esi
je 0x4147ee
push eax
push 1
lea edx, [ebp + 0xc]
push 4
push edx
call fcn.00534d51
add esp, 0x10
cmp eax, 1
je 0x414678
mov eax, dword [ebp - 0x6c]
push ebx
push 0x1d
push eax
call fcn.00414260
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.005347c7
mov esi, dword [ebp - 0x2c]
add esp, 0x10
cmp dword [ebp - 0x18], edi
jae 0x414653
lea esi, [ebp - 0x2c]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x18], edi
jb 0x4147ff
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x4147f7
mov eax, dword [ebp - 0x68]
push eax
call fcn.005347c7
mov eax, ebx
add esp, 4
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], esi
mov byte [ebp - 0x64], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4146a0
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [ebp - 0x64]
call fcn.00409b10
mov ecx, esi
push ecx
mov eax, 0x58c578
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040b2f0
add esp, 4
mov esi, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x50], esi
jb 0x4146e6
mov edx, dword [ebp - 0x64]
push edx
call fcn.004310e1
add esp, 4
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x34], esi
jae 0x414703
lea edi, [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x80
push ebx
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp dword [ebp - 0x18], 0x10
mov edi, dword [ebp - 0x2c]
jae 0x414734
lea edi, [ebp - 0x2c]
push 0x80
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x80
push edi
call esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp eax, 1
je 0x4147bf
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x414768
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00414260
mov edi, dword [ebp - 0x48]
add esp, 0xc
cmp dword [ebp - 0x34], esi
jae 0x414787
lea edi, [ebp - 0x48]
mov esi, ebx
call fcn.00414540
cmp dword [ebp - 0x18], 0x10
mov esi, dword [ebp - 0x2c]
jae 0x41479a
lea esi, [ebp - 0x2c]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [ebp - 0x48]
call fcn.004097a0
lea esi, [ebp - 0x2c]
call fcn.004097a0
jmp 0x4147ff
cmp dword [ebp - 0x34], 0x10
mov edi, dword [ebp - 0x48]
jae 0x4147cb
lea edi, [ebp - 0x48]
push 0x80
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [ebp - 0x48]
call fcn.004097a0
lea esi, [ebp - 0x2c]
call fcn.004097a0
mov al, 1
jmp 0x414801
cmp dword [ebp - 0x18], edi
jb 0x4147ff
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004310e1
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005320a3
mov esp, ebp
pop ebp
ret