Function at 0x402600
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ebe1
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x5d5ff0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x28c], edi
mov esi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x290], eax
test esi, esi
jne 0x40264f
xor al, al
jmp 0x402953
push esi
lea ecx, [ebp - 0x29c]
call fcn.00404100
push esi
lea ecx, [ebp - 0x298]
mov dword [ebp - 4], 0
call fcn.00404100
push 4
push str..
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 1
call fcn.00403400
push 0x250
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.0054a7e0
add esp, 0xc
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x298]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or esi, 0xffffffff
mov dword [ebp - 0x294], eax
test eax, eax
je 0x4028ee
cmp eax, esi
je 0x4028ee
mov esi, eax
nop dword [eax + eax]
mov ecx, 0x5b520c
lea eax, [ebp - 0x258]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402706
test dx, dx
je 0x402702
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402706
add eax, 4
add ecx, 4
test dx, dx
jne 0x4026e0
xor eax, eax
jmp 0x40270b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4028b8
mov eax, 0x5b5210
lea ecx, [ebp - 0x258]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x402746
test dx, dx
je 0x402742
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x402746
add ecx, 4
add eax, 4
test dx, dx
jne 0x402720
xor eax, eax
jmp 0x40274b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4028b8
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x288]
call fcn.00403860
push 1
push 0x5b52b0
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 2
call fcn.00403400
lea ecx, [ebp - 0x258]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402784
sub ecx, edx
lea eax, [ebp - 0x258]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x288]
call fcn.00403400
test byte [ebp - 0x284], 0x10
je 0x402811
mov eax, dword [ebp - 0x290]
mov esi, dword [eax]
lea eax, [ebp - 0x288]
push eax
mov edi, dword [esi + 4]
push edi
push esi
call fcn.00403580
mov edx, dword [ebp - 0x290]
mov ecx, 0x15555554
mov edx, dword [edx + 4]
sub ecx, edx
cmp ecx, 1
jb 0x402902
lea ecx, [edx + 1]
mov edx, dword [ebp - 0x290]
push ebx
push edx
mov dword [edx + 4], ecx
mov dword [esi + 4], eax
mov esi, dword [ebp - 0x288]
mov ecx, esi
mov dword [edi], eax
mov edi, dword [ebp - 0x28c]
mov edx, edi
call fcn.00402600
add esp, 8
jmp 0x402894
mov esi, dword [edi]
lea eax, [ebp - 0x288]
push eax
mov edi, dword [esi + 4]
push edi
push esi
call fcn.00403580
mov ecx, dword [ebp - 0x28c]
mov edx, dword [ecx + 4]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x402902
lea ecx, [edx + 1]
mov edx, dword [ebp - 0x28c]
mov dword [edx + 4], ecx
mov dword [esi + 4], eax
mov esi, dword [ebp - 0x288]
mov dword [edi], eax
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x40288e
mov eax, dword [0x5e15c8]
cdq
mov edi, eax
mov ecx, edx
add edi, dword [ebp - 0x14]
push edx
adc ecx, dword [ebp - 0x18]
sub edi, 1
push eax
sbb ecx, 0
push ecx
push edi
call fcn.005489c0
add dword [ebx], eax
mov edi, dword [ebp - 0x28c]
jmp 0x402896
mov edi, dword [ebp - 0x28c]
inc dword [ebx]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4028b2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x294]
push 0x250
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.0054a7e0
add esp, 0xc
lea eax, [ebp - 0x284]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4026d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40290c
cmp eax, 0x12
je 0x40290c
xor bl, bl
jmp 0x40290e
push str.list_T__too_long
call fcn.00549348
mov bl, 1
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x298]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40292f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x29c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x402951
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00547faa
mov esp, ebp
pop ebp
ret