Function at 0x4057b8
Capabilities:
Move file
Set file attributes

Disassembly:
mov eax, 0x414d6a
call fcn.0040c7c8
sub esp, 0x27c
mov eax, dword [0x41c120]
push ebx
push esi
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x284], ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x280]
call fcn.00401722
push dword [ebp + 0xc]
mov ebx, str._s_s
push dword [ebp + 8]
lea eax, [ebp - 0x280]
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.00402ffc
mov edi, dword [ebp - 0x280]
push 0
push edi
call fcn.0040a97b
mov esi, eax
add esp, 0x18
test esi, esi
mov dword [ebp - 0x26c], esi
jne 0x405829
or esi, 0xffffffff
jmp 0x405a7d
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x270]
call fcn.00401515
cmp dword [edi - 0xc], 0
mov byte [ebp - 4], 4
je 0x40587a
mov eax, dword [ebp - 0x270]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [ebp - 0x270]
call fcn.00402cd5
cmp al, 0x5c
je 0x40586c
push 0x416904
lea ecx, [ebp - 0x270]
call fcn.0040308d
push dword [ebp - 0x270]
push esi
call fcn.00408f18
pop ecx
pop ecx
lea eax, [ebp - 0x13c]
push eax
push 0xffffffffffffffff
push esi
call fcn.00408ed9
add esp, 0xc
test eax, eax
jne 0x4058a0
mov eax, dword [ebp - 0x13c]
test eax, eax
mov dword [ebp - 0x288], eax
jg 0x4058c0
push esi
call fcn.00408f47
test al, al
pop ecx
push esi
je 0x4058b3
call fcn.0040a9e3
jmp 0x4058b8
call fcn.0040b1ad
or esi, 0xffffffff
jmp 0x405a6e
and dword [ebp - 0x274], 0
test eax, eax
jle 0x405a4e
mov edi, 0x10000000
mov esi, str.everyone
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x274]
push dword [ebp - 0x26c]
call fcn.00408ed9
add esp, 0xc
test eax, eax
jne 0x405a25
lea ecx, [ebp - 0x278]
call fcn.00401722
push dword [ebp + 0x10]
lea eax, [ebp - 0x278]
push dword [ebp - 0x270]
mov byte [ebp - 4], 5
push ebx
push eax
call fcn.00402ffc
add esp, 0x10
push edi
push esi
push 0
lea ecx, [ebp - 0x270]
call fcn.00401774
mov ecx, dword [ebp - 0x284]
push eax
call fcn.00402750
push 0xffffffffffffffff
lea ecx, [ebp - 0x270]
call fcn.00402bf5
push edi
push esi
push 0
lea ecx, [ebp - 0x278]
call fcn.00401774
mov ecx, dword [ebp - 0x284]
push eax
call fcn.00402750
push 0xffffffffffffffff
lea ecx, [ebp - 0x278]
call fcn.00402bf5
push 0x80
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 0x10]
push dword [ebp - 0x274]
push dword [ebp - 0x26c]
call fcn.0040a9ca
add esp, 0xc
test eax, eax
je 0x4059f9
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x27c]
call fcn.00401515
push str..bak
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 6
call fcn.0040308d
push 1
push dword [ebp - 0x27c]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push dword [ebp + 0x10]
push dword [ebp - 0x274]
push dword [ebp - 0x26c]
call fcn.0040a9ca
mov ecx, dword [ebp - 0x27c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004012f9
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.004012f9
inc dword [ebp - 0x274]
mov eax, dword [ebp - 0x274]
cmp eax, dword [ebp - 0x288]
jl 0x4058d9
jmp 0x405a48
push dword [ebp - 0x26c]
call fcn.00408f47
test al, al
pop ecx
push dword [ebp - 0x26c]
je 0x405a42
call fcn.0040a9e3
jmp 0x405a47
call fcn.0040b1ad
pop ecx
mov esi, dword [ebp - 0x26c]
push esi
call fcn.00408f47
test al, al
pop ecx
push esi
je 0x405a61
call fcn.0040a9e3
jmp 0x405a66
call fcn.0040b1ad
mov edi, dword [ebp - 0x280]
xor esi, esi
pop ecx
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
call fcn.004012f9
lea ecx, [edi - 0x10]
call fcn.004012f9
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004012f9
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004012f9
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004012f9
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040bd6e
leave
ret 0xc