Function at 0x45a540
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4affca
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x4ecba0]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ecba0]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov dword [esp + 0x2c], ecx
xor esi, esi
mov dword [esp + 0x1a0], esi
mov byte [esp + 0x17], 0
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3c], 0
mov byte [esp + 0x1a0], 1
call fcn.0046d74a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x45a5c0
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x1a0], 2
call fcn.0046d74a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x45a5f2
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x1a8]
push str..
push ecx
lea edx, [esp + 0x20]
push str._s_s
push edx
mov byte [esp + 0x1b0], 3
call fcn.00402d80
mov ecx, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
je 0x45a965
mov bl, 4
jmp 0x45a650
cmp byte [esp + 0x80], 0x2e
je 0x45a8c7
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x40]
call fcn.00439eb0
push 0x4ba3b8
lea edx, [esp + 0x1ac]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.0040cb30
lea ecx, [esp + 0x8c]
push ecx
push eax
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x1b8], bl
call fcn.0040cb30
add esp, 0x18
mov ecx, dword [eax]
mov eax, ecx
mov byte [esp + 0x1a0], 5
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x45a6b0
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.00457970
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x1a0], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a6eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x1a0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a713
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [esp + 0x54], 0x10
je 0x45a86a
cmp byte [esp + 0x1ac], 0
je 0x45a863
mov eax, dword [esp + 0x3c]
mov ebp, 0x10
cmp dword [esp + 0x50], ebp
jae 0x45a73f
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
call fcn.00404190
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a4], 6
call fcn.0040bbf0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1a0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a783
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1ac]
mov edi, dword [esp + 0x1c]
push ecx
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x3c], esp
mov esi, esp
push eax
call fcn.00409450
mov ecx, dword [esp + 0x38]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0045a540
mov esi, eax
test esi, esi
je 0x45a8c7
lea eax, [edi - 0x10]
mov byte [esp + 0x1a0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a7de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x1a0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a806
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x50], ebp
jb 0x45a819
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0046a8b0
add esp, 4
mov eax, dword [esp + 0x1a8]
add eax, 0xfffffff0
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
mov dword [esp + 0x1a0], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45a85c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x45aa0a
mov byte [esp + 0x17], 1
jmp 0x45a8c7
mov ebp, 0x10
cmp dword [esp + 0x50], ebp
jb 0x45a881
mov edx, dword [esp + 0x3c]
test edx, edx
jne 0x45a885
xor eax, eax
jmp 0x45a899
lea edx, [esp + 0x3c]
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45a890
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00402b20
mov edi, dword [esp + 0x1c]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x45a946
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x45a946
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x54]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x45a650
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
mov esi, eax
cmp esi, 0x12
jne 0x45a918
cmp byte [esp + 0x17], 0
jne 0x45a965
mov ecx, dword [esp + 0x1a8]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x45a953
call ebp
mov esi, eax
lea ecx, [esp + 0x1c]
call fcn.004024d0
lea ecx, [esp + 0x18]
call fcn.004024d0
lea ecx, [esp + 0x38]
call fcn.0043a510
lea ecx, [esp + 0x1a8]
call fcn.004024d0
mov eax, esi
jmp 0x45aa0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x45a7ba
mov edx, dword [esp + 0x1a8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x45a914
lea eax, [edi - 0x10]
mov byte [esp + 0x1a0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a989
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x1a0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a9b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x50], 0x10
jb 0x45a9c5
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0046a8b0
add esp, 4
mov eax, dword [esp + 0x1a8]
add eax, 0xfffffff0
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
mov dword [esp + 0x1a0], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45aa08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.0048f35c
add esp, 0x190
ret 8