Function at 0x4240f0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff220
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x69def4]
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 esi, dword [ebp + 8]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424126
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jb 0x4244d1
push esi
call fcn.0041ff30
add esp, 4
test al, al
je 0x4244d1
push esi
lea ecx, [ebp - 0x28]
call fcn.00405c70
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.004316a0
add esp, 4
test eax, eax
jne 0x42417c
push 0x609b38
lea ecx, [ebp - 0x28]
call fcn.0046d7c0
call fcn.0048b940
test al, al
je 0x42419d
push esi
push eax
push edi
push eax
push ebp
push esp
pop esi
pop esp
pop ebx
pop esp
pop ecx
push ebx
pop edx
pop ebp
push esp
push edx
push ecx
push edi
push eax
push edx
push eax
push eax
pop esp
push ecx
call fcn.0048bb70
test al, al
je 0x4241ba
pop edx
pop esp
pop esp
push eax
pop esi
pop ecx
push ebx
pop esp
push esp
push esp
pop ebx
push esp
push edi
push esp
pop edi
push edx
push edx
pop ecx
push esp
pop ebp
call fcn.0048bda0
test al, al
je 0x4241de
pop esp
push eax
push esp
pop ecx
push esi
pop eax
pop eax
push ecx
pop ebx
pop edx
pop esp
pop ebp
push ecx
push esp
push ebx
push ecx
push eax
pop ebp
push edx
pop esi
pop edi
push edi
push ecx
pop edx
push ecx
pop eax
pop eax
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x40]
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], 7
call fcn.004070f0
push 3
push 0x60bd68
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040f7f0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c4], eax
call fcn.0048bb00
test al, al
je 0x424265
push esi
push edx
push edx
push ecx
pop eax
push ebp
push esp
pop edx
pop edi
push eax
push edx
pop ecx
pop ecx
push edi
push ebx
pop edx
pop esi
push esi
push edi
pop edx
pop eax
push eax
push eax
call fcn.0048bb70
test al, al
je 0x424285
pop esi
push ebp
pop ebx
push ecx
pop esp
pop ebx
push esi
push ecx
pop ebp
pop esi
pop edi
pop ebp
push esp
pop esi
pop edx
push ebp
push esp
push ecx
pop edx
pop esi
pop esp
pop eax
pop ebx
call fcn.0048c190
test al, al
je 0x4242a1
pop esi
push eax
pop edx
pop esp
push edi
push ebp
push eax
push esp
pop edx
push esp
pop esi
pop esi
pop ebp
pop ebx
pop eax
pop eax
pop edi
pop ebx
push esi
mov edi, dword [ebp - 0x2c4]
cmp edi, 0xffffffff
je 0x424409
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x2c0]
push eax
push edi
call esi
test eax, eax
je 0x424409
cmp word [ebp - 0x294], 0x2e
je 0x4242b6
mov ax, word [ebp - 0x292]
test ax, ax
je 0x4242b6
cmp ax, 0x2e
jne 0x4242ee
cmp word [ebp - 0x290], 0
je 0x4242b6
test byte [ebp - 0x2c0], 0x10
push 0xffffffffffffffff
push 0
je 0x4243a4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x60], 0
push eax
call fcn.004070f0
cmp word [ebp - 0x294], 0
mov byte [ebp - 4], 3
jne 0x424331
xor ecx, ecx
jmp 0x42434f
lea ecx, [ebp - 0x294]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424340
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040f7f0
push 1
push 0x609b38
lea ecx, [ebp - 0x70]
call fcn.0040f7f0
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.004240f0
mov eax, dword [ebp - 0x5c]
add esp, 4
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x4242b6
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00407310
jmp 0x4242b6
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.004070f0
cmp word [ebp - 0x294], 0
jne 0x4243be
xor ecx, ecx
jmp 0x4243d6
lea ecx, [ebp - 0x294]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4243c7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040f7f0
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00405c70
call fcn.00426e80
add esp, 0x18
jmp 0x4242b6
call fcn.0048bb70
test al, al
je 0x424424
pop eax
push edx
push edi
pop esi
push edx
push esi
push edi
push esi
push eax
push eax
pop esp
pop ebp
push edi
pop ecx
push esp
pop esp
pop esi
push ebx
call fcn.0048c2e0
test al, al
je 0x42443d
push ebx
pop esi
pop esi
push ebp
pop edx
push ecx
pop ebx
pop eax
pop ecx
pop esp
pop esi
pop ecx
pop edx
push ebp
pop edx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x20
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x42447f
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407310
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x4244a8
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407310
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x4244d1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407310
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.005caa5c
mov esp, ebp
pop ebp
ret