Function at 0x40947b
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.0040c641
test eax, eax
jne 0x4094b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4094de
mov esi, 0x3e3
jmp 0x4094de
mov eax, dword [esi + 4]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 4], eax
jne 0x4094ef
push ebx
push 2
push 4
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [esi + 0x30]
call fcn.0040c641
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.00409332
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
je 0x4096dd
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.0040c641
cmp eax, ebx
je 0x4096e5
cmp eax, 1
jne 0x4096a3
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409689
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 5
je 0x4095c7
cmp edi, 0x20
je 0x4095c7
cmp edi, 0x4c8
je 0x4095c7
cmp edi, ebx
je 0x40968b
cmp edi, 2
je 0x40958d
cmp edi, 3
je 0x40958d
push 0x10
jmp 0x40958f
push 0x40
pop eax
push dword [ebp + 8]
or eax, 0x20000000
push ebx
push 0xef8a
push eax
push dword [esi + 0x30]
call fcn.00404d92
add esp, 0x14
cmp edi, 2
je 0x4095b8
cmp edi, 3
je 0x4095b8
push 0x10
jmp 0x4095ba
push 0x40
pop eax
push edi
push eax
push dword [esi + 0x30]
call fcn.00405549
jmp 0x409628
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.0040c8e4
push eax
push ebx
push edi
push esi
call fcn.00403ab5
cmp eax, ebx
je 0x40965c
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.0040c641
xor edi, edi
push dword [ebp + 8]
push ebx
push 0xef8b
push 0x30
push dword [esi + 0x30]
call fcn.00404d92
add esp, 0x14
cmp edi, ebx
je 0x4096a5
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.0040c641
cmp eax, ebx
je 0x4096f9
cmp eax, 2
je 0x4096a5
mov edi, dword [ebp + 8]
jmp 0x40954e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
je 0x409612
push dword [ebp + 8]
push ebx
push 0xef8c
push 0x20000010
push dword [esi + 0x30]
call fcn.00404d92
add esp, 0x14
push edi
push 0x10
jmp 0x4095bd
xor edi, edi
push dword [ebp + 8]
push ebx
push 0xef89
push 0x30
push dword [esi + 0x30]
call fcn.00404d92
add esp, 0x14
jmp 0x4096a5
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.0040c641
push dword [ebp + 8]
call fcn.0041a0e7
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x4094ec
jmp 0x4094c4
push 8
pop esi
jmp 0x4094dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jne 0x4096f6
mov esi, 0x3e3
push edi
jmp 0x40970d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jne 0x40970a
mov esi, 0x3e3
push dword [ebp + 8]
call fcn.0041a0e7
jmp 0x4094dc