Function at 0x10024d80
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044c3e
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x1005a4a0]
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 eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1c8], edi
mov ecx, dword [ebp + 0x1c]
push 0xffffffffffffffff
dec ecx
push ecx
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.100059da
mov esi, dword [eax + 0x10]
mov ecx, esi
cmp esi, 1
jb 0x10024de2
lea ecx, [edi + 1]
cmp dword [eax + 0x14], 0x10
jb 0x10024dea
mov eax, dword [eax]
push ecx
push 0x10048520
push eax
call fcn.1000104f
add esp, 0xc
cmp eax, edi
jne 0x10024e11
cmp esi, 1
jae 0x10024e07
or eax, 0xffffffff
jmp 0x10024e0f
xor eax, eax
cmp esi, 1
setne al
cmp eax, edi
sete al
test al, al
sete bl
cmp dword [ebp - 0x6c], 0x10
mov byte [ebp - 4], 0
jb 0x10024e2f
mov eax, dword [ebp - 0x80]
push eax
call fcn.1002eeea
add esp, 4
test bl, bl
je 0x10024e42
push 1
push 0x10048520
lea ecx, [ebp + 0xc]
call fcn.100046f8
push 3
push 0x10048600
lea ecx, [ebp + 0xc]
call fcn.100046f8
push edi
mov esi, 0xf
push 0x10047a54
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
call fcn.10004791
push 0x13c
lea ecx, [ebp - 0x1bc]
push edi
push ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c0], edi
call fcn.10030e40
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp dword [ebp + 0x20], 0x10
jae 0x10024e99
lea eax, [ebp + 0xc]
lea edx, [ebp - 0x1c0]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
lea eax, [ebp - 0x64]
push eax
call fcn.10022f00
add esp, 4
mov byte [ebp - 4], 3
cmp ebx, 0xffffffff
je 0x10024f64
mov edi, dword [sym.imp.SHLWAPI.dll_StrRStrIA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
mov edi, edi
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
jae 0x10024edc
lea eax, [ebp - 0x64]
push eax
push 0
lea ecx, [ebp - 0x194]
push ecx
call edi
test eax, eax
je 0x10024f49
cmp byte [eax + 4], 0
jne 0x10024f49
lea edx, [ebp - 0x194]
push 0x100485fc
push edx
call fcn.10032520
add esp, 8
test eax, eax
je 0x10024f49
push 1
push 0x100485f8
lea ecx, [ebp - 0x2c]
call fcn.100046f8
lea eax, [ebp - 0x194]
push eax
call esi
lea eax, [ebp - 0x194]
lea edx, [eax + 1]
jmp 0x10024f30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024f30
sub eax, edx
push eax
lea ecx, [ebp - 0x194]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100046f8
lea edx, [ebp - 0x1c0]
push edx
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x10024ed0
lea esi, [eax + 0xf]
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ebx, 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x1c], ebx
jb 0x10024f8a
push ebx
lea eax, [ebp - 0x80]
push eax
call fcn.100059da
mov byte [ebp - 4], 4
jmp 0x10024fad
push edi
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
call fcn.100044e0
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 5
mov ebx, 2
mov ecx, dword [ebp - 0x1c4]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push eax
mov dword [ebp - 0x1c8], ebx
mov byte [ecx], 0
call fcn.1000742a
or ebx, 4
test bl, 2
je 0x10024fef
and ebx, 0xfffffffd
cmp dword [ebp - 0x34], 0x10
jb 0x10024fe5
mov edx, dword [ebp - 0x48]
push edx
call fcn.1002eeea
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
test bl, 1
je 0x10025010
cmp dword [ebp - 0x6c], 0x10
jb 0x10025006
mov eax, dword [ebp - 0x80]
push eax
call fcn.1002eeea
add esp, 4
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], edi
mov byte [ebp - 0x80], 0
cmp dword [ebp - 0x50], 0x10
jb 0x10025022
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.1002eeea
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
jb 0x1002503e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1002eeea
add esp, 4
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
jb 0x1002505a
mov eax, dword [ebp + 0xc]
push eax
call fcn.1002eeea
add esp, 4
mov eax, dword [ebp - 0x1c4]
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.10030fba
mov esp, ebp
pop ebp
ret