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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c1536
mov eax, dword fs:[0]
push eax
sub esp, 0x3d0
mov eax, dword [0x4f840c]
xor eax, esp
mov dword [esp + 0x3c8], eax
push ebx
push esi
push edi
mov eax, dword [0x4f840c]
xor eax, esp
push eax
lea eax, [esp + 0x3e0]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x41d874
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d496
sub eax, edx
cmp eax, 2
jb 0x41d874
mov esi, dword [sym.imp.MSVCR100.dll_strlen]
push edi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call esi
add esp, 4
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.0040dda8
mov eax, edi
mov dword [esp + 0x3e8], ebx
lea edx, [eax + 1]
jmp 0x41d4e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d4e0
sub eax, edx
cmp byte [eax + edi - 1], 0x5c
jne 0x41d5a3
push 0x4e0dd8
call esi
add esp, 4
mov ebx, eax
push 0x4e0dd8
lea eax, [esp + 0x20]
call fcn.0040d84f
push eax
xor ebx, ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
call fcn.0040d403
mov esi, eax
lea ecx, [esp + 0x1c]
cmp ecx, esi
je 0x41d587
cmp dword [esp + 0x30], 0x10
jb 0x41d53f
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esi + 0x14], 0x10
jae 0x41d56b
mov eax, dword [esi + 0x10]
inc eax
push eax
lea eax, [esp + 0x20]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
jmp 0x41d573
mov ecx, dword [esi]
mov dword [esp + 0x1c], ecx
mov dword [esi], ebx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x2c], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x30], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esp + 0x3e8], bl
cmp dword [esp + 0x4c], 0x10
jb 0x41d5a3
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x41d5b2
lea eax, [esp + 0x1c]
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.MSVCR100.dll__stat64i32]
add esp, 8
test dword [esp + 0x5a], 0x4000
je 0x41d858
push 0x103
lea eax, [esp + 0x2d1]
push 0
push eax
mov bl, 1
mov byte [esp + 0x2d8], 0
call sub.MSVCR100.dll_memset
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d5f5
sub eax, edx
cmp byte [eax + edi - 1], 0x5c
push edi
je 0x41d61a
push 0x4e0ddc
push 0x104
lea ecx, [esp + 0x2d8]
push ecx
jmp 0x41d62c
push str._s.
push 0x104
lea edx, [esp + 0x2d8]
push edx
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0x10
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x2d0]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
je 0x41d84a
lea ebx, [ebx]
cmp bl, 1
jne 0x41d84a
mov al, byte [esp + 0x84]
test al, 0x20
je 0x41d724
push 0x104
lea edx, [esp + 0x1c8]
push edi
push edx
call dword [sym.imp.MSVCR100.dll_strncpy]
lea eax, [esp + 0x1d0]
add esp, 0xc
mov byte [esp + 0x2c7], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d6a1
sub eax, edx
cmp byte [esp + eax + 0x1c3], 0x5c
je 0x41d6d1
lea edi, [esp + 0x1c4]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41d6c0
mov ax, word [0x4e0dd8]
mov word [edi], ax
lea eax, [esp + 0xb0]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d6e0
lea edi, [esp + 0x1c4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41d6f1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c4]
push ecx
mov byte [esp + 0x2cb], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41d829
test al, 0x10
je 0x41d82d
lea eax, [esp + 0xb0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d736
sub eax, edx
push eax
lea edx, [esp + 0xb4]
push 0x4e0dec
push edx
call sub.MSVCR100.dll__strnicmp
add esp, 0xc
test eax, eax
je 0x41d82d
lea eax, [esp + 0xb0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d767
sub eax, edx
push eax
lea eax, [esp + 0xb4]
push 0x4e0df0
push eax
call sub.MSVCR100.dll__strnicmp
add esp, 0xc
test eax, eax
je 0x41d82d
push 0x104
lea ecx, [esp + 0x1c8]
push edi
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy]
lea eax, [esp + 0x1d0]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d7b0
sub eax, edx
cmp byte [esp + eax + 0x1c3], 0x5c
je 0x41d7e2
lea edi, [esp + 0x1c4]
dec edi
jmp 0x41d7d0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41d7d0
mov dx, word [0x4e0dd8]
mov word [edi], dx
lea eax, [esp + 0xb0]
mov edx, eax
jmp 0x41d7f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d7f0
lea edi, [esp + 0x1c4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41d801
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x1c4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call sym.Uninstall.exe_void___cdecl_KpBase::DeleteAllFile_char_const__
add esp, 4
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x84]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
setne bl
jmp 0x41d660
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x30], 0x10
jb 0x41d874
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x3e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c8]
xor ecx, esp
call fcn.00485d44
mov esp, ebp
pop ebp
ret