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

Disassembly:
push 0x2c0
mov eax, 0x4d74bd
call fcn.004b6799
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x20]
mov edi, ecx
mov dword [ebp - 0x270], eax
mov dword [ebp - 4], 1
call fcn.0049219b
push eax
lea ecx, [ebp - 0x268]
call fcn.00402802
lea eax, [ebp - 0x2cc]
push eax
mov byte [ebp - 4], 2
call fcn.0043553e
and dword [ebp - 0x26c], 0
push 0x531310
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x274]
push eax
mov byte [ebp - 4], 3
call fcn.0040217c
add esp, 0xc
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.004025ee
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x274]
add ecx, 0xfffffff0
call fcn.00402845
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x268]
call esi
mov dword [ebp - 0x278], eax
cmp eax, 0xffffffff
je 0x435a94
mov ecx, 0x52d4c4
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435920
test dx, dx
je 0x43591c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435920
add eax, 4
add ecx, 4
test dx, dx
jne 0x4358fa
xor eax, eax
jmp 0x435925
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x435a5d
mov ecx, 0x53a7d0
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43595e
test dx, dx
je 0x43595a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43595e
add eax, 4
add ecx, 4
test dx, dx
jne 0x435938
xor eax, eax
jmp 0x435963
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x435a5d
test byte [ebp - 0x264], 0x10
je 0x435a5d
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.0040217c
add esp, 0xc
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 5
call fcn.004025ee
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x27c]
add ecx, 0xfffffff0
call fcn.00402845
cmp dword [ebp + 0x18], 0
je 0x435a02
push 0
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x274], esp
mov ecx, esp
push eax
call fcn.004022fa
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x264]
call fcn.004355bd
push dword [ebp + 0x14]
mov eax, dword [edi]
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, edi
call dword [eax + 0xc]
inc dword [ebp - 0x26c]
test ebx, ebx
je 0x435a02
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebp + 0x10], 0
je 0x435a5d
push ebx
push dword [ebp - 0x270]
lea eax, [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
mov dword [ebp - 0x274], esp
mov ecx, esp
push eax
call fcn.004022fa
push ecx
mov eax, esp
mov dword [ebp - 0x280], esp
push 0x530c3c
lea ecx, [ebp - 0x268]
push ecx
push eax
mov byte [ebp - 4], 6
call fcn.0040217c
add esp, 0xc
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00435841
add dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x435a6d
mov eax, dword [eax]
test eax, eax
jne 0x435a88
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4358ef
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x435aa8
mov eax, dword [eax]
test eax, eax
jne 0x435bb9
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00402125
add esp, 0xc
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 7
call fcn.004025ee
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x284]
add ecx, 0xfffffff0
call fcn.00402845
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x268]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x435bb9
test byte [ebp - 0x264], 0x10
jne 0x435b8c
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.0040217c
add esp, 0xc
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 8
call fcn.004025ee
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x288]
add ecx, 0xfffffff0
call fcn.00402845
push 0
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x280], esp
mov ecx, esp
push eax
call fcn.004022fa
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x264]
call fcn.004355bd
push dword [ebp + 0x14]
mov eax, dword [edi]
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, edi
call dword [eax + 0xc]
inc dword [ebp - 0x26c]
test ebx, ebx
je 0x435b8c
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x435b9c
mov eax, dword [eax]
test eax, eax
jne 0x435bb2
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x435afb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x2c8]
add ecx, 0xfffffff0
call fcn.00402845
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.00402845
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402845
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402845
mov eax, dword [ebp - 0x26c]
call fcn.004b681c
ret 0x1c