Function at 0x47f7fa
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ecx + 0xc]
push ebx
push esi
xor edx, edx
xor esi, esi
xor ebx, ebx
cmp dword [eax + 0x5cc], edx
push edi
mov dword [ebp - 8], ecx
jle 0x47f86d
mov eax, dword [eax + 0x5c8]
mov esi, dword [eax + ebx*4]
cmp esi, edx
je 0x47f85e
test byte [esi + 0xb], 4
jne 0x47f85e
test byte [esi + 0x24], 0x20
jne 0x47f85e
cmp dword [esi + 0xb8], edx
jle 0x47f85e
mov eax, dword [esi + 0xd4]
lea edi, [esi + 0xd4]
cmp dword [eax - 8], edx
je 0x47f85e
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47f85c
push dword [edi]
call fcn.0041ea47
pop ecx
xor edx, edx
mov eax, dword [ebp - 8]
inc ebx
mov eax, dword [eax + 0xc]
cmp ebx, dword [eax + 0x5cc]
jl 0x47f817
mov ebx, dword [ebp + 8]
xor edi, edi
cmp dword [ebx + 8], edx
jle 0x47f8bd
mov eax, dword [ebx + 4]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 4]
cmp ecx, edx
je 0x47f899
mov ecx, dword [ecx + 0x7c]
cmp ecx, edx
je 0x47f8b7
mov dword [ecx + 0x94], edx
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x7c]
jmp 0x47f8b1
mov ecx, dword [esi + 0x11c]
lea eax, [esi + 0x11c]
cmp ecx, edx
je 0x47f8b7
mov dword [ecx + 0x94], edx
mov eax, dword [eax]
mov dword [eax + 0x98], edx
inc edi
cmp edi, dword [ebx + 8]
jl 0x47f877
mov ecx, dword [0x657098]
mov eax, dword [ebx + 8]
push 1
cmp ecx, edx
mov dword [ebp - 0x10], ecx
pop edi
jg 0x47f8d3
mov dword [ebp - 0x10], edi
mov esi, dword [ebp - 0x10]
cmp esi, eax
jl 0x47f8dc
mov esi, eax
cmp esi, edx
jg 0x47f8e2
mov esi, edi
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 0xc4]
xor ebx, ebx
cmp eax, ebx
jg 0x47f8f5
mov eax, edi
cdq
idiv esi
cmp eax, ebx
mov dword [ebp - 0x18], eax
jg 0x47f902
mov dword [ebp - 0x18], edi
mov eax, dword [0x6570a4]
push 5
mov dword [ebp - 0x14], eax
mov eax, dword [0x6570ac]
mov dword [ebp - 0x1c], eax
call fcn.00428578
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x47f92c
cmp dword [eax], ebx
jne 0x47faee
mov ecx, dword [ebp + 8]
xor edi, edi
cmp dword [ecx + 8], ebx
jle 0x47f9d2
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x47f94c
cmp dword [eax], ebx
jne 0x47f9d2
mov eax, dword [ecx + 4]
mov esi, dword [eax + edi*4]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x47f990
mov eax, dword [eax + 0x80]
cmp eax, ebx
je 0x47f9c5
push ebx
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x47f9c5
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x80]
cmp ecx, ebx
je 0x47f985
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [esi + 4]
mov dword [eax + 0x80], ebx
jmp 0x47f9c5
mov eax, dword [esi]
mov eax, dword [eax + 0x120]
cmp eax, ebx
je 0x47f9c5
push ebx
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x47f9c5
mov eax, dword [esi]
mov ecx, dword [eax + 0x120]
cmp ecx, ebx
je 0x47f9bd
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [esi]
mov dword [eax + 0x120], ebx
mov ecx, dword [ebp + 8]
inc edi
cmp edi, dword [ecx + 8]
jl 0x47f93a
mov eax, dword [ebp - 8]
mov edi, dword [eax + 8]
cmp edi, ebx
je 0x47f9e4
cmp dword [edi], ebx
jne 0x47faee
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edx
mov esi, dword [eax + 8]
cmp esi, edx
jle 0x47faee
test edi, edi
je 0x47fa03
cmp dword [edi], 0
jne 0x47fa72
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edx*4]
mov eax, dword [ecx + 4]
test eax, eax
je 0x47fa3f
cmp dword [eax + 0x10], 0x64
jne 0x47fa1f
cmp dword [eax + 0x1c], 0x64
je 0x47fa6d
mov ecx, dword [eax + 0x7c]
inc ebx
test ecx, ecx
je 0x47fa6a
cmp dword [eax + 0x80], 0
je 0x47fa33
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
inc eax
cmp dword [ecx + 0x94], eax
jmp 0x47fa68
mov ecx, dword [ecx]
test byte [ecx + 0x24], 0x20
jne 0x47fa6d
mov eax, dword [ecx + 0x11c]
inc ebx
test eax, eax
je 0x47fa6a
cmp dword [ecx + 0x120], 0
je 0x47fa5e
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
inc ecx
cmp dword [eax + 0x94], ecx
jge 0x47fa6d
inc dword [ebp - 4]
inc edx
cmp edx, esi
jl 0x47f9fa
xor eax, eax
cmp ebx, eax
je 0x47faee
cmp edi, eax
je 0x47fa80
cmp dword [edi], eax
jne 0x47faee
mov esi, dword [ebp - 0xc]
cmp esi, eax
jne 0x47fa8c
cmp dword [ebp - 4], eax
je 0x47faee
mov edi, dword [ebp - 8]
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0xcc], 0xa
jne 0x47face
cmp esi, dword [ebp - 0x10]
jge 0x47face
cmp dword [ebp - 4], eax
jle 0x47face
inc esi
cmp esi, dword [ebp - 0x10]
jg 0x47face
mov eax, dword [edi + 8]
test eax, eax
je 0x47fab7
cmp dword [eax], 0
jne 0x47face
push dword [ebp - 0x1c]
mov ecx, edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0047faff
test eax, eax
je 0x47faa5
mov eax, dword [edi + 8]
test eax, eax
je 0x47fada
cmp dword [eax], 0
jne 0x47faee
push eax
push 0x1f4
call fcn.00420e40
pop ecx
xor ebx, ebx
pop ecx
jmp 0x47f91a
mov ecx, dword [ebp - 8]
call fcn.0047fca8
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4