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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push eax
call fcn.340bd4b7
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, 0x1f4
sub ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x3409e07a
mov eax, 1
jmp 0x3409e28d
mov dword [ebp - 8], 1
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
and edx, 0x10
test edx, edx
je 0x3409e223
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0x2c]
cmp ecx, 0x2e
jne 0x3409e0ec
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ax, word [edx + 0x2e]
cmp eax, 0x2e
jne 0x3409e0d8
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dx, word [ecx + 0x30]
test edx, edx
jne 0x3409e0d8
mov dword [ebp - 0x1c], 0
jmp 0x3409e0ec
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0x2e]
test ecx, ecx
jne 0x3409e0ec
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
je 0x3409e221
mov dword [ebp - 0x20], 0
mov edx, dword [ebp + 0xc]
add edx, 0x2c
push edx
call fcn.340bd4b7
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 1
cmp dword [ebp - 0x14], eax
jb 0x3409e221
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov word [edx + ecx*2 - 2], 0
mov dword [ebp - 0x18], 0x10002
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x2c
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp + 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x3409e156
jmp 0x3409e280
mov ecx, dword [ebp + 0xc]
add ecx, 0x2c
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.340bd8ca
add esp, 8
push 0x3419054c
mov eax, dword [ebp + 8]
push eax
call fcn.340bd8ca
add esp, 8
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3409e036
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x3409e1a7
jmp 0x3409e280
push 0x208
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x2c
push edx
call fcn.340bd3e0
add esp, 0xc
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2 - 2]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x2c
push ecx
call fcn.340bd451
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov word [eax + edx*2 - 2], 0
mov dword [ebp - 0x18], 0x20002
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x2c
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov word [eax + edx*2 - 2], 0x2a
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov word [edx + ecx*2], 0
jmp 0x3409e25d
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*2 - 2], 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x2c
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*2 - 2], 0x2a
cmp dword [ebp - 8], 0
jne 0x3409e265
jmp 0x3409e280
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x3409e08f
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret