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

Disassembly:
push 0xffffffffffffffff
push 0x534811
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x1a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x551e00]
xor eax, esp
push eax
lea eax, [esp + 0x1bc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1cc]
mov edi, dword [esp + 0x1d0]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
mov dword [esp + 0x1c4], 0
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
push 0x409524
lea eax, [esp + 0x1c]
mov byte [esp + 0x1c8], 1
push ebp
push eax
call fcn.0051a580
mov esi, eax
add esp, 0xc
lea eax, [esp + 0x60]
cmp eax, esi
je 0x51d565
cmp dword [esp + 0x74], 0x10
jb 0x51d546
push dword [esp + 0x60]
call fcn.004f9345
add esp, 4
push esi
lea ecx, [esp + 0x64]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
call fcn.00427100
cmp dword [esp + 0x2c], 0x10
jb 0x51d578
push dword [esp + 0x18]
call fcn.004f9345
add esp, 4
cmp dword [esp + 0x74], 0x10
lea ecx, [esp + 0x78]
lea eax, [esp + 0x60]
cmovae eax, dword [esp + 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffffffff
je 0x51d789
mov ebx, dword [esp + 0x1d4]
mov esi, eax
lea ebx, [ebx]
cmp byte [esp + 0xa4], 0x2e
je 0x51d747
test edi, edi
je 0x51d5fd
test ebx, ebx
jne 0x51d5fd
lea eax, [esp + 0xa4]
mov ecx, edi
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x51d5f0
test dl, dl
je 0x51d5ec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x51d5f0
add ecx, 2
add eax, 2
test dl, dl
jne 0x51d5d0
xor eax, eax
jmp 0x51d5f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x51d747
cmp dword [esp + 0x5c], 0x10
lea eax, [esp + 0x48]
mov dword [esp + 0x58], 0
cmovae eax, dword [esp + 0x48]
push 0x408a48
push ebp
mov byte [eax], 0
lea eax, [esp + 0x38]
push eax
call fcn.0051a580
lea ecx, [esp + 0xb0]
mov byte [esp + 0x1d0], 2
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0051a4e0
mov esi, eax
add esp, 0x18
lea eax, [esp + 0x48]
cmp eax, esi
je 0x51d6be
cmp dword [esp + 0x5c], 0x10
jb 0x51d661
push dword [esp + 0x48]
call fcn.004f9345
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
cmp dword [esi + 0x14], 0x10
jae 0x51d693
mov eax, dword [esi + 0x10]
inc eax
je 0x51d69f
push eax
lea eax, [esp + 0x4c]
push esi
push eax
call fcn.004f94d0
add esp, 0xc
jmp 0x51d69f
mov eax, dword [esi]
mov dword [esp + 0x48], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x5c], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0x2c], 0x10
jb 0x51d6d1
push dword [esp + 0x18]
call fcn.004f9345
add esp, 4
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0x1c4], 1
jb 0x51d701
push dword [esp + 0x30]
call fcn.004f9345
add esp, 4
test byte [esp + 0x78], 0x10
je 0x51d72c
lea eax, [ebx + 1]
push eax
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.0051d490
add esp, 0xc
test al, al
jne 0x51d743
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor bl, bl
jmp 0x51d78b
cmp dword [esp + 0x5c], 0x10
lea eax, [esp + 0x48]
cmovae eax, dword [esp + 0x48]
push eax
call fcn.0051f940
add esp, 4
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x51d5b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x51d785
test ebx, ebx
je 0x51d789
cmp dword [ebp + 0x14], 0x10
jb 0x51d77a
mov ebp, dword [ebp]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x51d789
xor bl, bl
jmp 0x51d78b
mov bl, 1
cmp dword [esp + 0x74], 0x10
jb 0x51d79e
push dword [esp + 0x60]
call fcn.004f9345
add esp, 4
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jb 0x51d7c6
push dword [esp + 0x48]
call fcn.004f9345
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x1bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.004f9e32
add esp, 0x1b4
ret