Function at 0x47f790
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 0x47f81b
call fcn.0043c7b0
test eax, eax
je 0x47f7cc
lea edi, [eax + 8]
mov dword [esp + 0x10], edi
jmp 0x47f7d4
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 0x47f803
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 0x47f810
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 0x47fa35
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 0x47f8b2
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 0x47f890
test cl, cl
jne 0x47f8b2
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 0x47f8e6
test dx, dx
je 0x47f8e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47f8e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x47f8c0
xor eax, eax
jmp 0x47f8eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x47fa14
mov eax, 0x5cc0c0
lea ecx, [esp + 0x4c]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x47f926
test dx, dx
je 0x47f922
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x47f926
add ecx, 4
add eax, 4
test dx, dx
jne 0x47f900
xor eax, eax
jmp 0x47f92b
sbb eax, eax
or eax, 1
test eax, eax
je 0x47fa14
mov ecx, dword [esp + 0x20]
mov eax, ecx
and eax, 0x410
cmp eax, 0x10
jne 0x47fa14
test bl, bl
jne 0x47f9a1
cmp byte [esp + 0xd], bl
jne 0x47f95a
test cl, 2
jne 0x47fa14
cmp byte [esp + 0xe], 0
jne 0x47f96a
test cl, 4
jne 0x47fa14
cmp byte [esp + 0xf], 0
jne 0x47f9a1
lea eax, [esp + 0x4c]
push str.AUTOEXEC.BAT
push eax
call fcn.00521896
add esp, 8
test eax, eax
je 0x47fa14
lea eax, [esp + 0x4c]
push str.CONFIG.SYS
push eax
call fcn.00521896
add esp, 8
test eax, eax
je 0x47fa14
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]
mov eax, dword [edi + 0x20]
cmp eax, dword [edi + 0x24]
jne 0x47f9f0
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]
mov ecx, dword [ebp + 0xc]
test cl, cl
je 0x47fa10
mov eax, dword [esi]
push edi
push ecx
push ebx
mov ecx, esi
call dword [eax + 0x1ac]
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 0x47f8b2
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 0x47fa4a
lea ecx, [esi + 4]
jmp 0x47fa4c
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