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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x5d1124]
xor eax, esp
mov dword [esp + 0x358], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x140
mov dword [esp + 0x18], eax
lea eax, [esp + 0x24]
push 0
push eax
mov dword [esp + 0x1c], ecx
call fcn.00552b90
add esp, 0xc
lea eax, [esp + 0x260]
push 0x100
push 0
push eax
call fcn.00552b90
add esp, 0xc
lea eax, [esp + 0x160]
push 0x100
push 0
push eax
call fcn.00552b90
mov esi, dword [ebp + 8]
lea edx, [esp + 0x26c]
add esp, 0xc
mov ecx, esi
sub edx, esi
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40a3e0
lea ecx, [esp + 0x260]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a3f7
sub ecx, edx
cmp byte [esp + ecx + 0x25f], 0x5c
je 0x40a425
lea edi, [esp + 0x260]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40a412
mov ax, word [0x5b3bdc]
mov word [edi], ax
lea edi, [esp + 0x260]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40a430
mov eax, dword [0x5b3be0]
mov dword [edi], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ebx, [esp + 0x160]
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x160]
sub ebx, esi
dec edi
mov dword [esp + 0x18], edi
jmp 0x40a474
mov edi, dword [esp + 0x18]
mov eax, esi
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [ebx + eax - 1], cl
test cl, cl
jne 0x40a476
lea ecx, [esp + 0x160]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a490
sub ecx, edx
cmp byte [edi + ecx], 0x5c
je 0x40a4ba
lea edi, [esp + 0x160]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40a4a7
mov ax, word [0x5b3bdc]
mov word [edi], ax
lea edx, [esp + 0x4c]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x40a4c0
lea edi, [esp + 0x160]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a4d1
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test byte [esp + 0x20], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x40a583
mov ecx, 0x5b3be4
lea eax, [esp + 0x4c]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a520
test dl, dl
je 0x40a51c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a520
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a500
xor eax, eax
jmp 0x40a525
sbb eax, eax
or eax, 1
test eax, eax
je 0x40a583
mov ecx, 0x5b3be8
lea eax, [esp + 0x4c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a552
test dl, dl
je 0x40a54e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a552
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a532
xor eax, eax
jmp 0x40a557
sbb eax, eax
or eax, 1
test eax, eax
je 0x40a583
mov edi, dword [ebp + 0x10]
mov esi, dword [esp + 0x10]
test edi, edi
je 0x40a6c2
push edi
push dword [esp + 0x18]
lea eax, [esp + 0x168]
mov ecx, esi
push eax
call fcn.0040a360
jmp 0x40a6c2
mov ecx, 0x5b3be4
lea eax, [esp + 0x4c]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a5b0
test dl, dl
je 0x40a5ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a5b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a590
xor eax, eax
jmp 0x40a5b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x40a6be
mov ecx, 0x5b3be8
lea eax, [esp + 0x4c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a5e6
test dl, dl
je 0x40a5e2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a5e6
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a5c6
xor eax, eax
jmp 0x40a5eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40a6be
push dword [esp + 0x14]
call fcn.00563ada
add esp, 4
mov esi, eax
lea eax, [esp + 0x4c]
push eax
call fcn.00563ada
add esp, 4
push esi
push eax
call fcn.00552220
add esp, 8
test eax, eax
je 0x40a6be
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov cl, byte [esp + 0x20]
lea esi, [esp + 0x160]
mov edi, eax
and cl, 0x10
mov byte [edi + 1], cl
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40a643
sub esi, ecx
lea eax, [esp + 0x160]
push esi
push eax
lea eax, [edi + 2]
push eax
call fcn.00552610
mov byte [edi + esi + 2], 0
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov dword [edi + esi + 3], eax
mov eax, dword [esp + 0x40]
mov dword [edi + esi + 7], eax
mov eax, dword [esp + 0x34]
mov dword [edi + esi + 0xb], eax
mov eax, dword [esp + 0x38]
mov dword [edi + esi + 0xf], eax
add esi, 0x13
cmp esi, 1
jbe 0x40a6be
push 0x42
push esi
push edi
mov byte [edi], 0x1c
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [esp + 0x10]
push eax
push esi
call fcn.00409ef0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40a6e6
cmp dword [esi + 0x12c], 0
mov esi, dword [ebp + 8]
je 0x40a470
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0054f768
mov esp, ebp
pop ebp
ret 0xc