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

Disassembly:
push ebp
sub esp, 0x288
lea ebp, [esp - 4]
mov eax, dword [0x4566c8]
xor eax, ebp
mov dword [ebp + 0x288], eax
push 0x2dc
mov eax, 0x43d0e6
call fcn.004212a4
mov eax, dword [ebp + 0x294]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x298]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x29c]
xor ebx, ebx
push 0x250
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2e8]
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.00421420
add esp, 0xc
push dword [ebp - 0x18]
mov ecx, 0x94
lea esi, [ebp - 0x2e8]
lea edi, [ebp]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x26c]
call fcn.00404ab7
push 0x4417bc
lea ecx, [ebp + 0x26c]
mov dword [ebp - 4], ebx
call fcn.00405121
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x20]
lea ecx, [ebp + 0x26c]
call fcn.004045fa
cmp dword [ebp + 0x284], 8
mov eax, dword [ebp + 0x270]
jae 0x40de28
lea eax, [ebp + 0x270]
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x40de43
push ebx
push 1
jmp 0x40dfdc
push 0x4417c0
lea ecx, [ebp - 0x60]
call fcn.00405457
xor esi, esi
lea eax, [ebp + 0x2c]
inc esi
or dword [ebp - 0x10], esi
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.00405457
push 2
pop edi
or dword [ebp - 0x10], edi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 4], edi
call fcn.00407a78
pop ecx
pop ecx
test eax, eax
je 0x40dec6
push 0x4417c4
lea ecx, [ebp - 0x7c]
call fcn.00405457
or dword [ebp - 0x10], 4
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 3
call fcn.00405457
or dword [ebp - 0x10], 8
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00407a78
pop ecx
pop ecx
mov byte [ebp - 0x11], bl
test eax, eax
jne 0x40deca
mov byte [ebp - 0x11], 1
test byte [ebp - 0x10], 8
je 0x40dede
and dword [ebp - 0x10], 0xfffffff7
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.00403f19
test byte [ebp - 0x10], 4
je 0x40def2
and dword [ebp - 0x10], 0xfffffffb
push ebx
push esi
lea ecx, [ebp - 0x7c]
call fcn.00403f19
test byte [ebp - 0x10], 2
je 0x40df09
and dword [ebp - 0x10], 0xfffffffd
push ebx
push esi
lea ecx, [ebp - 0x98]
call fcn.00403f19
test byte [ebp - 0x10], 1
mov dword [ebp - 4], ebx
je 0x40df20
and dword [ebp - 0x10], 0xfffffffe
push ebx
push esi
lea ecx, [ebp - 0x60]
call fcn.00403f19
cmp byte [ebp - 0x11], bl
je 0x40df46
lea eax, [ebp + 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
cmp cx, bx
jne 0x40df2e
sub eax, edx
sar eax, 1
je 0x40dfbc
lea ecx, [ebp + 0x234]
jmp 0x40df49
lea ecx, [ebp + 0x2c]
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x18], 8
jb 0x40df57
mov eax, dword [eax + 4]
jmp 0x40df5a
add eax, 4
push ecx
push eax
lea eax, [ebp + 0x250]
push 0x4417cc
push eax
call fcn.00409311
add esp, 0x10
test byte [ebp], 0x10
mov byte [ebp - 4], 4
je 0x40df9d
cmp byte [ebp + 0x2a0], bl
je 0x40dfac
push dword [ebp + 0x2a0]
lea eax, [ebp + 0x250]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push eax
call fcn.0040dd75
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x250]
push eax
call fcn.0041b89f
push ebx
push esi
lea ecx, [ebp + 0x250]
mov byte [ebp - 4], bl
call fcn.00403f19
lea eax, [ebp]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40de43
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push esi
lea ecx, [ebp + 0x26c]
call fcn.00403f19
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x288]
xor ecx, ebp
call fcn.0042090d
add ebp, 0x28c
leave
ret