Function at 0x4809f0
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
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
push edi
test ebx, ebx
jne 0x480a59
call fcn.004bdec0
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], ebx
jbe 0x480a48
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 0x480a55
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x3c]
call eax
mov ebx, eax
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.0047af60
mov dword [esp + 0x1c], eax
mov ecx, esi
mov eax, dword [esi]
push 1
push 0
call dword [eax + 0x118]
mov ecx, dword [esp + 0x1c]
mov edi, eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ecx]
call dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x480c59
cmp byte [ebp + 8], 0
mov al, 1
mov byte [esp + 0x11], 1
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
jne 0x480ae8
call fcn.00481310
mov byte [esp + 0x11], al
call fcn.00481410
cmp byte [esp + 0x11], 0
mov byte [esp + 0x12], al
je 0x480ac8
test al, al
jne 0x480ae8
call fcn.00476430
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xb0]
push eax
call fcn.00521896
add esp, 8
test eax, eax
setne byte [esp + 0x13]
mov esi, dword [esp + 0x14]
nop dword [eax]
mov ecx, str..__
lea eax, [esp + 0x4c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x480b26
test dx, dx
je 0x480b22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x480b26
add eax, 4
add ecx, 4
test dx, dx
jne 0x480b00
xor eax, eax
jmp 0x480b2b
sbb eax, eax
or eax, 1
test eax, eax
je 0x480c3e
mov eax, 0x5cc0c0
lea ecx, [esp + 0x4c]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x480b66
test dx, dx
je 0x480b62
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x480b66
add ecx, 4
add eax, 4
test dx, dx
jne 0x480b40
xor eax, eax
jmp 0x480b6b
sbb eax, eax
or eax, 1
test eax, eax
je 0x480c3e
mov ecx, dword [esp + 0x20]
mov eax, ecx
and eax, 0x410
cmp eax, 0x10
jne 0x480c3e
cmp byte [ebp + 8], 0
jne 0x480be0
cmp byte [esp + 0x11], 0
jne 0x480b9d
test cl, 2
jne 0x480c3e
cmp byte [esp + 0x12], 0
jne 0x480bad
test cl, 4
jne 0x480c3e
cmp byte [esp + 0x13], 0
jne 0x480be0
lea eax, [esp + 0x4c]
push str.AUTOEXEC.BAT
push eax
call fcn.00521896
add esp, 8
test eax, eax
je 0x480c3e
lea eax, [esp + 0x4c]
push str.CONFIG.SYS
push eax
call fcn.00521896
add esp, 8
test eax, eax
je 0x480c3e
mov eax, dword [esp + 0x18]
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]
call fcn.0043c400
mov esi, eax
push edi
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x1e8]
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0xc4]
mov ecx, dword [ebp + 0xc]
test cl, cl
je 0x480c3a
mov eax, dword [esi]
push ebx
push ecx
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x1b8]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x480af0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1c]
add ecx, 4
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x480c6e
lea ecx, [edi + 4]
jmp 0x480c70
xor ecx, ecx
mov edx, dword [ecx]
call dword [edx + 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 0xc