Function at 0x40a7e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54195e
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x594ca8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov ecx, 0x5704e4
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a847
test dx, dx
je 0x40a843
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a847
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a821
xor eax, eax
jmp 0x40a84c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x40a871
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40aa4c
push 0x570574
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x26c]
push edx
call fcn.00404260
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a8bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x40a8e0
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40aa4c
test byte [ebp - 0x260], 0x10
je 0x40aa13
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x264]
call fcn.004040f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x264]
mov ecx, 0x570580
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a936
test dx, dx
je 0x40a932
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a936
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a910
xor eax, eax
jmp 0x40a93b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x40a9eb
mov eax, dword [ebp - 0x264]
mov ecx, 0x570584
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a979
test dx, dx
je 0x40a975
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a979
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a953
xor eax, eax
jmp 0x40a97e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x40a9eb
push edi
push 0x57058c
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x268]
push eax
call fcn.00404260
add esp, 8
mov ecx, esp
mov dword [ebp - 0x270], esp
lea edx, [ebp - 0x264]
push edx
push eax
push ecx
mov byte [ebp - 4], 2
call fcn.00403830
add esp, 0xc
call fcn.0040a7e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40aa15
inc dword [edi]
lea ecx, [ebp - 0x260]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a8e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aa58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051553d
mov esp, ebp
pop ebp
ret