Function at 0x495a40
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b4c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov esi, ecx
push ebx
mov dword [ebp - 0x1c], esi
call fcn.0047b090
lea ecx, [ebp - 0xdc]
call fcn.004950e0
lea eax, [ebp - 0xdc]
mov ecx, esi
push eax
mov dword [ebp - 4], ebx
call fcn.004966c0
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xdc]
push edi
call fcn.004951d0
push edi
mov ecx, esi
call fcn.00496210
mov ecx, dword [ebp + 0xc]
mov eax, 1
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x54], ebx
cmp eax, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x50], ecx
je 0x495d75
lea ecx, [ebp - 0x88]
call fcn.00576b13
mov dword [ebp - 0x68], 0x5b7490
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x88], 0x5b7878
mov dword [ebp - 0x6c], esi
mov edx, dword [esi]
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x88]
push eax
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call dword [edx + 0x8c]
lea ecx, [ebp - 0xb0]
call fcn.004ba480
push ebx
push 0x1000
lea edx, [ebp - 0xb0]
push ebx
push edx
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.0057b603
push edi
lea eax, [ebp - 0x264]
push str._s_Controls
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x164]
call fcn.004ca330
mov eax, dword [esi]
lea edx, [ebp - 0x54]
mov dword [ebp - 0x148], edx
lea ecx, [ebp - 0x88]
lea edx, [ebp - 0x164]
push ecx
push edx
mov ecx, esi
mov byte [ebp - 4], 4
call dword [eax + 0x84]
test eax, eax
je 0x495d22
lea ecx, [ebp - 0x120]
call fcn.0057b914
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0xb0]
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x14], ebx
call fcn.004ba690
mov edx, dword [0x5f2384]
mov dword [ebp + 8], edx
mov ecx, dword [ebp + 0xc]
mov eax, 0x3e80
cmp eax, ecx
mov byte [ebp - 4], 5
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x18], ecx
je 0x495cb3
lea edx, [ebp + 8]
push edi
push edx
mov ecx, esi
call fcn.00495920
cmp eax, ebx
je 0x495cb3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.005778a3
mov ecx, dword [ebp + 8]
push ebx
push 0x1001
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.005779b5
cmp eax, ebx
je 0x495c82
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
push edx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00577b0c
call fcn.0058b5c7
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 4]
push edx
lea eax, [ebp - 0x264]
push 0x5b9eb4
push eax
call fcn.0057f86f
call fcn.0058b5c7
mov ecx, dword [eax + 4]
push 1
lea edx, [ebp - 0x264]
push str.LoadFromFile
push edx
call fcn.0057f7fa
lea ecx, [ebp - 0x2c]
call fcn.00577bd0
mov eax, dword [ebp + 8]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.005778f8
mov dword [ebp - 4], 5
jmp 0x495cf2
call fcn.0058b5c7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + 4]
push ecx
push edx
lea ecx, [ebp - 0x264]
push 0x5b9eb4
push ecx
mov ecx, eax
call fcn.0057f90f
call fcn.0058b5c7
mov eax, dword [eax + 4]
push ebx
lea edx, [ebp - 0x264]
push str.LoadFromFile
push edx
mov ecx, eax
call fcn.0057f7fa
lea ecx, [ebp - 0x120]
call fcn.0057b725
lea ecx, [ebp - 0xb0]
call fcn.00582d46
mov eax, dword [ebp - 0x14]
push eax
call fcn.0045147b
add esp, 4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.005772b0
jmp 0x495d3a
call fcn.0058b5c7
mov eax, dword [eax + 4]
push ebx
lea ecx, [ebp - 0x264]
push ebx
push ecx
mov ecx, eax
call fcn.0057f86f
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 3
call fcn.004c8e20
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.0057b6df
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 1
call fcn.004ba520
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], bl
call fcn.0047b620
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x50]
test eax, eax
je 0x495d9d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
cmp dword [eax + 0x174], ebx
je 0x495d9d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x50]
mov ecx, eax
call fcn.004f36f0
mov eax, dword [esi + 0x70]
lea ecx, [ebp - 0xdc]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 0x48], ebx
call fcn.00495120
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8