Function at 0x4796f1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, esi
call fcn.00477216
test eax, eax
je 0x4799bf
mov eax, dword [esi + 8]
push ebx
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
jle 0x47978e
jmp 0x479725
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov eax, dword [eax + edi*4]
cmp eax, ebx
je 0x479788
xor edx, edx
cmp dword [eax + 0x90], ebx
jle 0x47975b
mov ecx, dword [eax + 0x8c]
mov ecx, dword [ecx + edx*4]
cmp ecx, ebx
je 0x479752
inc dword [ebp - 8]
mov dword [ecx + 0x7c], ebx
mov dword [ecx + 0x80], ebx
inc edx
cmp edx, dword [eax + 0x90]
jl 0x479739
cmp dword [eax + 0x90], 1
jle 0x479788
lea esi, [eax + 0xa4]
mov eax, dword [eax + 0xa4]
cmp dword [eax - 8], ebx
je 0x479788
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x479788
push dword [esi]
call fcn.0041f228
pop ecx
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x479722
mov eax, dword [0x6375bc]
push 1
cmp eax, ebx
mov dword [ebp - 0x10], eax
pop edi
jg 0x4797a0
mov dword [ebp - 0x10], edi
mov esi, dword [ebp - 0x10]
cmp esi, dword [ebp - 8]
jl 0x4797ab
mov esi, dword [ebp - 8]
cmp esi, ebx
jg 0x4797b1
mov esi, edi
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0x74]
cmp eax, ebx
jg 0x4797bf
mov eax, edi
cdq
idiv esi
cmp eax, ebx
mov dword [ebp - 0x28], eax
jg 0x4797cc
mov dword [ebp - 0x28], edi
mov eax, dword [0x6375c8]
push 5
mov dword [ebp - 0x24], eax
mov eax, dword [0x6375d0]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ebx
call fcn.00427eac
mov eax, dword [ebp - 4]
pop ecx
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x4797f9
cmp dword [eax], ebx
jne 0x4799b0
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
jle 0x47989a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x479817
cmp dword [eax], ebx
jne 0x47989a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edi, dword [eax + ecx*4]
cmp edi, ebx
je 0x47988b
cmp dword [edi + 0x90], 0
jle 0x479889
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x47983f
cmp dword [eax], 0
jne 0x479889
mov eax, dword [edi + 0x8c]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x479880
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x479880
push 0
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x479880
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x479876
mov eax, dword [ecx]
push 1
call dword [eax + 4]
and dword [esi + 0xbc], 0
inc dword [ebp - 0x18]
inc ebx
cmp ebx, dword [edi + 0x90]
jl 0x479830
xor ebx, ebx
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x479805
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
cmp edx, ebx
je 0x4798ac
cmp dword [edx], ebx
jne 0x4799b0
xor eax, eax
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], eax
jle 0x4799b0
cmp edx, ebx
je 0x4798ce
cmp dword [edx], ebx
jne 0x479936
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + eax*4]
cmp ecx, ebx
je 0x47992a
mov edi, dword [ecx + 0x90]
xor esi, esi
cmp edi, ebx
jle 0x47992a
cmp edx, ebx
je 0x4798ef
cmp dword [edx], ebx
jne 0x47992a
mov eax, dword [ecx + 0x8c]
mov eax, dword [eax + esi*4]
cmp eax, ebx
je 0x479925
cmp dword [eax + 0x5c], 0x3e8
je 0x479925
inc dword [ebp - 0x1c]
xor ebx, ebx
cmp dword [eax + 0xbc], ebx
je 0x479917
inc dword [ebp - 0x20]
jmp 0x479925
mov ebx, dword [ebp - 0x24]
inc ebx
cmp dword [eax + 0x7c], ebx
jge 0x479923
inc dword [ebp - 0x14]
xor ebx, ebx
inc esi
cmp esi, edi
jl 0x4798e7
mov eax, dword [ebp - 8]
inc eax
cmp eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jl 0x4798c6
cmp dword [ebp - 0x1c], ebx
je 0x4799b0
cmp edx, ebx
je 0x479943
cmp dword [edx], ebx
jne 0x4799b0
mov esi, dword [ebp - 0x20]
cmp esi, ebx
jne 0x47994f
cmp dword [ebp - 0x14], ebx
je 0x4799b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [eax + 0x34], 0xa
jne 0x479991
cmp esi, dword [ebp - 0x10]
jge 0x479991
cmp dword [ebp - 0x14], ebx
jle 0x479991
inc esi
cmp esi, dword [ebp - 0x10]
jg 0x479991
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x479979
cmp dword [eax], ebx
jne 0x479991
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.004799c4
test eax, eax
je 0x479965
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x47999f
cmp dword [eax], ebx
jne 0x4799b0
push eax
push 0x1f4
call fcn.0042126f
pop ecx
jmp 0x4797e6
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00479b50
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret 4