Function at 0x47f000
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 dword [esp + 0x14], ecx
call fcn.00407f70
mov esi, eax
lea edi, [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x34]
push edi
cmp dword [eax + 0x20], 0
jbe 0x47f050
dec dword [eax + 0x20]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax + ecx*4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x47f05d
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x3c]
call eax
mov ebx, eax
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.0047af60
mov edx, dword [esi]
mov ecx, esi
push 1
push 0
mov dword [esp + 0x20], eax
call dword [edx + 0x118]
mov edi, eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
je 0x47f252
cmp byte [ebp + 0xc], 0
mov al, 1
mov byte [esp + 0x11], 1
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
jne 0x47f100
call fcn.00481310
mov byte [esp + 0x11], al
call fcn.00481410
cmp byte [esp + 0x11], 0
mov byte [esp + 0x12], al
je 0x47f0d4
test al, al
jne 0x47f100
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 + 0x13]
nop word [eax + eax]
mov ecx, str..__
lea eax, [esp + 0x4c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47f136
test dx, dx
je 0x47f132
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47f136
add eax, 4
add ecx, 4
test dx, dx
jne 0x47f110
xor eax, eax
jmp 0x47f13b
sbb eax, eax
or eax, 1
test eax, eax
je 0x47f237
mov eax, 0x5cc0c0
lea ecx, [esp + 0x4c]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x47f176
test dx, dx
je 0x47f172
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x47f176
add ecx, 4
add eax, 4
test dx, dx
jne 0x47f150
xor eax, eax
jmp 0x47f17b
sbb eax, eax
or eax, 1
test eax, eax
je 0x47f237
mov eax, dword [esp + 0x20]
test eax, 0x410
jne 0x47f237
cmp byte [ebp + 0xc], 0
jne 0x47f1e9
cmp byte [esp + 0x11], 0
jne 0x47f1a7
test al, 2
jne 0x47f237
cmp byte [esp + 0x12], 0
jne 0x47f1b6
test al, 4
jne 0x47f237
cmp byte [esp + 0x13], 0
jne 0x47f1e9
lea eax, [esp + 0x4c]
push str.AUTOEXEC.BAT
push eax
call fcn.00521896
add esp, 8
test eax, eax
je 0x47f237
lea eax, [esp + 0x4c]
push str.CONFIG.SYS
push eax
call fcn.00521896
add esp, 8
test eax, eax
je 0x47f237
cmp byte [ebp + 8], 0
je 0x47f22b
mov eax, dword [esp + 0x14]
mov esi, dword [edi]
mov ecx, dword [eax + 0x80]
mov eax, dword [ecx]
call dword [eax + 0x2c]
inc eax
mov ecx, edi
push eax
call dword [esi + 0x30]
mov eax, dword [edi]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, edi
call dword [eax + 0x1e0]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x50]
push eax
mov ecx, ebx
call fcn.00408850
mov esi, dword [esp + 0x1c]
jmp 0x47f237
lea eax, [esp + 0x4c]
mov ecx, ebx
push eax
call fcn.00408850
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47f100
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x18]
add ecx, 4
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x47f267
lea ecx, [edi + 4]
jmp 0x47f269
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x274]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051a19b
mov esp, ebp
pop ebp
ret 8