Function at 0x4125ac
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe54
mov eax, 0x462620
push ebx
push esi
push edi
lea ebx, [ebp - 0x6c]
mov esi, dword [ebp + 8]
call fcn.0045225c
cmp byte [0x462434], 0
jne 0x4125e0
push 0x462434
push 0x104
call sub.KERNEL32.dll_GetTempPathA
push 0x462434
push esi
call fcn.0044dd08
add esp, 8
test eax, eax
jne 0x412602
xor eax, eax
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x412938
lea ecx, [ebp - 0x1ac]
mov edx, str..
push ecx
lea eax, [ebp - 8]
mov word [ebx + 0x10], 8
call fcn.0042e7c4
inc dword [ebx + 0x1c]
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 4]
mov edx, esi
call fcn.0042e7c4
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
inc dword [ebx + 0x1c]
pop edx
call fcn.0042ea7b
cmp dword [ebp - 0xc], 0
je 0x41264c
mov eax, dword [ebp - 0xc]
jmp 0x412651
mov eax, 0x4626f9
push eax
call sub.KERNEL32.dll_FindFirstFileA
mov edi, eax
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0042ea24
dec dword [ebx + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0042ea24
dec dword [ebx + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0042ea24
test byte [ebp - 0x1ac], 0x10
je 0x412779
movsx ecx, byte [ebp - 0x180]
cmp ecx, 0x2e
je 0x412779
mov word [ebx + 0x10], 0x14
mov edx, 0x4626fa
lea eax, [ebp - 0x14]
call fcn.0042e7c4
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.0042e7c4
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
inc dword [ebx + 0x1c]
pop edx
call fcn.0042ea7b
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x180]
lea eax, [ebp - 0x1c]
call fcn.0042e7c4
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x1c]
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x20]
pop eax
call fcn.0042ea7b
cmp dword [ebp - 0x20], 0
je 0x412712
mov edx, dword [ebp - 0x20]
jmp 0x412717
mov edx, 0x4626fc
push edx
call fcn.004125ac
pop ecx
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0042ea24
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0042ea24
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0042ea24
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0042ea24
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0042ea24
push esi
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x41290c
push 0x80
mov edx, 0x4626fd
mov word [ebx + 0x10], 0x20
lea eax, [ebp - 0x28]
call fcn.0042e7c4
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x24]
mov edx, esi
call fcn.0042e7c4
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x2c]
inc dword [ebx + 0x1c]
pop edx
call fcn.0042ea7b
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x180]
lea eax, [ebp - 0x30]
call fcn.0042e7c4
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x30]
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x34]
pop eax
call fcn.0042ea7b
cmp dword [ebp - 0x34], 0
je 0x4127ea
mov edx, dword [ebp - 0x34]
jmp 0x4127ef
mov edx, 0x4626ff
push edx
call sub.KERNEL32.dll_SetFileAttributesA
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0042ea24
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0042ea24
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0042ea24
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0042ea24
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0042ea24
mov word [ebx + 0x10], 0x2c
mov edx, 0x462700
lea eax, [ebp - 0x3c]
call fcn.0042e7c4
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x38]
mov edx, esi
call fcn.0042e7c4
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x40]
inc dword [ebx + 0x1c]
pop edx
call fcn.0042ea7b
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x180]
lea eax, [ebp - 0x44]
call fcn.0042e7c4
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x44]
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x48]
pop eax
call fcn.0042ea7b
cmp dword [ebp - 0x48], 0
je 0x4128b1
mov edx, dword [ebp - 0x48]
jmp 0x4128b6
mov edx, 0x462702
push edx
call sub.KERNEL32.dll_DeleteFileA
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0042ea24
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0042ea24
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0042ea24
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0042ea24
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0042ea24
lea eax, [ebp - 0x1ac]
push eax
push edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x412689
push edi
call sub.KERNEL32.dll_FindClose
push esi
call sub.KERNEL32.dll_RemoveDirectoryA
mov al, 1
mov edx, dword [ebx]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret