Function at 0x412ebd
Capabilities:
Delete directory
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
push 0
mov bl, dl
push ecx
call fcn.00413c78
mov esi, eax
test esi, esi
jne 0x412edf
xor al, al
jmp 0x4131bb
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x10]
mov edi, eax
and byte [ebp - 5], 0
lea eax, [ebp - 0x11]
lea ecx, [ebp - 0x50]
push eax
lea eax, [ebp - 5]
push eax
push edi
mov dword [ebp - 0x40], edi
call fcn.004131c1
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x4c]
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x3c]
call fcn.0040fe10
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], eax
call fcn.00410221
xor esi, esi
lea eax, [ebp - 0x18]
push esi
push eax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x3c]
push eax
call fcn.0040fa09
test al, al
jne 0x412f4a
xor bl, bl
jmp 0x4131a8
lea ecx, [ebp - 0x3c]
call fcn.0041320b
cmp ax, 0x4949
jne 0x412f43
test bl, bl
je 0x412f7b
lea eax, [ebp - 0x154]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x154]
push eax
call fcn.004159a4
pop ecx
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x18], esi
je 0x412f8b
mov edx, dword [ebp + 0x10]
xor ecx, ecx
call dword [ebp + 0xc]
lea ecx, [ebp - 0x3c]
call fcn.004101e2
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00401d29
sub esi, eax
je 0x41318f
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp + 0xc], 0
je 0x412fd2
lea ecx, [ebp - 0x2c]
call fcn.00401d29
imul eax, eax, 0x64
cdq
idiv dword [ebp - 0x40]
mov esi, eax
cmp dword [ebp - 0x18], esi
je 0x412fd2
mov edx, dword [ebp + 0x10]
mov ecx, esi
call dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x3c]
call fcn.0041320b
movzx eax, ax
sub eax, 0x1000
je 0x413096
sub eax, 0x100
je 0x41303f
dec eax
je 0x413039
sub eax, 0xff
je 0x41300f
dec eax
je 0x413009
lea ecx, [ebp - 0x3c]
call fcn.00410181
jmp 0x413175
cmp byte [ebp + 8], 0
jne 0x412ffc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x3c]
push eax
call fcn.00413460
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x413027
lea eax, [ebp - 0x1c]
jmp 0x41302a
add eax, 0xd
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x1c]
jmp 0x413170
cmp byte [ebp + 8], 0
jne 0x412ffc
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x3c]
push eax
call fcn.00413460
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x413057
lea eax, [ebp - 0xc]
jmp 0x41305a
add eax, 0xd
push eax
call edi
test eax, eax
jne 0x41308e
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x41306d
lea eax, [ebp - 0xc]
jmp 0x413070
add eax, 0xd
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x413088
lea eax, [ebp - 0xc]
jmp 0x41308b
add eax, 0xd
push eax
call edi
lea ecx, [ebp - 0xc]
jmp 0x413170
lea eax, [ebp - 0x12]
push 2
push eax
lea ecx, [ebp - 0x3c]
call fcn.00413308
lea eax, [ebp - 4]
lea ecx, [ebp - 0x3c]
push eax
call fcn.004133d8
movzx ebx, word [ebp - 0x12]
lea ecx, [ebp - 0x3c]
call fcn.00410181
lea ecx, [ebp - 4]
call fcn.0040917d
mov esi, eax
mov eax, esi
dec esi
test eax, eax
je 0x413109
cmp dword [ebp - 4], 0
jne 0x4130d8
lea eax, [ebp - 4]
jmp 0x4130e7
lea ecx, [ebp - 4]
call fcn.00408ccd
mov eax, dword [ebp - 4]
lea eax, [esi + eax + 0xd]
cmp byte [eax], 0x5c
jne 0x4130c6
cmp dword [ebp - 4], 0
jne 0x4130f7
lea eax, [ebp - 4]
jmp 0x413106
lea ecx, [ebp - 4]
call fcn.00408ccd
mov eax, dword [ebp - 4]
lea eax, [esi + eax + 0xd]
and byte [eax], 0
cmp dword [ebp - 4], 0
jne 0x413114
lea eax, [ebp - 4]
jmp 0x413123
lea ecx, [ebp - 4]
call fcn.00408ccd
mov eax, dword [ebp - 4]
lea eax, [esi + eax + 0xe]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040168c
mov eax, dword [ebp - 4]
test eax, eax
jne 0x413138
lea eax, [ebp - 4]
jmp 0x41313b
add eax, 0xd
push ebx
push eax
call fcn.00414750
mov esi, eax
cmp esi, 0xffffffff
je 0x413165
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x413155
lea eax, [ebp - 0x10]
jmp 0x413158
add eax, 0xd
push eax
push esi
call fcn.004148b0
push esi
call fcn.00414790
lea ecx, [ebp - 0x10]
call fcn.0040178c
lea ecx, [ebp - 4]
call fcn.0040178c
lea ecx, [ebp - 0x3c]
call fcn.004101e2
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00401d29
sub esi, eax
jne 0x412fab
lea ecx, [ebp - 0x3c]
call fcn.00410181
cmp dword [ebp + 0xc], 0
je 0x4131a6
mov edx, dword [ebp + 0x10]
push 0x64
pop ecx
call dword [ebp + 0xc]
mov bl, 1
lea ecx, [ebp - 0x3c]
call fcn.0040ff21
lea ecx, [ebp - 0x50]
call fcn.00413f48
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0xc