Function at 0x416670
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4f11
mov eax, dword fs:[0]
push eax
sub esp, 0x88c
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x898], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x88c], ebx
test ebx, ebx
je 0x416ae4
cmp word [ebx], 0
je 0x416ae4
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4166c6
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x416ae4
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004421a0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x4c12e0
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.00412db0
push eax
call fcn.00412d90
mov dword [ebp - 0x890], eax
mov eax, 0x5c
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x428], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x424], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, 0x104
jge 0x416a7d
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x858]
push 0x104
push eax
call fcn.0046a4af
push eax
call fcn.004071c0
add esp, 0x10
lea eax, [ebp - 0x884]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x428], eax
cmp eax, 0xffffffff
je 0x416a65
push 0
lea eax, [ebp - 0x634]
push eax
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x4167f2
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x4167e5
cmp eax, 0xffffffff
je 0x4167e5
push eax
call esi
mov dword [ebp - 0x428], 0
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x416a7d
lea eax, [ebp - 0x634]
push 0x5c
push eax
call fcn.00443551
mov esi, eax
lea eax, [ebp - 0x634]
push 0x2f
push eax
call fcn.00443551
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x416823
test esi, esi
je 0x41683e
lea ecx, [ebp - 0x634]
test esi, esi
lea eax, [ebp - 0x634]
cmovne eax, esi
cmp ecx, eax
jb 0x416839
xor eax, eax
mov word [ecx], ax
jmp 0x41683e
xor ecx, ecx
mov word [eax], cx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x424], 1
nop
cmp dword [ebp - 0x424], 0
je 0x4168b4
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
cmp word [ebp - 0x858], 0x2e
jne 0x4168b4
test eax, eax
je 0x4168b4
mov ax, word [ebp - 0x856]
test ax, ax
je 0x41688f
cmp ax, 0x2e
jne 0x4168b4
cmp word [ebp - 0x854], 0
jne 0x4168b4
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x416a59
lea ecx, [ebp - 0x884]
push ecx
push eax
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x416a4a
lea eax, [ebp - 0x894]
push eax
lea ecx, [ebp - 0x884]
call fcn.00415de0
lea eax, [ebp - 0x888]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x884]
call fcn.00415d50
mov eax, dword [ebp - 0x888]
mov byte [ebp - 4], 2
mov esi, dword [eax - 0xc]
test esi, esi
js 0x416b02
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x416914
push esi
lea ecx, [ebp - 0x888]
call fcn.00404850
mov eax, dword [ebp - 0x888]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0044b8f6
mov eax, dword [ebp - 0x888]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x416b02
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x888]
mov word [eax + esi*2], cx
mov ecx, dword [ebp - 0x890]
push dword [ebp - 0x888]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, dword [ebp - 0x894]
test eax, eax
jne 0x41699c
push esi
call fcn.00429300
add esp, 4
test eax, eax
jne 0x41699c
push dword [ebp - 0x888]
call fcn.00422820
add esp, 4
test eax, eax
jne 0x41699c
lea ecx, [ebp - 0x884]
call fcn.00415d20
push dword [ebp - 0x888]
mov edi, eax
push 0x4c12e4
call fcn.00414b10
add esp, 8
jmp 0x416a0c
cmp dword [ebp - 0x424], 0
je 0x4169b3
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
jmp 0x4169b5
xor eax, eax
lea ecx, [edi + 0x6c]
push ecx
push esi
test eax, eax
je 0x4169c5
call fcn.00424250
jmp 0x4169dc
call fcn.00423e10
add esp, 8
test eax, eax
je 0x4169df
push esi
push str.Delete_File:__s
call fcn.00414b10
add esp, 8
mov eax, dword [ebp - 0x428]
test eax, eax
jne 0x4169ed
xor edi, edi
jmp 0x416a0c
cmp dword [ebp - 0x424], 0
jne 0x4169fa
xor edi, edi
jmp 0x416a0c
lea ecx, [ebp - 0x884]
push ecx
push eax
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
mov edx, dword [ebp - 0x888]
or eax, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416a2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x416a4a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x416a71
mov edi, dword [ebp - 0x898]
jmp 0x416850
mov ebx, dword [ebp - 0x88c]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x416aa3
mov ebx, dword [ebp - 0x88c]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x416aa3
cmp eax, 0xffffffff
je 0x416aa3
push eax
call esi
mov dword [ebp - 0x428], 0
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov edx, str.failed.
mov ecx, str.suceess
cmove ecx, edx
push ecx
push ebx
push str.remove_directory__s__s
call fcn.00414b10
mov eax, dword [ebp - 0x428]
add esp, 0xc
mov dword [ebp - 0x424], 0
test eax, eax
je 0x416ae4
cmp eax, 0xffffffff
je 0x416ae4
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a228
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004031c0
int3