Function at 0x402bb0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458a24
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2e0]
push 0x250
push 0
push eax
mov dword [ebp - 0x2e4], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x318], 7
xor eax, eax
mov dword [ebp - 0x31c], 0
lea ecx, [ebp - 0x32c]
mov word [ebp - 0x32c], ax
push 1
push 0x465054
call fcn.0040bb20
lea eax, [ebp - 0x32c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x344]
mov ecx, edi
push eax
call fcn.004018f0
cmp dword [eax + 0x14], 8
jb 0x402c51
mov eax, dword [eax]
lea ecx, [ebp - 0x2e0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x330]
mov dword [ebp - 0x2fc], eax
cmp ecx, 8
jb 0x402c7d
inc ecx
push ecx
push dword [ebp - 0x344]
call fcn.0040bd10
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x344], ax
mov eax, dword [ebp - 0x318]
mov dword [ebp - 0x330], 7
mov dword [ebp - 0x334], 0
cmp eax, 8
jb 0x402cb9
inc eax
push eax
push dword [ebp - 0x32c]
call fcn.0040bd10
mov edx, dword [ebp - 0x2e4]
xor eax, eax
xor edi, edi
mov dword [ebp - 0x318], 7
mov dword [ebp - 0x31c], 0
mov word [ebp - 0x32c], ax
cmp dword [edx + 0x14], 8
jb 0x402ce6
mov edx, dword [edx]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp word [edx], ax
jne 0x402cff
xor ecx, ecx
jmp 0x402d23
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x2e4], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402d10
sub ecx, dword [ebp - 0x2e4]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0040bb20
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402d53
test al, 0x10
jne 0x402ee5
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x402ee5
mov byte [ebp - 0x2f5], al
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x314]
push eax
call fcn.00401870
cmp dword [eax + 0x14], 8
jb 0x402d8b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2b4]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov eax, dword [ebp - 0x300]
add esp, 0xc
cmp eax, 8
jb 0x402db9
inc eax
push eax
push dword [ebp - 0x314]
call fcn.0040bd10
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2e0], eax
call fcn.00402450
mov dword [ebp - 0x2c0], eax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c4], edx
push eax
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x28]
movlpd qword [ebp - 0x28], xmm0
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.00401aa0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2dc], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2d8], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2d0], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2cc], eax
lea eax, [ebp - 0x314]
mov dword [ebp - 0x2c8], ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.00401790
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
cmp ecx, eax
je 0x402e5f
push 0xffffffffffffffff
push 0
push eax
call fcn.0040b7b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x300]
cmp eax, 8
jb 0x402e7b
inc eax
push eax
push dword [ebp - 0x314]
call fcn.0040bd10
mov al, byte [ebp - 0x2f5]
cmp dword [ebp - 0x2fc], 0xffffffff
jne 0x402e92
test al, al
je 0x40312b
push 0x465058
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x403264
push 0x46505c
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x403264
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [ebp - 0x2b4], ax
jne 0x402ee9
jmp 0x402f01
xor al, al
jmp 0x402e81
lea eax, [ebp - 0x2b4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402ef2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040bb20
mov byte [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x300], 7
mov dword [ebp - 0x304], 0
mov word [ebp - 0x314], ax
cmp word [ebp - 0x2b4], ax
jne 0x402f3f
xor ecx, ecx
jmp 0x402f5f
lea ecx, [ebp - 0x2b4]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402f50
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x314]
call fcn.0040bb20
lea eax, [ebp - 0x314]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.004018f0
mov eax, dword [ebp - 0x300]
cmp eax, 8
jb 0x402fa1
inc eax
push eax
push dword [ebp - 0x314]
call fcn.0040bd10
push 0x38
lea eax, [ebp - 0x90]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [ebp - 0x90], 0
mov byte [ebp - 0x8c], 0
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x5c], 0
add esp, 8
mov byte [ebp - 4], 7
lea eax, [esi + 0x34]
lea edx, [ebp - 0x90]
lea ecx, [ebp - 0x58]
push eax
call fcn.00404570
add esp, 8
mov byte [ebp - 0x2f5], al
cmp dword [esi + 0x5c], 0
je 0x40304d
test al, al
je 0x403045
push ecx
lea eax, [esi + 0x48]
push eax
lea edx, [ebp - 0x90]
lea ecx, [ebp - 0x58]
call fcn.00404570
add esp, 8
test al, al
je 0x403045
mov al, 1
jmp 0x403047
xor al, al
mov byte [ebp - 0x2f5], al
mov byte [ebp - 0x2f0], al
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x2f4], ecx
mov dword [ebp - 0x2ec], eax
mov eax, dword [esi]
test eax, eax
je 0x40307f
push dword [esi + 0x30]
lea ecx, [ebp - 0x2f4]
push ecx
call eax
add esp, 8
jmp 0x4030b2
cmp dword [esi + 0x2c], 0
je 0x40315c
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x2e4], eax
test ecx, ecx
je 0x40328e
mov eax, dword [ecx]
lea edx, [ebp - 0x2e4]
push edx
lea edx, [ebp - 0x2f4]
push edx
mov eax, dword [eax + 8]
call eax
cmp eax, 1
jne 0x40315e
mov esi, dword [ebp - 0x88]
test esi, esi
je 0x4030e1
mov ecx, dword [ebp - 0x80]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00404460
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4030f3
inc eax
push eax
push dword [ebp - 0x28]
call fcn.0040bd10
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x403119
inc eax
push eax
push dword [ebp - 0x58]
call fcn.0040bd10
mov eax, dword [ebp - 0x2fc]
cmp eax, 0xffffffff
je 0x40312b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x40313d
inc ecx
push ecx
push dword [ebp - 0x40]
call fcn.0040bd10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456d98
mov esp, ebp
pop ebp
ret 4
xor eax, eax
test byte [ebp - 0x2e0], 0x10
je 0x4031ce
cmp eax, 2
je 0x4031ce
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00402bb0
add edi, eax
mov dword [ebp - 0x2ec], 0
mov eax, dword [esi]
mov byte [ebp - 0x2f0], 0
test eax, eax
je 0x4031a1
push dword [esi + 0x30]
lea ecx, [ebp - 0x2f4]
push ecx
call eax
add esp, 8
jmp 0x4031ce
cmp dword [esi + 0x2c], 0
je 0x4031ce
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x2e8], eax
test ecx, ecx
je 0x40328e
mov eax, dword [ecx]
lea edx, [ebp - 0x2e8]
push edx
lea edx, [ebp - 0x2f4]
push edx
call dword [eax + 8]
cmp byte [ebp - 0x2f5], 0
lea eax, [edi + 1]
cmove eax, edi
mov edi, dword [ebp - 0x88]
mov dword [ebp - 0x2e8], eax
test edi, edi
je 0x403222
mov ecx, dword [ebp - 0x80]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.00404460
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x403234
inc eax
push eax
push dword [ebp - 0x28]
call fcn.0040bd10
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x40325e
inc eax
push eax
push dword [ebp - 0x58]
call fcn.0040bd10
mov edi, dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x2fc]
cmp eax, 0xffffffff
je 0x40312b
lea ecx, [ebp - 0x2e0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402e92
jmp 0x403119
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3