Function at 0x40ac22
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x4bcecc
call fcn.00483820
sub esp, 0x298
mov eax, dword [0x4eec8c]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x4c], eax
xor ebx, ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.0049c82d
push dword [ebp + 8]
lea eax, [ebp - 0x164]
mov byte [ebp - 4], 1
push eax
call fcn.004838f0
push dword [ebp + 0xc]
lea eax, [ebp - 0x164]
push eax
call fcn.00483900
add esp, 0x10
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], eax
mov edi, bind
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40af2a
cmp byte [ebp - 0x278], 0x2e
jne 0x40acc2
cmp byte [ebp - 0x277], 0x2e
je 0x40b057
cmp byte [ebp - 0x277], bl
je 0x40b057
mov eax, dword [ebp - 0x2a4]
and eax, 0x10
cmp al, 0x10
je 0x40b057
mov eax, dword [ebp + 8]
cmp byte [eax], bl
jne 0x40aced
push dword [ebp + 0xc]
lea eax, [ebp - 0x164]
push eax
call fcn.004838f0
pop ecx
pop ecx
jmp 0x40ad10
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.004838f0
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.00483900
add esp, 0x10
lea ecx, [ebp - 0x60]
call fcn.0049d3ed
cmp dword [ebp + 0x10], ebx
push ebx
lea eax, [ebp - 0x164]
push 0x40
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x30]
je 0x40ae97
call fcn.0049c9df
push dword [esi + 0x23e]
call fcn.00483b20
push ebx
push 0xffffffffffffffff
push ebx
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push ebx
push ebx
push 1
push dword [esi + 0x252]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x23e]
lea ecx, [ebp - 0x20]
push dword [esi + 0x24e]
push dword [esi + 0x246]
push ecx
push eax
push edi
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.0044e018
add esp, 0x4c
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], eax
call fcn.0049cbfa
cmp dword [ebp - 0x14], 0xffffffff
je 0x40aef5
push ebx
lea eax, [ebp - 0x164]
push 2
push eax
lea ecx, [ebp - 0x30]
call fcn.0049c9df
cmp eax, ebx
je 0x40ae2f
mov eax, dword [ebp - 0x20]
push dword [esi + 0x23e]
mov dword [ebp - 0x18], eax
call fcn.00483b20
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
pop ecx
mov dword [ebp - 0x14], ebx
js 0x40add0
mov dword [ebp - 0x14], eax
push 1
push ebx
push ebx
mov eax, dword [esi + 0x242]
push dword [esi + 0x252]
mov ecx, dword [esi + 0x23e]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x48], ecx
push dword [esi + 0x24e]
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0x246]
push eax
call fcn.00483b20
pop ecx
push eax
lea eax, [ebp - 0x20]
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push dword [ebp - 0x48]
push edi
push dword [ebp - 0x14]
push eax
call fcn.0044dfd3
add dword [esi + 0x26a], eax
add esp, 0x40
inc dword [esi + 0x26e]
jmp 0x40aeed
mov eax, dword [0x4eec8c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
push 0x40
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0049be1e
push 0x41
lea ecx, [ebp - 0x18]
call fcn.0049be1e
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0049ba48
mov eax, dword [eax]
push 0x30
push dword [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x40]
call fcn.0049b7ff
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0049b7ff
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0049b7ff
jmp 0x40aef5
call fcn.0049c9df
mov eax, dword [esi + 0x1ac]
push 0x4f1070
push eax
call fcn.0048383f
pop ecx
test eax, eax
pop ecx
je 0x40aeca
mov eax, dword [esi + 0x1ac]
push ebx
push 1
push dword [esi + 0x252]
push dword [esi + 0x24e]
jmp 0x40aedf
push ebx
push 1
push dword [esi + 0x252]
lea eax, [ebp - 0x164]
push dword [esi + 0x24e]
push eax
push edi
lea eax, [ebp - 0x30]
push ebx
push eax
mov ecx, esi
call fcn.0040b0bc
lea ecx, [ebp - 0x30]
call fcn.0049cbfa
mov ecx, esi
call fcn.0040c58e
cmp eax, ebx
je 0x40b04b
mov eax, dword [esi + 0x24a]
mov dword [esi + 0x262], 1
add esi, 0x24a
mov dword [0x4f14c4], eax
mov byte [ebp - 4], 1
mov dword [esi], ebx
call fcn.0049d42b
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0049c922
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0049b7ff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
mov dword [ebp - 4], 1
call fcn.0049d42b
lea eax, [ebp - 0x2a4]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40b076
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
jmp 0x40ac96
or dword [ebp - 0x1c], 0xffffffff
jmp 0x40ac96