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

Disassembly:
push ebp
sub esp, 0x250
lea ebp, [esp - 4]
mov eax, dword [0x43fda4]
xor eax, ebp
mov dword [ebp + 0x250], eax
push 0x18
mov eax, 0x42e6d7
call fcn.00419920
mov ebx, dword [ebp + 0x260]
mov esi, ecx
mov dword [ebp - 0x20], ebx
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
test byte [esi + 0x68], 1
je 0x405fa8
push ecx
lea eax, [ebp + 0x25c]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00401f54
mov ecx, esi
call ebx
mov esi, eax
mov ecx, dword [ebp + 0x25c]
add ecx, 0xfffffff0
call fcn.00401128
mov eax, esi
jmp 0x40629c
mov eax, dword [ebp + 0x25c]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [ebp + 0x25c]
call fcn.00401f19
cmp ax, 0x3a
jne 0x405fe3
test byte [esi + 0x68], 6
je 0x405f7b
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.WARNING:_Recursion_is_not_possible_for_local_file_system_roots._You_may_want_to_append_a_backslash__c:_.
call fcn.00404c55
mov ecx, esi
call fcn.00402dc4
jmp 0x405f7b
mov edi, 0x4318ac
push edi
lea ecx, [ebp + 0x25c]
call fcn.00402aef
mov eax, dword [ebp + 0x25c]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [ebp + 0x25c]
call fcn.00401f19
cmp ax, 0x3a
jne 0x406015
xor eax, eax
inc eax
jmp 0x406086
push 7
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0x25c]
call fcn.0040240b
mov eax, dword [eax]
push str._UNC
push eax
call fcn.00418daf
pop ecx
mov ebx, eax
pop ecx
mov ecx, dword [ebp - 0x24]
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00401128
test bl, bl
je 0x4060db
push 2
push 0x5c
lea ecx, [ebp + 0x25c]
xor ebx, ebx
call fcn.00401eae
cmp eax, 0xffffffff
je 0x4060db
inc ebx
inc eax
push eax
push 0x5c
lea ecx, [ebp + 0x25c]
call fcn.00401eae
cmp eax, 0xffffffff
jne 0x406066
cmp ebx, 3
jne 0x4060db
mov ebx, dword [ebp - 0x20]
push 2
pop eax
test byte [esi + 0x68], 2
je 0x4060cb
cmp eax, 1
push ecx
mov dword [ebp - 0x1c], esp
jne 0x4060aa
mov eax, esp
push edi
lea ecx, [ebp + 0x25c]
push ecx
push eax
call fcn.00402c32
add esp, 0xc
jmp 0x4060b8
lea eax, [ebp + 0x25c]
mov ecx, esp
push eax
call fcn.00401f54
mov ecx, esi
call ebx
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4060cb
mov esi, dword [ebp - 0x10]
jmp 0x405f93
push 0x4326ec
lea ecx, [ebp + 0x25c]
call fcn.00402d67
mov ebx, dword [ebp + 0x25c]
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x406288
push 0x5c
lea ecx, [ebp + 0x25c]
call fcn.00401c4b
inc eax
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x25c]
call fcn.0040240b
mov byte [ebp - 4], 1
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00404c55
push 0x4326e8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00401842
test eax, eax
je 0x40620b
push 0x4326e0
lea ecx, [ebp - 0x18]
call fcn.00401842
test eax, eax
je 0x40620b
test byte [ebp], 0x10
je 0x4061e2
test byte [esi + 0x68], 2
je 0x40618a
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 0x2c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00402c32
add esp, 0xc
mov ecx, esi
call dword [ebp - 0x20]
mov edi, eax
test edi, edi
jne 0x406250
push dword [ebp - 0x20]
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00402c32
add esp, 8
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x4326ec
push eax
push ecx
mov byte [ebp - 4], 3
call fcn.00402c32
add esp, 0xc
mov ecx, esi
call fcn.00405f3e
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
call fcn.00401128
cmp dword [ebp - 0x10], 0
jne 0x40626d
test byte [ebp], 0x10
jne 0x40620b
test byte [esi + 0x68], 4
je 0x40620b
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 0x2c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00402c32
add esp, 0xc
mov ecx, esi
call dword [ebp - 0x20]
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x40626d
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401128
lea eax, [ebp]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40611a
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401128
lea ecx, [ebx - 0x10]
call fcn.00401128
mov eax, dword [ebp - 0x10]
jmp 0x40629c
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401128
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401128
mov esi, edi
jmp 0x405f93
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401128
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401128
jmp 0x4060c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebx - 0x10]
mov dword [esi + 0x44], eax
call fcn.00401128
push 0x10
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.00419911
add ebp, 0x254
leave
ret 8