Function at 0x40a8f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c081
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea eax, [ebp + 8]
push str..cas
lea ecx, [ebp - 0x18]
push eax
push ecx
mov dword [ebp - 4], 0
call fcn.00507fcf
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x230]
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x28], edi
je 0x40ab96
mov bl, 8
lea ecx, [ebp - 0x204]
push 0x55e51c
push ecx
call fcn.0048d6a0
add esp, 8
test eax, eax
je 0x40ab79
lea edx, [ebp - 0x204]
push 0x55e518
push edx
call fcn.0048d6a0
add esp, 8
test eax, eax
je 0x40ab79
mov eax, dword [ebp - 0x230]
and eax, 0x10
cmp al, 0x10
je 0x40ab79
lea ecx, [ebp - 0x3c]
call fcn.00506564
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 2
call fcn.0040c600
lea ecx, [ebp + 8]
push 0x55cfa4
lea edx, [ebp - 0x24]
push ecx
push edx
mov byte [ebp - 4], 3
call fcn.00507fcf
lea ecx, [ebp - 0x204]
lea edx, [ebp - 0x14]
push ecx
push eax
push edx
mov byte [ebp - 4], 4
call fcn.00507fcf
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.00507d3a
lea ecx, [ebp - 0x44]
call fcn.0050c575
mov eax, dword [ebp - 0x14]
push 0x8010
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.0050c6e3
push 0
push 0x1000
push 1
push eax
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 9
call fcn.0050ed7b
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.005068f5
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 9
call fcn.0050ee57
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.0050c783
xor esi, esi
mov eax, dword [ebp - 0x34]
cmp esi, eax
jge 0x40aac4
mov eax, dword [0x569c90]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x1c]
push edx
push 0x56e1f4
mov eax, dword [ecx + esi*4]
mov byte [ebp - 4], 0xc
push eax
call fcn.00409330
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [ebp - 0x20]
push eax
push ecx
push str._s_s.dat
push edx
call fcn.005054dc
mov eax, dword [ebp - 0x20]
add esp, 0x10
push eax
call fcn.00422830
add esp, 4
test eax, eax
jne 0x40aaaa
push 1
push esi
lea ecx, [ebp - 0x3c]
call fcn.00506899
dec esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.00507d3a
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00507d3a
inc esi
jmp 0x40aa47
test eax, eax
jle 0x40ab1b
mov ecx, dword [ebp - 0x14]
push 0x9012
push ecx
lea ecx, [ebp - 0x58]
call fcn.0050c6e3
push 0
push 0x1000
push 0
push eax
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0xd
call fcn.0050ed7b
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xe
call fcn.005068f5
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0xd
call fcn.0050ee57
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.0050c783
jmp 0x40ab46
mov edx, dword [ebp - 0x14]
push edx
call fcn.00422fd0
add esp, 4
jmp 0x40ab46
mov dword [ebp - 4], 6
call fcn.0050c5b3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00507d3a
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 2
call fcn.0040c6a0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00506597
lea edx, [ebp - 0x230]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a952
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00507d3a
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00507d3a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret