Function at 0x47ef10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de630
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x522638]
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 eax, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
cmp dword [eax + 0x10], esi
je 0x47f125
push 0xffffffffffffffff
xor ecx, ecx
push esi
mov word [ebp - 0x2c], cx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
call fcn.00406640
mov dword [ebp - 4], esi
cmp dword [ebp - 0x1c], esi
je 0x47f0d4
lea edx, [ebp - 0x2c]
push edx
mov eax, edx
push eax
call fcn.0041e780
add esp, 8
test al, al
je 0x47f0d4
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x47ef9a
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47f0d9
push 1
push esi
push 0x4fdfa4
lea ecx, [ebp - 0x2c]
call fcn.0040a060
cmp eax, 0xffffffff
jne 0x47f0d9
push 1
push esi
push 0x4fdfa0
lea ecx, [ebp - 0x2c]
call fcn.0040a060
cmp eax, 0xffffffff
jne 0x47f0d9
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x47efe6
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.0041ecc0
add esp, 8
test al, al
je 0x47f0d9
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x47f006
lea eax, [ebp - 0x2c]
push eax
call fcn.0041eed0
add esp, 4
test al, al
je 0x47f0d9
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x47f022
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47f0d9
lea edx, [ebp - 0x2c]
push edx
mov eax, edx
push eax
call fcn.0041efa0
add esp, 8
test al, al
je 0x47f0d9
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0041fc60
add esp, 4
lea edi, [ebx + 0xe4]
push edi
mov dword [ebp - 0x34], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebx + 0xfc]
mov byte [ebp - 4], 1
call fcn.0041fce0
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebx + 0x100]
je 0x47f10c
dec dword [eax + 0x28]
jne 0x47f0f9
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebx + 0xfc]
call fcn.0047dd60
cmp dword [ebp - 0x18], 8
mov edx, dword [ebp - 0x2c]
jae 0x47f0ab
lea edx, [ebp - 0x2c]
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx + 0x14]
push edx
mov edx, dword [eax + 0x30]
add ecx, 0x14
push 1
push 0
call edx
test eax, eax
jne 0x47f0e4
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
test al, al
je 0x47f0e4
mov bl, 1
jmp 0x47f0e6
mov edi, 8
cmp dword [ebp - 0x18], edi
jb 0x47f125
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x47f11d
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x2c]
call fcn.00409f90
mov al, bl
jmp 0x47f127
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x2c]
call fcn.00409f90
mov al, 1
jmp 0x47f127
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x18], 8
jb 0x47f125
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406ca9
add esp, 4
xor al, al
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.00401306
mov esp, ebp
pop ebp
ret 4