Function at 0x4086ac
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push edi
call fcn.00407dea
mov esi, 0x42e1e4
push 0x3c
push esi
mov dword [ebp - 0xc], eax
call fcn.0041c440
pop ecx
test eax, eax
pop ecx
je 0x408722
push esi
call fcn.00405803
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0041bb30
push 0x5c
push esi
call fcn.0041c440
add esp, 0x14
test eax, eax
jne 0x408703
push 0x3e
push esi
call fcn.0041c440
pop ecx
test eax, eax
pop ecx
je 0x408778
inc eax
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00405453
pop ecx
lea eax, [ebp - 0x124]
pop ecx
push eax
push esi
call fcn.0041bb30
pop ecx
pop ecx
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.0041bb30
cmp dword [ebp - 0xc], 0
pop ecx
pop ecx
je 0x4089c7
push esi
call fcn.004060d0
cmp eax, 1
pop ecx
mov ebx, 0x180
mov edi, 0x8321
jne 0x40875f
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x408786
push ebx
push edi
push esi
call fcn.0041b2bd
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40877f
push dword [ebp - 0xc]
call fcn.0041b254
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push eax
call fcn.0041b9a8
pop ecx
lea eax, [ebp - 0x124]
push 0x42766c
push eax
call fcn.0041bb40
push ebx
lea eax, [ebp - 0x124]
push edi
push eax
call fcn.0041b2bd
add esp, 0x14
cmp eax, 0xffffffff
je 0x40876f
push eax
call fcn.0041b9a8
mov dword [esp], 0x4274bc
push esi
call fcn.0041c744
xor ebx, ebx
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x40876f
lea eax, [ebp - 0x124]
push 0x4274c0
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.0041c744
pop ecx
mov edi, eax
pop ecx
cmp edi, ebx
push dword [ebp - 0x18]
jne 0x40880c
call fcn.0041c634
push dword [ebp - 0xc]
call fcn.0041b254
pop ecx
jmp 0x408777
lea eax, [ebp - 0x228]
push 0x100
push eax
call fcn.0041c6cd
add esp, 0xc
test eax, eax
je 0x40895b
cmp byte [ebp - 0x228], 0x5b
jne 0x4088a9
cmp dword [ebp - 0x14], ebx
je 0x40886e
cmp dword [ebp - 0x1c], ebx
jne 0x40886e
cmp dword [ebp - 8], ebx
jne 0x408852
push edi
push dword [ebp - 0x10]
call fcn.00407f61
pop ecx
mov dword [ebp - 8], 1
pop ecx
cmp dword [ebp - 4], ebx
je 0x40886e
push edi
push dword [ebp - 4]
call fcn.004081ed
push dword [ebp - 4]
call fcn.0041b254
add esp, 0xc
mov dword [ebp - 4], ebx
push dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00407e61
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4088a1
push eax
mov dword [ebp - 0x14], 1
call fcn.0040830f
pop ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
jmp 0x408909
mov dword [ebp - 0x14], ebx
jmp 0x4089b3
cmp dword [ebp - 0x14], ebx
je 0x4089b3
cmp dword [ebp - 0x1c], ebx
jne 0x408909
cmp dword [ebp - 4], ebx
je 0x40899c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 4]
call fcn.004083e8
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40899a
cmp dword [ebp - 8], 0
jne 0x4088f8
push edi
push dword [ebp - 0x10]
call fcn.00407f61
pop ecx
mov dword [ebp - 8], 1
pop ecx
cmp dword [ebp - 0x20], 0
jne 0x408907
push edi
push ebx
call fcn.00408595
pop ecx
pop ecx
xor ebx, ebx
push dword [ebp - 0x18]
lea eax, [ebp - 0x228]
push 0x100
push eax
call fcn.0041c6cd
add esp, 0xc
test eax, eax
jne 0x408828
cmp dword [ebp - 0x14], ebx
je 0x40895b
cmp dword [ebp - 0x1c], ebx
jne 0x40895b
cmp dword [ebp - 8], ebx
jne 0x408942
push edi
push dword [ebp - 0x10]
call fcn.00407f61
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x40895b
push edi
push dword [ebp - 4]
call fcn.004081ed
push dword [ebp - 4]
call fcn.0041b254
add esp, 0xc
push edi
push dword [ebp - 0xc]
call fcn.00407fd6
push dword [ebp - 0xc]
call fcn.0041b254
push edi
call fcn.0041c634
push dword [ebp - 0x18]
call fcn.0041c634
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x124]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 1
pop eax
jmp 0x40877a
xor ebx, ebx
cmp dword [ebp - 8], ebx
jne 0x4089b3
push edi
push dword [ebp - 0x10]
call fcn.00407f61
pop ecx
mov dword [ebp - 8], 1
pop ecx
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041c68a
pop ecx
pop ecx
jmp 0x408909
push 0x180
lea eax, [ebp - 0x124]
push 0x8321
push eax
call fcn.0041b2bd
add esp, 0xc
cmp eax, 0xffffffff
je 0x408778
push eax
call fcn.0041b9a8
pop ecx
lea eax, [ebp - 0x124]
push 2
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x408778
mov eax, dword [0x42e730]
test eax, eax
je 0x408778
push eax
call fcn.0041c080
pop ecx
push eax
push dword [0x42e730]
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x408992