Function at 0x410150
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b38d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x5603e8]
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
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x2b0]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2b8], 0x80004005
mov dword [ebp - 0x2b4], ebx
call sub.MSVCR100.dll_memset
push str..lnk
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.0040ca60
add esp, 0x18
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 1
jae 0x4101cc
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x2b4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2bc], eax
cmp eax, 0xffffffff
je 0x41034e
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 2
lea ecx, [ecx]
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.0040ca60
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x410281
cmp dword [ebp - 0x18], 8
jb 0x410232
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [esi + 0x14], 8
jae 0x41025f
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
lea ecx, [ebp - 0x2c]
push esi
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
jmp 0x410266
mov edx, dword [esi]
mov dword [ebp - 0x2c], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x18], ecx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], dx
cmp dword [ebp - 0x50], 8
mov byte [ebp - 4], 2
jb 0x410297
mov eax, dword [ebp - 0x64]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4102a3
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.00407b80
cmp eax, 0x14
je 0x410313
mov edx, 1
mov ecx, eax
shl edx, cl
test dword [ebp + 0x24], edx
jne 0x410313
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2b8], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.00405560
mov ecx, edi
call fcn.0040b750
xor ecx, ecx
cmp al, bl
mov eax, dword [ebp - 0x2c]
setne cl
dec ecx
and ecx, 0x80004005
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x2b8], ecx
jae 0x41030c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x2bc]
lea edx, [ebp - 0x2b4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410200
mov ecx, dword [ebp - 0x2bc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x18], 8
jb 0x41034e
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x410364
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp + 0x1c], esi
jb 0x410385
mov edx, dword [ebp + 8]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x2b8]
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.004b12f6
mov esp, ebp
pop ebp
ret 0x20