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

Disassembly:
push 0xffffffffffffffff
push 0x436046
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x448fb0]
xor eax, esp
mov dword [esp + 0x26c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x448fb0]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x298]
xor esi, esi
mov ebp, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28c], esi
mov dword [esp + 0x18], esi
call fcn.0041583d
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x409503
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x294]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
mov byte [esp + 0x294], 1
call fcn.00402730
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00402dd0
mov ecx, dword [ebp + 0x68]
add esp, 4
test cl, 1
jne 0x409564
test cl, 2
je 0x409553
test eax, eax
jne 0x409564
test cl, 4
je 0x4095e6
test eax, eax
jne 0x4095e6
push eax
mov eax, dword [esp + 0x298]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00402730
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x4095e6
lea eax, [edi - 0x10]
or esi, 0xffffffff
mov byte [esp + 0x28c], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4095b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x294]
add eax, 0xfffffff0
mov dword [esp + 0x28c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4095dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
jmp 0x409a7c
push 1
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x29c]
call fcn.00402ec0
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
mov ebx, 1
mov byte [esp + 0x28c], 2
mov dword [esp + 0x24], ebx
cmp eax, ebx
jne 0x409675
test eax, eax
jge 0x409621
push 0x80070057
call fcn.00401090
movzx eax, word [ecx]
cmp ax, 0x3a
jne 0x409675
mov edx, dword [esp + 0x294]
mov eax, dword [edx - 0xc]
push 1
add eax, 0xfffffffd
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2a0]
call fcn.00402e10
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
mov ebx, 3
mov dword [esp + 0x24], ebx
cmp ecx, 1
jne 0x409675
test ecx, ecx
jge 0x40966c
push 0x80070057
call fcn.00401090
movzx eax, word [eax]
cmp ax, 0x5c
je 0x409687
mov ecx, dword [esp + 0x294]
cmp dword [ecx - 0xc], 2
mov byte [esp + 0x17], 0
jne 0x40968c
mov byte [esp + 0x17], 1
or esi, 0xffffffff
test bl, 2
je 0x4096ba
mov eax, dword [esp + 0x28]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x24], ebx
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4096ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28c], 1
test bl, 1
je 0x4096e9
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4096e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x40970e
test byte [ebp + 0x68], 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
je 0x40976f
push str.WARNING:_You_just_accessed_permissions_on_a_file_system_root__not_on_the_root_of_the_drive._These_very_special_permissions_do_not_persist_a_reboot_and_cannot_be_displayed_in_Explorer._You_probably_want_to_add_a_backslash_to_the_path__e.g.:_C:.
call fcn.004077e0
mov ecx, ebp
call fcn.00403f90
test byte [ebp + 0x68], 1
je 0x4097d7
lea eax, [edi - 0x10]
mov byte [esp + 0x28c], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40973b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x294]
add eax, 0xfffffff0
mov dword [esp + 0x28c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4095dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
jmp 0x409a7c
push str.WARNING:_You_just_set_permissions_on_a_file_system_root__not_on_the_root_of_the_drive._These_very_special_permissions_do_not_persist_a_reboot_and_cannot_be_displayed_in_Explorer._You_probably_want_to_add_a_backslash_to_the_path__e.g.:_C:._Please_note_that_file_system_roots_cannot_be_recursed.
call fcn.004077e0
mov ecx, ebp
call fcn.00403f90
lea eax, [edi - 0x10]
mov byte [esp + 0x28c], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4097a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x294]
add eax, 0xfffffff0
mov dword [esp + 0x28c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4095dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
jmp 0x409a7c
push 0x5c
lea ecx, [esp + 0x298]
call fcn.00403a50
push 0x43a9f4
lea ecx, [esp + 0x298]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00403ce0
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x290], 3
call fcn.00403eb0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28c], 1
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409838
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x24], eax
cmp eax, esi
jne 0x4098a1
cmp dword [ebp + 0x48], 0
je 0x409879
lea ecx, [esp + 0x20]
mov dword [ebp + 0x44], 0
call fcn.00402640
lea ecx, [esp + 0x294]
call fcn.00402640
xor eax, eax
jmp 0x409a7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x20]
mov dword [ebp + 0x44], eax
call fcn.00402640
lea ecx, [esp + 0x294]
call fcn.00402640
mov eax, 0x10
jmp 0x409a7c
mov bl, 5
mov ecx, 0x43a9f0
lea eax, [esp + 0x5c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4098d6
test dx, dx
je 0x4098d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4098d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4098b0
xor eax, eax
jmp 0x4098da
sbb eax, eax
sbb eax, esi
test eax, eax
je 0x409a3e
mov ecx, 0x43a9e8
lea eax, [esp + 0x5c]
jmp 0x4098f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409916
test dx, dx
je 0x409912
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409916
add eax, 4
add ecx, 4
test dx, dx
jne 0x4098f0
xor eax, eax
jmp 0x40991a
sbb eax, eax
sbb eax, esi
test eax, eax
je 0x409a3e
mov eax, dword [esp + 0x30]
test al, 0x10
je 0x4099c9
test eax, 0x400
je 0x40994f
mov eax, dword [esp + 0x54]
cmp eax, 0xa0000003
je 0x409a3e
cmp eax, 0xa000000c
je 0x409a3e
mov eax, dword [esp + 0x2c]
push eax
push 0x4397d4
lea ecx, [esp + 0x29c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00403ce0
add esp, 8
mov ecx, esp
mov dword [esp + 0x20], esp
lea edx, [esp + 0x64]
push edx
push eax
push ecx
mov byte [esp + 0x2a0], 4
call fcn.00403ce0
add esp, 0xc
mov ecx, ebp
call fcn.00409490
mov edi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x18], edi
mov byte [esp + 0x28c], 1
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4099bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x409a65
jmp 0x409a42
test byte [ebp + 0x68], 4
je 0x409a3e
push 0
push 0x4397d4
lea ecx, [esp + 0x29c]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00403ce0
add esp, 8
mov ecx, esp
mov dword [esp + 0x20], esp
lea edx, [esp + 0x64]
push edx
push eax
push ecx
mov byte [esp + 0x2a0], bl
call fcn.00403ce0
add esp, 0xc
mov ecx, ebp
call dword [esp + 0x34]
mov edi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x18], edi
mov byte [esp + 0x28c], 1
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x409aa6
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4098a3
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x20]
call fcn.00402640
lea ecx, [esp + 0x294]
call fcn.00402640
mov eax, edi
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.00422480
add esp, 0x27c
ret 8
lea ecx, [esp + 0x20]
call fcn.00402640
lea ecx, [esp + 0x294]
call fcn.00402640
mov eax, dword [esp + 0x18]
jmp 0x409a7c