Function at 0x10005090
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100513b6
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x100682b0]
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 - 0x1ac], eax
mov dword [ebp - 0x1a8], edi
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 0x1c]
push 0xffffffffffffffff
dec ecx
lea esi, [ebp - 0x64]
lea edx, [ebp + 0xc]
call fcn.10002200
mov esi, dword [eax + 0x10]
mov ecx, esi
cmp esi, 1
jb 0x100050f0
lea ecx, [edi + 1]
cmp dword [eax + 0x14], 0x10
jb 0x100050fa
mov edx, dword [eax]
jmp 0x100050fc
mov edx, eax
mov eax, ecx
mov ecx, 0x1005e45c
call fcn.10002130
cmp eax, edi
jne 0x10005120
cmp esi, 1
jae 0x10005116
or eax, 0xffffffff
jmp 0x1000511e
xor eax, eax
cmp esi, 1
setne al
cmp eax, edi
sete al
test al, al
mov esi, 0x10
sete bl
mov byte [ebp - 4], 0
cmp dword [ebp - 0x50], esi
jb 0x10005142
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.10019165
add esp, 4
test bl, bl
je 0x10005155
push 1
push 0x1005e45c
lea ecx, [ebp + 0xc]
call fcn.10007030
push 3
push 0x1005e460
lea ecx, [ebp + 0xc]
call fcn.10007030
push edi
push 0x1005e2e3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
call fcn.10007150
push 0x13c
lea edx, [ebp - 0x1a0]
push edi
mov byte [ebp - 4], 2
push edx
mov dword [ebp - 0x1a4], edi
call fcn.1001ba60
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp dword [ebp + 0x20], esi
jae 0x100051aa
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x1a4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000524e
mov ebx, dword [sym.imp.SHLWAPI.dll_StrRStrIA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
nop
push 0x1005e464
push 0
lea edx, [ebp - 0x178]
push edx
call ebx
test eax, eax
je 0x1000523c
cmp byte [eax + 4], 0
jne 0x1000523c
lea eax, [ebp - 0x178]
push 0x1005e46c
push eax
call fcn.1001a430
add esp, 8
test eax, eax
je 0x1000523c
push 1
push 0x1005e470
lea ecx, [ebp - 0x2c]
call fcn.10007030
lea ecx, [ebp - 0x178]
push ecx
call esi
lea eax, [ebp - 0x178]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005223
sub eax, edx
push eax
lea edx, [ebp - 0x178]
push edx
lea ecx, [ebp - 0x2c]
call fcn.10007030
lea eax, [ebp - 0x1a4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100051d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, 1
push 0xffffffffffffffff
cmp dword [ebp - 0x1c], ebx
jb 0x10005276
mov ecx, ebx
lea esi, [ebp - 0x64]
lea edx, [ebp - 0x2c]
call fcn.10002200
mov byte [ebp - 4], 3
xor esi, esi
jmp 0x100052a2
xor esi, esi
push esi
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x48], 0
call fcn.10001400
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 4
mov ebx, 2
mov edi, dword [ebp - 0x1ac]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], esi
push eax
mov ecx, edi
mov dword [ebp - 0x1a8], ebx
mov byte [edi], 0
call fcn.10002330
or ebx, 4
test bl, 2
je 0x100052ee
and ebx, 0xfffffffd
cmp dword [ebp - 0x34], 0x10
jb 0x100052e0
mov edx, dword [ebp - 0x48]
push edx
call fcn.10019165
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x48], 0
test bl, 1
je 0x10005313
cmp dword [ebp - 0x50], 0x10
jb 0x10005305
mov eax, dword [ebp - 0x64]
push eax
call fcn.10019165
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], esi
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x18], 0x10
jb 0x10005325
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10019165
add esp, 4
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
jb 0x10005345
mov edx, dword [ebp + 0xc]
push edx
call fcn.10019165
add esp, 4
mov eax, edi
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.10019170
mov esp, ebp
pop ebp
ret