Function at 0x100291f0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x15c
mov eax, dword [0x10057bf0]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
mov ebx, dword [esp + 0x168]
mov ecx, ebx
push esi
mov esi, dword [esp + 0x168]
push edi
mov edi, dword [esp + 0x174]
lea edx, [ecx + 1]
mov dword [esp + 0xc], edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10029225
sub ecx, edx
cmp byte [ecx + ebx - 1], 0x2e
jne 0x10029249
mov dword [esi], 0x54c5
xor eax, eax
mov dword [esi + 4], 0xfffffffe
jmp 0x10029445
push ebp
push 8
call fcn.100342e0
mov ebp, eax
test ebp, ebp
jne 0x10029269
mov dword [esi], 0x54c6
mov dword [esi + 4], 0xfffffff3
jmp 0x10029442
push dword [esi + 0x1c]
push dword [esi + 0x18]
push edi
push ebx
push esi
call 0x10069ed7
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x100292a3
push edi
mov dword [edi + 0x1b4], ebp
call fcn.1002dc40
mov dword [esp + 0x1c], eax
mov dword [eax + 0x129], ebp
mov dword [ebp + 4], edi
mov dword [ebp], 2
jmp 0x100292f2
mov eax, dword [esi + 4]
cmp eax, 0xffffffee
je 0x10029414
cmp eax, 0xffffffef
je 0x10029414
cmp eax, 0xfffffff6
je 0x10029414
push dword [esi + 0x18]
push dword [esp + 0x14]
push ebx
push esi
call fcn.100297e0
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x100292e2
push ebp
call fcn.10034320
jmp 0x10029442
mov dword [eax + 0x129], ebp
mov dword [ebp + 4], eax
mov dword [ebp], 1
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100292f7
sub edi, ecx
lea eax, [edi + 5]
push eax
mov dword [esp + 0x24], eax
call fcn.100342e0
mov dword [esp + 0x14], eax
lea eax, [edi + 5]
push ebx
mov ebx, dword [esp + 0x18]
push eax
push ebx
call fcn.10009530
push 0x10002764
lea eax, [edi + 5]
push eax
push ebx
call fcn.100094b0
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x10029351
push ebx
call fcn.10034320
mov eax, ebp
jmp 0x10029444
lea eax, [esp + 0x54]
push eax
lea eax, [edi + 5]
push eax
push ebx
call fcn.10034210
lea eax, [ebx + 2]
mov ebx, dword [esp + 0x1c]
add eax, edi
mov dword [esp + 0x24], eax
lea ecx, [ecx]
push eax
call fcn.10034260
mov edi, eax
test edi, edi
jle 0x100293c7
push dword [esi + 0x24]
mov eax, dword [esp + 0x1c]
push dword [esi + 0x20]
push edi
test eax, eax
je 0x100293b7
push eax
call fcn.10034030
test eax, eax
jne 0x100293c7
cmp dword [esi + 4], 0xfffffff4
jne 0x100293ac
push dword [esi + 0x24]
push dword [esi + 0x20]
push edi
push ebx
call fcn.10033e70
test eax, eax
jne 0x100293c7
push dword [esp + 0x18]
call fcn.1002b180
jmp 0x100293fb
push ebx
call fcn.10033e70
test eax, eax
jne 0x100293c7
cmp dword [esi + 4], 0xfffffff4
jne 0x100293f5
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x100293fd
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x24]
push dword [esp + 0x1c]
call fcn.10034210
mov eax, dword [esp + 0x24]
jmp 0x10029370
push ebx
call fcn.100298f0
xor ebp, ebp
push dword [esp + 0x14]
call fcn.10034320
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
jmp 0x10029444
lea ecx, [esi + 0x1750]
mov edx, 0x104
sub ebx, ecx
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1002943a
mov al, byte [ebx + ecx]
test al, al
je 0x1002943a
mov byte [ecx], al
inc ecx
dec edx
jne 0x10029421
jmp 0x1002943e
test edx, edx
jne 0x1002943f
dec ecx
mov byte [ecx], 0
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004491e
add esp, 0x15c
ret 0xc