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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e8089
mov eax, dword fs:[0]
push eax
sub esp, 0x334
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x320], ecx
cmp dword [ebp + 8], 0
jne 0x4407be
xor eax, eax
jmp 0x440b1a
cmp dword [ebp + 0xc], 0
jne 0x4407cb
xor eax, eax
jmp 0x440b1a
mov dword [ebp - 0x318], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x70]
call fcn.00402790
mov dword [ebp - 4], 0
push 0x5f0de8
lea ecx, [ebp - 0x70]
call fcn.00404340
lea ecx, [ebp - 0x40]
call fcn.00404430
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00402790
mov byte [ebp - 4], 2
lea edx, [ebp - 0x58]
push edx
call fcn.005b2cb3
add esp, 4
lea ecx, [ebp - 0x338]
call fcn.0042dcd0
mov byte [ebp - 4], 3
push 0x5f0df0
lea ecx, [ebp - 0xa0]
call fcn.00402790
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00402820
push eax
lea ecx, [ebp - 0x88]
call fcn.00402790
mov byte [ebp - 4], 5
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x88]
push edx
call fcn.005b2929
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.00402750
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa0]
call fcn.00402750
lea ecx, [ebp - 0x338]
call fcn.0042ed80
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x30c], 0
lea eax, [ebp - 0x308]
push eax
lea ecx, [ebp - 0x70]
call fcn.00402820
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0xffffffff
je 0x440aa4
lea ecx, [ebp - 0x308]
push ecx
mov edx, dword [ebp - 0x314]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 0
jne 0x4408ff
jmp 0x440aa4
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x2dc]
cmp edx, 0x2e
jne 0x440916
jmp 0x4408ca
mov eax, 2
shl eax, 0
movzx ecx, word [ebp + eax - 0x2dc]
test ecx, ecx
jne 0x44092c
jmp 0x4408ca
mov edx, 2
shl edx, 0
movzx eax, word [ebp + edx - 0x2dc]
cmp eax, 0x2e
jne 0x440959
mov ecx, 2
shl ecx, 1
movzx edx, word [ebp + ecx - 0x2dc]
test edx, edx
jne 0x440959
jmp 0x4408ca
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x40]
call fcn.004028a0
mov ecx, dword [ebp - 0x308]
and ecx, 0x10
je 0x4409ef
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x28]
call fcn.00402790
mov byte [ebp - 4], 6
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404a90
push 0x5f0df4
lea ecx, [ebp - 0x28]
call fcn.00404340
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402820
push eax
mov ecx, dword [ebp - 0x320]
call fcn.00440780
mov dword [ebp - 0x324], eax
cmp dword [ebp - 0x324], 0
je 0x4409de
mov dword [ebp - 0x318], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00402750
jmp 0x440aa4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00402750
jmp 0x440a9f
lea edx, [ebp - 0x40]
push edx
call fcn.005b2cb3
add esp, 4
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x338]
call fcn.0046f780
jmp 0x440a23
push 0
lea ecx, [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x310]
call fcn.0042def0
lea edx, [ebp - 0x340]
push edx
lea ecx, [ebp - 0x338]
call fcn.00419140
push eax
lea ecx, [ebp - 0x310]
call fcn.0046f230
movzx eax, al
test eax, eax
je 0x440a9f
lea ecx, [ebp - 0x310]
call fcn.0041baf0
mov ecx, eax
call fcn.00402820
push eax
lea ecx, [ebp - 0xb8]
call fcn.00402790
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0xb8]
push edx
call fcn.00429d60
add esp, 8
movzx eax, al
test eax, eax
je 0x440a8f
mov ecx, dword [ebp - 0x30c]
add ecx, 1
mov dword [ebp - 0x30c], ecx
lea ecx, [ebp - 0xb8]
call fcn.00402750
jmp 0x440a0f
jmp 0x4408ca
mov edx, dword [ebp - 0x314]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x30c], 0
jle 0x440ad2
mov eax, dword [ebp - 0x30c]
cmp eax, dword [ebp - 0x328]
jl 0x440ad2
mov dword [ebp - 0x318], 1
mov ecx, dword [ebp - 0x318]
mov dword [ebp - 0x32c], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x338]
call fcn.00435780
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00402750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00402750
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret 8