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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xab8
mov eax, dword [0x420040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0xa8c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
push ebx
push str.___thread__d_created_n
mov dword [ebp - 0xa88], ebx
call fcn.00405140
lea eax, [esi + 0x20]
mov dword [esi + 0x24], 0
mov dword [eax], 0
push eax
push dword [esi]
mov dword [ebp - 0xab8], eax
call fcn.00405fc0
push str.___RSA_Init___complete_n
call fcn.00405140
lea ecx, [esi + 8]
add esp, 0x14
xor edi, edi
mov dword [ebp - 0xaa0], ecx
nop
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0xa8c]
mov esi, edi
push dword [ebp - 0xaa0]
mov dword [ebp - 0xa98], esi
mov eax, dword [eax + 4]
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0xab0], edi
mov dword [ebp - 0xab4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
push ebx
push str.___TID:__d_TotalPathNum:__d_n
call fcn.00405140
add esp, 0xc
cmp esi, edi
jge 0x402ac0
lea eax, [ebp - 0x834]
sub eax, 2
imul esi, esi, 0x20a
mov dword [ebp - 0xa90], eax
mov dword [ebp - 0xa9c], esi
nop word [eax + eax]
mov edi, dword [ebp - 0xa8c]
mov eax, dword [edi + 4]
add eax, 8
add eax, esi
push eax
push ebx
push str.___TID:__d_Starting_traverse_path:__ws_n
call fcn.00405140
add esi, dword [edi + 4]
lea eax, [ebp - 0x834]
push 0x830
xor edi, edi
push edi
push eax
call fcn.00407b00
movzx ecx, word [esi + 8]
add esp, 0x18
test cx, cx
je 0x4027f6
xor eax, eax
nop
inc edi
mov word [ebp + eax - 0x834], cx
lea eax, [edi + edi]
movzx ecx, word [eax + esi + 8]
test cx, cx
jne 0x4027e0
mov eax, dword [ebp - 0xa90]
lea esi, [edi + edi]
cmp word [eax + esi], 0x5c
je 0x40282d
inc edi
mov eax, 0x5c
mov word [ebp + esi - 0x834], ax
lea esi, [edi + edi]
cmp esi, 0x830
jae 0x402b06
xor eax, eax
mov word [ebp + esi - 0x834], ax
mov dword [ebp - 0xa94], edi
call fcn.00402cf0
inc edi
mov ebx, eax
mov eax, 0x2a
mov dword [ebp - 0xaa8], ebx
mov word [ebp + esi - 0x834], ax
mov dword [ebp - 0xaa4], edi
lea eax, [edi + edi]
cmp eax, 0x830
jae 0x402b06
lea ecx, [ebp - 0x834]
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0xaac], eax
mov word [eax], cx
lea eax, [ebp - 0xa84]
push eax
lea eax, [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4028bb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x402956
push eax
lea eax, [ebp - 0x834]
push eax
push str.____FindFirstFileW__ws__call_error__code:__d_n
call fcn.00405140
add esp, 0xc
jmp 0x402956
mov ebx, dword [ebp - 0xa94]
mov edi, dword [ebp - 0xa88]
test byte [ebp - 0xa84], 0x10
je 0x402932
cmp word [ebp - 0xa58], 0x2e
jne 0x4028f6
mov ax, word [ebp - 0xa56]
test ax, ax
je 0x402932
cmp ax, 0x2e
jne 0x4028f6
cmp word [ebp - 0xa54], 0
je 0x402932
lea ecx, [ebp - 0xa58]
mov edx, ecx
lea eax, [ebx + ebx]
sub eax, edx
lea edx, [ebp - 0x834]
add edx, eax
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x402910
push edi
lea eax, [ebp - 0x834]
push 1
push eax
call fcn.00401d40
add esp, 0xc
lea eax, [ebp - 0xa84]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4028c7
mov edi, dword [ebp - 0xaa4]
mov ebx, dword [ebp - 0xaa8]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0xa90]
mov ecx, 0x2a
mov word [eax + edi*2], cx
mov ecx, 0x2e
mov eax, dword [ebp - 0xaac]
inc edi
mov word [eax], cx
xor ecx, ecx
mov eax, dword [ebx + 0x2d0]
mov al, byte [eax]
nop
cbw
lea ecx, [ecx + 1]
lea edi, [edi + 1]
mov word [ebp + edi*2 - 0x836], ax
mov eax, dword [ebx + 0x2d0]
mov al, byte [ecx + eax]
test al, al
jne 0x402980
lea eax, [edi + edi]
cmp eax, 0x830
jae 0x402b06
xor ecx, ecx
mov word [ebp + eax - 0x834], cx
lea eax, [ebp - 0xa84]
push eax
lea eax, [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4029f5
call esi
cmp eax, 2
je 0x402a8d
push eax
lea eax, [ebp - 0x834]
push eax
push str.____FindFirstFileW__ws__call_error__code:__d_n
call fcn.00405140
add esp, 0xc
jmp 0x402a8d
mov eax, dword [ebp - 0xa94]
lea ecx, [ebp - 0xa58]
add eax, eax
lea esi, [ebp - 0x834]
sub eax, ecx
add esi, eax
nop dword [eax]
lea eax, [ebp - 0xa58]
push eax
push str.Find_file:__ws_n
call fcn.00405140
add esp, 8
lea eax, [ebp - 0xa58]
nop word [eax + eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [esi + eax - 2], cx
test cx, cx
jne 0x402a30
lea eax, [ebp - 0x834]
push eax
push str.File_fullname:__ws_n
call fcn.00405140
add esp, 8
cmp dword [ebp - 0xa68], 0
jne 0x402a66
cmp dword [ebp - 0xa64], 0
je 0x402a7b
push dword [ebp - 0xa88]
lea eax, [ebp - 0x834]
push eax
call fcn.00402060
add esp, 8
lea eax, [ebp - 0xa84]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402a10
mov eax, dword [ebp - 0xa98]
mov esi, dword [ebp - 0xa9c]
inc eax
mov edi, dword [ebp - 0xab0]
add esi, 0x20a
mov ebx, dword [ebp - 0xa88]
mov dword [ebp - 0xa98], eax
mov dword [ebp - 0xa9c], esi
cmp eax, edi
jl 0x4027a0
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0xab4], 0
jne 0x402adf
mov ecx, dword [ebp - 0xaa0]
jmp 0x402730
mov eax, dword [ebp - 0xa8c]
push dword [ebp - 0xab8]
push dword [eax]
call fcn.00405f00
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00406952
mov esp, ebp
pop ebp
ret
call fcn.00406876
int3