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

Disassembly:
push 0xffffffffffffffff
push 0x497707
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x4b62b0]
xor eax, esp
mov dword [esp + 0x4dc], eax
push ebx
push esi
push edi
mov eax, dword [0x4b62b0]
xor eax, esp
push eax
lea eax, [esp + 0x4f4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x504]
test esi, esi
mov ebx, dword [esp + 0x508]
mov dword [esp + 0x14], ebx
je 0x4678b2
test ebx, ebx
je 0x4678b2
push 0x208
lea eax, [esp + 0x2e2]
push 0
push eax
mov word [esp + 0x2e8], 0
call fcn.00472c50
add esp, 0xc
push 0x104
lea ecx, [esp + 0x2e0]
push esi
push ecx
call fcn.00477aeb
add esp, 0xc
test eax, eax
je 0x4678b2
lea edx, [esp + 0x2dc]
push edx
lea ecx, [esp + 0x20]
call fcn.00415f20
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4fc], 0
call fcn.0041ba20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4678a9
lea eax, [esp + 0x2dc]
push eax
lea ecx, [esp + 0x3c]
call fcn.00415f20
lea esi, [esp + 0x38]
mov byte [esp + 0x4fc], 1
call fcn.00466730
push 0x4a8edc
mov edi, esi
call fcn.004669d0
lea ecx, [esp + 0x8c]
push ecx
mov ecx, esi
call fcn.0041ba20
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
mov byte [esp + 0x4fc], 2
jne 0x4678db
mov ecx, edi
call fcn.00432550
lea ecx, [esp + 0x1c]
call fcn.00432550
xor eax, eax
mov ecx, dword [esp + 0x4f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4dc]
xor ecx, esp
call fcn.00472710
add esp, 0x4f0
ret
mov ecx, 0x4a8ee0
lea eax, [esp + 0xb8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46790d
test dx, dx
je 0x467909
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46790d
add eax, 4
add ecx, 4
test dx, dx
jne 0x4678e7
xor eax, eax
jmp 0x467912
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x467a19
mov ecx, 0x4a8ee4
lea eax, [esp + 0xb8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46794c
test dx, dx
je 0x467948
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46794c
add eax, 4
add ecx, 4
test dx, dx
jne 0x467926
xor eax, eax
jmp 0x467951
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x467a19
test byte [esp + 0x8c], 0x10
je 0x467a0f
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x58]
call fcn.00415ef0
lea esi, [esp + 0x54]
mov byte [esp + 0x4fc], 3
call fcn.00466730
lea eax, [esp + 0xb8]
push eax
mov edi, esi
call fcn.004669d0
mov ecx, esi
push ecx
call fcn.0045c9e0
mov ebx, dword [esp + 0x50c]
test ebx, ebx
je 0x4679f6
lea edx, [esp + 0x2dc]
push edx
lea ecx, [esp + 0x74]
call fcn.00415f20
lea esi, [esp + 0x70]
mov byte [esp + 0x4fc], 4
call fcn.00466730
lea eax, [esp + 0xb8]
push eax
mov edi, esi
call fcn.004669d0
mov ecx, dword [esp + 0x14]
push ebx
push ecx
mov ecx, esi
call fcn.0041ba20
push eax
call fcn.00467780
add esp, 0xc
mov ecx, esi
call fcn.00432550
lea ecx, [esp + 0x54]
mov byte [esp + 0x4fc], 2
call fcn.00432550
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x8c]
push edx
jmp 0x467a21
lea eax, [esp + 0x8c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4678db
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x38]
call fcn.00432550
lea ecx, [esp + 0x1c]
call fcn.00432550
mov eax, 1
jmp 0x4678b4