Function at 0x47fa70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x5f0524]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
mov dword [esp + 0x14], ebx
test edi, edi
jne 0x47fafb
call fcn.0043c7b0
test eax, eax
je 0x47faac
lea edi, [eax + 8]
mov dword [esp + 0x10], edi
jmp 0x47fab4
mov dword [esp + 0x10], 0
call fcn.00408da0
mov esi, eax
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x34]
push ebx
cmp dword [eax + 0x20], 0
jbe 0x47fae3
dec dword [eax + 0x20]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax + ecx*4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x47faf0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x3c]
call eax
mov edi, eax
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [edi + 0x2c], eax
mov ecx, ebx
call fcn.0047af60
mov dword [esp + 0x1c], eax
mov ecx, ebx
mov eax, dword [ebx]
push 1
push 0
call dword [eax + 0x118]
mov ecx, dword [esp + 0x1c]
mov esi, eax
lea eax, [esp + 0x20]
mov dword [esp + 0x10], esi
push eax
mov eax, dword [ecx]
call dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x47fd24
mov ebx, dword [ebp + 8]
mov cl, 1
mov byte [esp + 0xd], 1
mov byte [esp + 0xe], cl
mov byte [esp + 0xf], cl
test bl, bl
jne 0x47fb92
call fcn.00481310
mov byte [esp + 0xd], al
call fcn.00481410
mov cl, al
mov byte [esp + 0xe], cl
cmp byte [esp + 0xd], bl
je 0x47fb70
test cl, cl
jne 0x47fb92
call fcn.00476430
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [ecx]
call dword [eax + 0xb0]
push eax
call fcn.00521896
add esp, 8
test eax, eax
setne byte [esp + 0xf]
mov ecx, str..__
lea eax, [esp + 0x4c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47fbc6
test dx, dx
je 0x47fbc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47fbc6
add eax, 4
add ecx, 4
test dx, dx
jne 0x47fba0
xor eax, eax
jmp 0x47fbcb
sbb eax, eax
or eax, 1
test eax, eax
je 0x47fd03
mov eax, 0x5cc0c0
lea ecx, [esp + 0x4c]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x47fc06
test dx, dx
je 0x47fc02
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x47fc06
add ecx, 4
add eax, 4
test dx, dx
jne 0x47fbe0
xor eax, eax
jmp 0x47fc0b
sbb eax, eax
or eax, 1
test eax, eax
je 0x47fd03
mov eax, dword [esp + 0x20]
test eax, 0x410
jne 0x47fd03
test bl, bl
jne 0x47fc7e
cmp byte [esp + 0xd], bl
jne 0x47fc34
test al, 2
jne 0x47fd03
cmp byte [esp + 0xe], 0
jne 0x47fc43
test al, 4
jne 0x47fd03
cmp byte [esp + 0xf], 0
jne 0x47fc7e
lea eax, [esp + 0x4c]
push str.AUTOEXEC.BAT
push eax
call fcn.00521896
add esp, 8
test eax, eax
je 0x47fd03
lea eax, [esp + 0x4c]
push str.CONFIG.SYS
push eax
call fcn.00521896
add esp, 8
test eax, eax
je 0x47fd03
mov eax, dword [esp + 0x14]
mov esi, dword [esi]
mov ecx, dword [eax + 0x80]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x10]
inc eax
push eax
call dword [esi + 0x30]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x1e0]
call fcn.0043c400
push dword [esp + 0x10]
mov esi, eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x1e8]
test byte [esp + 0x20], 0x10
jne 0x47fce2
mov eax, dword [edi + 0x20]
cmp eax, dword [edi + 0x24]
jne 0x47fcd4
mov ecx, edi
call fcn.0042d690
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x1c]
mov dword [eax + ecx*4], esi
inc dword [edi + 0x20]
jmp 0x47fcff
mov ecx, dword [ebp + 0xc]
test cl, cl
je 0x47fcf6
mov eax, dword [esi]
push edi
push ecx
push ebx
mov ecx, esi
call dword [eax + 0x1b0]
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
call dword [eax + 4]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47fb92
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1c]
add ecx, 4
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x47fd39
lea ecx, [esi + 4]
jmp 0x47fd3b
xor ecx, ecx
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x274]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051a19b
mov esp, ebp
pop ebp
ret 0xc