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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9511
mov eax, dword fs:[0]
push eax
sub esp, 0x334
mov eax, dword [0x4de880]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x31c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040dac0
movzx eax, al
test eax, eax
je 0x4769cb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401030
jmp 0x476ca1
push 0x4b9fd4
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x284]
push edx
call fcn.00406a00
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.004018e0
sub eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.0040dca0
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x476a58
push 0x4b9fdc
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x2c0]
push eax
call fcn.00406a00
add esp, 0xc
mov dword [ebp - 0x320], eax
mov ecx, dword [ebp - 0x320]
mov dword [ebp - 0x324], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x324]
push edx
lea ecx, [ebp - 0x284]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c0]
call fcn.00401030
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x284]
call fcn.00401050
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
mov byte [ebp - 0x285], 1
cmp dword [ebp - 0x268], 0xffffffff
je 0x476c83
lea ecx, [ebp - 0x2a4]
call fcn.004015d0
mov byte [ebp - 4], 3
push 0x4b9fe0
lea ecx, [ebp - 0x238]
push ecx
call fcn.00440c9a
add esp, 8
test eax, eax
je 0x476aca
push 0x4b9fe4
lea edx, [ebp - 0x238]
push edx
call fcn.00440c9a
add esp, 8
test eax, eax
jne 0x476acf
jmp 0x476c31
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.0040dca0
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x476b7a
push 0x4b9fec
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x2dc]
push eax
call fcn.00406a00
add esp, 0xc
mov dword [ebp - 0x328], eax
mov ecx, dword [ebp - 0x328]
mov dword [ebp - 0x32c], ecx
mov byte [ebp - 4], 4
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x2f8]
push ecx
call fcn.00406a00
add esp, 0xc
mov dword [ebp - 0x330], eax
mov edx, dword [ebp - 0x330]
mov dword [ebp - 0x334], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x334]
push eax
lea ecx, [ebp - 0x2a4]
call fcn.00401640
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2f8]
call fcn.00401030
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2dc]
call fcn.00401030
jmp 0x476bcb
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x314]
push eax
call fcn.00406a00
add esp, 0xc
mov dword [ebp - 0x338], eax
mov ecx, dword [ebp - 0x338]
mov dword [ebp - 0x33c], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x33c]
push edx
lea ecx, [ebp - 0x2a4]
call fcn.00401640
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x314]
call fcn.00401030
mov eax, dword [ebp - 0x264]
and eax, 0x10
je 0x476c0c
movzx ecx, byte [ebp + 0x24]
test ecx, ecx
je 0x476c0a
mov dl, byte [ebp + 0x24]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x318], esp
lea eax, [ebp - 0x2a4]
push eax
call fcn.00403370
mov dword [ebp - 0x340], eax
mov ecx, dword [ebp - 0x31c]
call fcn.00476970
jmp 0x476c31
lea ecx, [ebp - 0x2a4]
call fcn.00401050
push eax
mov ecx, dword [ebp - 0x31c]
call fcn.00475700
movzx ecx, al
test ecx, ecx
jne 0x476c31
mov byte [ebp - 0x285], 0
lea edx, [ebp - 0x264]
push edx
mov eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x476a9a
mov ecx, dword [ebp - 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
movzx edx, byte [ebp - 0x285]
test edx, edx
je 0x476c74
lea ecx, [ebp + 8]
call fcn.00401050
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a4]
call fcn.00401030
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x284]
call fcn.00401030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401030
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f9e9
mov esp, ebp
pop ebp
ret 0x20