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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4f61
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 - 0x890], ebx
test ebx, ebx
je 0x416b33
cmp word [ebx], 0
je 0x416b33
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 0x416b33
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004421e0
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 - 0x894], 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 0x416acc
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x858]
push 0x104
push eax
call fcn.0046a4ef
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 0x416ab4
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 0x416acc
lea eax, [ebp - 0x634]
push 0x5c
push eax
call fcn.00443591
mov esi, eax
lea eax, [ebp - 0x634]
push 0x2f
push eax
call fcn.00443591
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 0x416aa8
lea ecx, [ebp - 0x884]
push ecx
push eax
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x416a99
lea eax, [ebp - 0x88c]
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 0x416b51
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.0044b936
mov eax, dword [ebp - 0x888]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x416b51
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x888]
mov word [eax + esi*2], cx
mov ecx, dword [ebp - 0x894]
push dword [ebp - 0x888]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
jne 0x4169e5
push dword [ebp - 0x888]
call fcn.00429340
add esp, 4
test eax, eax
jne 0x4169e5
push dword [ebp - 0x888]
call fcn.00422860
add esp, 4
test eax, eax
jne 0x4169e5
lea ecx, [ebp - 0x884]
call fcn.00415d20
push dword [ebp - 0x888]
mov edi, eax
push 0x4c12e4
call fcn.00414b10
mov edx, dword [ebp - 0x888]
add esp, 8
mov byte [ebp - 4], 1
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4169bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x88c]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416a99
mov ecx, dword [edx]
push edx
jmp 0x416a94
cmp dword [ebp - 0x424], 0
je 0x4169fc
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
jmp 0x4169fe
xor eax, eax
mov esi, dword [ebp - 0x88c]
lea ecx, [edi + 0x6c]
push ecx
push esi
test eax, eax
je 0x416a14
call fcn.00424290
jmp 0x416a2b
call fcn.00423e50
add esp, 8
test eax, eax
je 0x416a2e
push esi
push str.Delete_File:__s
call fcn.00414b10
add esp, 8
mov eax, dword [ebp - 0x428]
test eax, eax
jne 0x416a3c
xor edi, edi
jmp 0x416a5b
cmp dword [ebp - 0x424], 0
jne 0x416a49
xor edi, edi
jmp 0x416a5b
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
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416a7d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x416a99
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x416ac0
mov edi, dword [ebp - 0x898]
jmp 0x416850
mov ebx, dword [ebp - 0x890]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x416af2
mov ebx, dword [ebp - 0x890]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x416af2
cmp eax, 0xffffffff
je 0x416af2
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 0x416b33
cmp eax, 0xffffffff
je 0x416b33
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.0042a265
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004031c0
int3