Function at 0x100291a0
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 0x100291d5
sub ecx, edx
cmp byte [ecx + ebx - 1], 0x2e
jne 0x100291f9
mov dword [esi], 0x54c5
xor eax, eax
mov dword [esi + 4], 0xfffffffe
jmp 0x100293f5
push ebp
push 8
call fcn.10034280
mov ebp, eax
test ebp, ebp
jne 0x10029219
mov dword [esi], 0x54c6
mov dword [esi + 4], 0xfffffff3
jmp 0x100293f2
push dword [esi + 0x1c]
push dword [esi + 0x18]
push edi
push ebx
push esi
call fcn.1002af90
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x10029253
push edi
mov dword [edi + 0x1b4], ebp
call fcn.1002dbe0
mov dword [esp + 0x1c], eax
mov dword [eax + 0x129], ebp
mov dword [ebp + 4], edi
mov dword [ebp], 2
jmp 0x100292a2
mov eax, dword [esi + 4]
cmp eax, 0xffffffee
je 0x100293c4
cmp eax, 0xffffffef
je 0x100293c4
cmp eax, 0xfffffff6
je 0x100293c4
push dword [esi + 0x18]
push dword [esp + 0x14]
push ebx
push esi
call fcn.10029790
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10029292
push ebp
call fcn.100342c0
jmp 0x100293f2
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 0x100292a7
sub edi, ecx
lea eax, [edi + 5]
push eax
mov dword [esp + 0x24], eax
call fcn.10034280
mov dword [esp + 0x14], eax
lea eax, [edi + 5]
push ebx
mov ebx, dword [esp + 0x18]
push eax
push ebx
call fcn.10009520
push 0x10002764
lea eax, [edi + 5]
push eax
push ebx
call fcn.100094a0
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x10029301
push ebx
call fcn.100342c0
mov eax, ebp
jmp 0x100293f4
lea eax, [esp + 0x54]
push eax
lea eax, [edi + 5]
push eax
push ebx
call fcn.100341b0
lea eax, [ebx + 2]
mov ebx, dword [esp + 0x1c]
add eax, edi
mov dword [esp + 0x24], eax
lea ecx, [ecx]
push eax
call fcn.10034200
mov edi, eax
test edi, edi
jle 0x10029377
push dword [esi + 0x24]
mov eax, dword [esp + 0x1c]
push dword [esi + 0x20]
push edi
test eax, eax
je 0x10029367
push eax
call fcn.10033fd0
test eax, eax
jne 0x10029377
cmp dword [esi + 4], 0xfffffff4
jne 0x1002935c
push dword [esi + 0x24]
push dword [esi + 0x20]
push edi
push ebx
call fcn.10033e10
test eax, eax
jne 0x10029377
push dword [esp + 0x18]
call fcn.1002b130
jmp 0x100293ab
push ebx
call fcn.10033e10
test eax, eax
jne 0x10029377
cmp dword [esi + 4], 0xfffffff4
jne 0x100293a5
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x100293ad
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x24]
push dword [esp + 0x1c]
call fcn.100341b0
mov eax, dword [esp + 0x24]
jmp 0x10029320
push ebx
call fcn.100298a0
xor ebp, ebp
push dword [esp + 0x14]
call fcn.100342c0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
jmp 0x100293f4
lea ecx, [esi + 0x1750]
mov edx, 0x104
sub ebx, ecx
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x100293ea
mov al, byte [ebx + ecx]
test al, al
je 0x100293ea
mov byte [ecx], al
inc ecx
dec edx
jne 0x100293d1
jmp 0x100293ee
test edx, edx
jne 0x100293ef
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.1004486e
add esp, 0x15c
ret 0xc