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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca598
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x519100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x290], edx
mov edi, ecx
mov dword [ebp - 0x288], edi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x284], 0
xorps xmm0, xmm0
push 1
push 0x5033dc
mov dword [ebp - 0x28c], eax
movups xmmword [ebp - 0x2c4], xmm0
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
call fcn.00423920
mov dword [ebp - 4], 0
mov eax, 0x5c
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x284], 1
mov word [ebp - 0x14], ax
cmp ecx, 0x7ffffffe
je 0x477658
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x4772e1
mov eax, dword [edi]
push 1
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
push ecx
push dword [ebp - 0x294]
lea ecx, [ebp - 0x2dc]
call fcn.0040cb50
mov esi, 5
mov dword [ebp - 0x284], esi
mov dword [ebp - 4], 2
lea eax, [ebp - 0x2c4]
cmp dword [ebp - 0x2b0], 7
lea ecx, [ebp - 0x2dc]
push dword [ebp - 0x2b4]
cmova eax, dword [ebp - 0x2c4]
push eax
call fcn.0040ba30
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
or esi, 8
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 0x284], esi
lea ecx, [ebp - 0x2dc]
call fcn.00423780
mov eax, esi
test al, 2
je 0x4773a0
and eax, 0xfffffffd
lea ecx, [ebp - 0x30c]
mov dword [ebp - 0x284], eax
call fcn.00423780
mov eax, dword [ebp - 0x284]
mov byte [ebp - 4], 6
test al, 1
je 0x4773bc
and eax, 0xfffffffe
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x284], eax
call fcn.00423780
call fcn.0047b270
cmp dword [ebp - 0x1c], 7
lea edx, [ebp - 0x280]
push 0
push 0
push 0
movzx ecx, al
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 7
cmp esi, 0xffffffff
jne 0x477410
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x47765d
jmp 0x477635
mov eax, dword [ebp - 0x280]
shr eax, 4
and al, 1
mov dword [ebp - 0x294], eax
je 0x4774a3
mov ecx, 0x500dac
lea eax, [ebp - 0x254]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x477458
test dx, dx
je 0x477454
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x477458
add eax, 4
add ecx, 4
test dx, dx
jne 0x477432
xor eax, eax
jmp 0x47745d
sbb eax, eax
or eax, 1
test eax, eax
je 0x47760d
mov eax, 0x508e20
lea ecx, [ebp - 0x254]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x477496
test dx, dx
je 0x477492
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x477496
add ecx, 4
add eax, 4
test dx, dx
jne 0x477470
xor eax, eax
jmp 0x47749b
sbb eax, eax
or eax, 1
test eax, eax
je 0x47760d
mov ecx, dword [ebp - 0x290]
mov eax, ecx
cmp dword [ecx + 0x14], 7
jbe 0x4774b3
mov eax, dword [ecx]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x4774fe
mov eax, dword [ebp - 0x28c]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4776ad
mov eax, dword [eax]
mov edi, dword [eax + 8]
lea eax, [ebp - 0x280]
push eax
push dword [ebp - 0x288]
mov ecx, edi
call dword [0x4cc2f8]
mov ecx, dword [ebp - 0x14]
call edi
mov edi, dword [ebp - 0x288]
cmp byte [ebp - 0x294], 0
je 0x47760d
mov ecx, dword [edi + 0x10]
mov eax, 0x5c
mov word [ebp - 0x14], ax
cmp ecx, 0x7ffffffe
je 0x477658
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x47752d
mov eax, dword [edi]
push 1
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2f4]
call fcn.0040cb50
or dword [ebp - 0x284], 0x10
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 8
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477560
sub ecx, edx
lea eax, [ebp - 0x254]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2f4]
call fcn.0040ba30
mov dword [ebp - 0x29c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2ac], xmm0
mov dword [ebp - 0x298], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2ac], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x29c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
or dword [ebp - 0x284], 0x20
mov edx, dword [ebp - 0x290]
push ecx
push ecx
push 1
push dword [ebp - 0x28c]
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 9
call fcn.00477230
add esp, 0x10
lea ecx, [ebp - 0x2ac]
call fcn.00423780
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 7
call fcn.00423780
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x477410
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x477685
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x30]
call fcn.00423780
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.0048471b
mov esp, ebp
pop ebp
ret
call fcn.004237f0
lea ecx, [ebp - 0x30]
push ecx
push 0x23
push str.Unable_to_enumerate_directory__
push eax
lea ecx, [ebp - 0x2a4]
call fcn.00433db0
push 0x516930
lea eax, [ebp - 0x2a4]
push eax
call fcn.00486900
lea ecx, [ebp - 0x30]
push ecx
push 0x23
push str.Unable_to_enumerate_directory__
push eax
lea ecx, [ebp - 0x2a4]
call fcn.00433db0
push 0x516930
lea eax, [ebp - 0x2a4]
push eax
call fcn.00486900
call fcn.0048211a
int3