Function at 0x4094ab
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
push 2
push 3
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [esi + 0x30]
call fcn.0040c671
test eax, eax
jne 0x4094e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40950e
mov esi, 0x3e3
jmp 0x40950e
mov eax, dword [esi + 4]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 4], eax
jne 0x40951f
push ebx
push 2
push 4
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [esi + 0x30]
call fcn.0040c671
xor esi, esi
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
leave
ret 0x10
mov eax, dword [ebp - 4]
push 0xffffffffffffffff
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [esi + 0x18]
call fcn.00409362
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
je 0x40970d
push 2
lea eax, [ebp - 0x14]
push eax
push 5
push dword [ebp + 0x10]
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x14]
mov dword [ebp - 0x14], edi
push dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
push dword [esi + 0x30]
mov dword [ebp - 8], ebx
call fcn.0040c671
cmp eax, ebx
je 0x409715
cmp eax, 1
jne 0x4096d3
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4096b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 5
je 0x4095f7
cmp edi, 0x20
je 0x4095f7
cmp edi, 0x4c8
je 0x4095f7
cmp edi, ebx
je 0x4096bb
cmp edi, 2
je 0x4095bd
cmp edi, 3
je 0x4095bd
push 0x10
jmp 0x4095bf
push 0x40
pop eax
push dword [ebp + 8]
or eax, 0x20000000
push ebx
push 0xef8a
push eax
push dword [esi + 0x30]
call fcn.00404dc2
add esp, 0x14
cmp edi, 2
je 0x4095e8
cmp edi, 3
je 0x4095e8
push 0x10
jmp 0x4095ea
push 0x40
pop eax
push edi
push eax
push dword [esi + 0x30]
call fcn.00405579
jmp 0x409658
mov eax, dword [ebp - 4]
or dword [eax + 0x24], 1
mov edi, dword [ebp + 8]
push ebx
push dword [esi + 0x30]
push edi
call fcn.0040c914
push eax
push ebx
push edi
push esi
call fcn.00403ae5
cmp eax, ebx
je 0x40968c
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x14
push dword [ebp + 0x10]
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x14]
mov dword [ebp - 0x14], edi
push dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
push dword [esi + 0x30]
mov dword [ebp - 8], 2
call fcn.0040c671
xor edi, edi
push dword [ebp + 8]
push ebx
push 0xef8b
push 0x30
push dword [esi + 0x30]
call fcn.00404dc2
add esp, 0x14
cmp edi, ebx
je 0x4096d5
push ebx
lea eax, [ebp - 0x14]
push eax
push 7
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [esi + 0x30]
call fcn.0040c671
cmp eax, ebx
je 0x409729
cmp eax, 2
je 0x4096d5
mov edi, dword [ebp + 8]
jmp 0x40957e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
je 0x409642
push dword [ebp + 8]
push ebx
push 0xef8c
push 0x20000010
push dword [esi + 0x30]
call fcn.00404dc2
add esp, 0x14
push edi
push 0x10
jmp 0x4095ed
xor edi, edi
push dword [ebp + 8]
push ebx
push 0xef89
push 0x30
push dword [esi + 0x30]
call fcn.00404dc2
add esp, 0x14
jmp 0x4096d5
xor edi, edi
push ebx
lea eax, [ebp - 0x14]
push eax
push 6
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [esi + 0x30]
call fcn.0040c671
push dword [ebp + 8]
call fcn.0041a398
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x40951c
jmp 0x4094f4
push 8
pop esi
jmp 0x40950c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jne 0x409726
mov esi, 0x3e3
push edi
jmp 0x40973d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jne 0x40973a
mov esi, 0x3e3
push dword [ebp + 8]
call fcn.0041a398
jmp 0x40950c