Function at 0x46e440
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499eca
mov eax, dword fs:[0]
push eax
sub esp, 0xb70
mov eax, dword [0x4cc99c]
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 eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
xor esi, esi
push esi
mov dword [ebp - 0xb7c], ecx
xor edx, edx
push eax
lea ecx, [ebp - 0x8bc]
mov dword [ebp - 0xb70], eax
mov dword [ebp - 0x8a8], 7
mov dword [ebp - 0x8ac], esi
mov word [ebp - 0x8bc], dx
call fcn.00402530
push 1
push 0x4adfcc
lea ecx, [ebp - 0x8bc]
mov dword [ebp - 4], esi
call fcn.004026a0
push 3
push 0x4ae910
lea ecx, [ebp - 0x8bc]
call fcn.004026a0
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0xb68], esi
mov dword [ebp - 0xb74], esi
lea eax, [ebp - 0xb68]
push eax
push 0x4a4d4c
push 1
push esi
push 0x4a4d5c
mov byte [ebp - 4], 2
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x46e523
mov eax, dword [ebp - 0xb68]
mov ecx, dword [eax]
lea edx, [ebp - 0xb74]
push edx
push 0x4a4cec
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jns 0x46e56e
mov eax, dword [ebp - 0xb74]
mov byte [ebp - 4], 1
cmp eax, esi
je 0x46e539
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xb68]
mov byte [ebp - 4], 0
cmp eax, esi
je 0x46e54f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x8a8], 8
jb 0x46e567
mov eax, dword [ebp - 0x8bc]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x46eec9
cmp dword [ebp - 0x8a8], 8
mov eax, dword [ebp - 0x8bc]
mov byte [ebp - 0xb61], 0
mov dword [ebp - 0xb6c], 1
jae 0x46e594
lea eax, [ebp - 0x8bc]
lea ecx, [ebp - 0xb60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xb78], eax
cmp eax, 0xffffffff
je 0x46ee3e
xor ebx, ebx
cmp dword [ebp - 0xb6c], ebx
je 0x46ee3e
test byte [ebp - 0xb60], 0x10
je 0x46e6e5
cmp word [ebp - 0xb34], 0x2e
jne 0x46e60d
mov ax, word [ebp - 0xb32]
cmp ax, bx
je 0x46e5f1
cmp ax, 0x2e
jne 0x46e60d
cmp word [ebp - 0xb30], bx
jne 0x46e60d
mov eax, dword [ebp - 0xb78]
lea edx, [ebp - 0xb60]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0xb6c], eax
jmp 0x46e5b1
mov edx, dword [ebp - 0xb70]
push 0xffffffffffffffff
xor ecx, ecx
push ebx
mov word [ebp - 0x830], cx
push edx
lea ecx, [ebp - 0x830]
mov dword [ebp - 0x81c], 7
mov dword [ebp - 0x820], ebx
call fcn.00402530
push 1
push 0x4adfcc
lea ecx, [ebp - 0x830]
mov byte [ebp - 4], 3
call fcn.004026a0
lea eax, [ebp - 0xb34]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46e660
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xb34]
push eax
lea ecx, [ebp - 0x830]
call fcn.004026a0
mov ecx, dword [ebp - 0xb7c]
push ecx
lea edx, [ebp - 0x830]
push edx
call fcn.0046e440
add esp, 8
mov byte [ebp - 0xb61], al
test al, al
jne 0x46ee22
mov ecx, dword [ebp - 0xb78]
lea eax, [ebp - 0xb60]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [ebp - 0x81c], 8
mov dword [ebp - 0xb6c], eax
mov byte [ebp - 4], 2
jb 0x46e5b1
mov edx, dword [ebp - 0x830]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x46e5b1
mov ecx, dword [ebp - 0xb70]
push 0xffffffffffffffff
push ebx
xor eax, eax
push ecx
mov edi, 7
lea ecx, [ebp - 0x8d8]
mov dword [ebp - 0x8c4], edi
mov dword [ebp - 0x8c8], ebx
mov word [ebp - 0x8d8], ax
call fcn.00402530
push 1
push 0x4adfcc
lea ecx, [ebp - 0x8d8]
mov byte [ebp - 4], 4
call fcn.004026a0
lea eax, [ebp - 0xb34]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46e733
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0xb34]
push edx
lea ecx, [ebp - 0x8d8]
call fcn.004026a0
mov ecx, dword [ebp - 0x8d8]
mov esi, 8
cmp dword [ebp - 0x8c4], esi
jae 0x46e76e
lea ecx, [ebp - 0x8d8]
mov eax, dword [ebp - 0xb74]
mov edx, dword [eax]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
push 0x800
lea edx, [ebp - 0x812]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x814], cx
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0xb68]
mov ecx, dword [eax]
add esp, 0xc
push 2
push ebx
push 0x401
lea edx, [ebp - 0x814]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
xor ecx, ecx
lea eax, [ebp - 0x814]
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x820], ebx
mov word [ebp - 0x830], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46e7d7
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x814]
push edx
lea ecx, [ebp - 0x830]
call fcn.004027c0
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x910]
push ecx
mov byte [ebp - 4], 5
call fcn.00468130
add esp, 8
mov byte [ebp - 4], 7
cmp dword [ebp - 0x81c], esi
jb 0x46e82e
mov edx, dword [ebp - 0x830]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [ebp - 0xb7c]
push 0xffffffffffffffff
xor ecx, ecx
push ebx
xor eax, eax
mov word [ebp - 0x8a0], cx
push esi
lea ecx, [ebp - 0x8a0]
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x820], ebx
mov word [ebp - 0x830], ax
mov dword [ebp - 0x88c], edi
mov dword [ebp - 0x890], ebx
call fcn.00402530
push 4
push 0x4b08a8
lea ecx, [ebp - 0x8a0]
mov byte [ebp - 4], 8
call fcn.004026a0
push 2
xor edx, edx
push 0x4a6eb4
lea ecx, [ebp - 0x84c]
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x83c], ebx
mov word [ebp - 0x84c], dx
call fcn.004027c0
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x84c]
mov byte [ebp - 4], 9
call fcn.00402d10
push 4
push 0x4b08a8
lea ecx, [ebp - 0x84c]
call fcn.004026a0
push 0xffffffffffffffff
push ebx
xor eax, eax
push esi
lea ecx, [ebp - 0x884]
mov dword [ebp - 0x870], edi
mov dword [ebp - 0x874], ebx
mov word [ebp - 0x884], ax
call fcn.00402530
push edi
push 0x4a6ea4
lea ecx, [ebp - 0x884]
mov byte [ebp - 4], 0xa
call fcn.004026a0
lea ecx, [ebp - 0xb34]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x46e94e
lea edi, [eax + eax]
mov eax, edi
call fcn.00497dd0
mov esi, esp
cmp esi, ebx
je 0x46e94e
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
lea edx, [ebp - 0xb34]
push edx
push ebx
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and esi, eax
jmp 0x46e950
xor esi, esi
sub esp, 0x1c
mov ecx, esp
mov edx, esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0xb6c], esp
mov byte [ecx], 0
lea edi, [edx + 1]
lea ecx, [ecx]
mov al, byte [edx]
inc edx
test al, al
jne 0x46e970
sub edx, edi
push edx
push esi
call fcn.00403870
lea eax, [ebp - 0x868]
push eax
call fcn.0046a230
add esp, 0x20
cmp dword [ebp - 0x854], 0x10
mov byte [ebp - 4], 0xb
jb 0x46e9e1
mov ebx, dword [ebp - 0x868]
test ebx, ebx
je 0x46e9e9
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jg 0x46e9e9
lea eax, [edi + edi]
call fcn.00497dd0
mov esi, esp
test esi, esi
je 0x46e9e9
push edi
push esi
push 0xffffffffffffffff
xor ecx, ecx
push ebx
push ecx
push 3
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x46e9eb
lea ebx, [ebp - 0x868]
jmp 0x46e9a6
xor eax, eax
mov ecx, dword [ebp - 0x8a0]
mov esi, 8
cmp dword [ebp - 0x88c], esi
jae 0x46ea04
lea ecx, [ebp - 0x8a0]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x46eaae
mov edx, dword [ebp - 0xb70]
push 0x4adfcc
push edx
lea eax, [ebp - 0x8f4]
push eax
mov byte [ebp - 0xb61], 1
call fcn.00408d40
lea ecx, [ebp - 0xb34]
push ecx
push eax
lea edx, [ebp - 0x830]
push edx
mov byte [ebp - 4], 0xc
call fcn.00408f20
add esp, 0x18
cmp dword [eax + 0x14], esi
jb 0x46ea58
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x81c], esi
jb 0x46ea76
mov eax, dword [ebp - 0x830]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x81c], 7
mov dword [ebp - 0x820], 0
mov word [ebp - 0x830], cx
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x8e0], esi
jb 0x46eaae
mov edx, dword [ebp - 0x8f4]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x83c], 0
jbe 0x46ebd6
cmp dword [ebp - 0x854], 0x10
jb 0x46eb09
mov ebx, dword [ebp - 0x868]
test ebx, ebx
je 0x46eb11
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jg 0x46eb11
lea eax, [edi + edi]
call fcn.00497dd0
mov esi, esp
test esi, esi
je 0x46eb11
push edi
push esi
push 0xffffffffffffffff
xor eax, eax
push ebx
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x46eb13
lea ebx, [ebp - 0x868]
jmp 0x46eace
xor eax, eax
mov ecx, dword [ebp - 0x84c]
mov esi, 8
cmp dword [ebp - 0x838], esi
jae 0x46eb2c
lea ecx, [ebp - 0x84c]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x46ebd6
mov ecx, dword [ebp - 0xb70]
push 0x4adfcc
push ecx
lea edx, [ebp - 0x8f4]
push edx
mov byte [ebp - 0xb61], 1
call fcn.00408d40
lea ecx, [ebp - 0xb34]
push ecx
push eax
lea edx, [ebp - 0x830]
push edx
mov byte [ebp - 4], 0xd
call fcn.00408f20
add esp, 0x18
cmp dword [eax + 0x14], esi
jb 0x46eb80
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x81c], esi
jb 0x46eb9e
mov eax, dword [ebp - 0x830]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x81c], 7
mov dword [ebp - 0x820], 0
mov word [ebp - 0x830], cx
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x8e0], esi
jb 0x46ebd6
mov edx, dword [ebp - 0x8f4]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x874], 0
jbe 0x46ecfa
cmp dword [ebp - 0x854], 0x10
jb 0x46ec31
mov ebx, dword [ebp - 0x868]
test ebx, ebx
je 0x46ec39
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jg 0x46ec39
lea eax, [edi + edi]
call fcn.00497dd0
mov esi, esp
test esi, esi
je 0x46ec39
push edi
push esi
push 0xffffffffffffffff
xor eax, eax
push ebx
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x46ec3b
lea ebx, [ebp - 0x868]
jmp 0x46ebf6
xor eax, eax
mov ecx, dword [ebp - 0x884]
mov esi, 8
cmp dword [ebp - 0x870], esi
jae 0x46ec54
lea ecx, [ebp - 0x884]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x46ecfa
mov ecx, dword [ebp - 0xb70]
push 0x4adfcc
push ecx
lea edx, [ebp - 0x8f4]
push edx
mov byte [ebp - 0xb61], 1
call fcn.00408d40
lea ecx, [ebp - 0xb34]
push ecx
push eax
lea edx, [ebp - 0x830]
push edx
mov byte [ebp - 4], 0xe
call fcn.00408f20
add esp, 0x18
cmp dword [eax + 0x14], esi
jb 0x46eca8
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x81c], esi
jb 0x46ecc6
mov eax, dword [ebp - 0x830]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x81c], 7
mov dword [ebp - 0x820], 0
mov word [ebp - 0x830], cx
cmp dword [ebp - 0x8e0], esi
jb 0x46ecfa
mov edx, dword [ebp - 0x8f4]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xb78]
lea eax, [ebp - 0xb60]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [ebp - 0x854], 0x10
mov dword [ebp - 0xb6c], eax
jb 0x46ed2c
mov edx, dword [ebp - 0x868]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ebx, ebx
mov esi, 8
mov dword [ebp - 0x854], 0xf
mov dword [ebp - 0x858], ebx
mov byte [ebp - 0x868], bl
cmp dword [ebp - 0x870], esi
jb 0x46ed60
mov eax, dword [ebp - 0x884]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x870], edi
mov dword [ebp - 0x874], ebx
mov word [ebp - 0x884], cx
cmp dword [ebp - 0x838], esi
jb 0x46ed91
mov edx, dword [ebp - 0x84c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x83c], ebx
mov word [ebp - 0x84c], ax
cmp dword [ebp - 0x88c], esi
jb 0x46edbd
mov ecx, dword [ebp - 0x8a0]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp - 0x88c], edi
mov dword [ebp - 0x890], ebx
mov word [ebp - 0x8a0], dx
cmp dword [ebp - 0x8fc], esi
jb 0x46ede9
mov eax, dword [ebp - 0x910]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x8fc], edi
mov dword [ebp - 0x900], ebx
mov word [ebp - 0x910], cx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x8c4], esi
jb 0x46e5b1
mov edx, dword [ebp - 0x8d8]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x46e5b1
cmp dword [ebp - 0x81c], 8
mov byte [ebp - 4], 2
jb 0x46ee3e
mov eax, dword [ebp - 0x830]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xb78]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xb68]
test ecx, ecx
je 0x46ee65
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
xor ecx, ecx
mov dword [ebp - 0xb68], ecx
mov eax, dword [ebp - 0xb74]
test eax, eax
je 0x46ee85
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 0xb68]
xor eax, eax
mov dword [ebp - 0xb74], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x46ee9b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 0xb68]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x46eeab
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
cmp dword [ebp - 0x8a8], 8
jb 0x46eec3
mov edx, dword [ebp - 0x8bc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, byte [ebp - 0xb61]
lea esp, [ebp - 0xb8c]
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.00497792
mov esp, ebp
pop ebp
ret