Function at 0x57661a
Capabilities:
Check if file exists

Disassembly:
push 0x74
mov eax, 0x58dd22
call fcn.00532017
mov eax, ecx
mov dword [ebp - 0x5c], eax
and dword [ebp - 0x60], 0
xor ebx, ebx
mov edi, dword [eax + 0x1c]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x58], ebx
cmp esi, edi
je 0x5766a0
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
and dword [ebp - 0x14], 0
push esi
call fcn.0040907c
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x14], 0x10
jb 0x576660
mov ecx, dword [edx]
jmp 0x576662
mov ecx, edx
mov eax, dword [edx + 0x10]
add eax, ecx
cmp dword [edx + 0x14], 0x10
jb 0x57666f
mov edx, dword [edx]
sub esp, 0x18
mov ecx, esp
push ecx
push eax
push edx
call fcn.00405296
call fcn.00571582
or dword [ebp - 4], 0xffffffff
add esp, 0x18
mov ecx, dword [ebp - 0x14]
add ebx, eax
test ecx, ecx
je 0x576696
call fcn.0040afcc
add esi, 8
cmp esi, edi
jne 0x57663e
mov dword [ebp - 0x58], ebx
push ebx
push 0
push 0x3e80
push dword [0x5fe35c]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x5c]
mov edi, dword [eax + 0x1c]
mov esi, dword [eax + 0x18]
cmp esi, edi
je 0x576810
and dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
and dword [ebp - 0x1c], 0
push esi
call fcn.0040907c
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x20]
push 6
lea edx, [ebx + 0x18]
cmp dword [edx + 0x14], 0x10
jb 0x5766ef
mov ecx, dword [edx]
jmp 0x5766f1
mov ecx, edx
mov eax, dword [edx + 0x10]
add eax, ecx
cmp dword [edx + 0x14], 0x10
jb 0x5766fe
mov edx, dword [edx]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x68], esp
push ecx
push eax
push edx
call fcn.00405296
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push dword [ebp - 0x5c]
call fcn.00402961
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.005719b7
mov byte [ebp - 4], 3
cmp dword [ebx + 0x14], 0x10
push 1
jb 0x57673b
mov ecx, dword [ebx]
jmp 0x57673d
mov ecx, ebx
mov eax, dword [ebx + 0x10]
add eax, ecx
cmp dword [ebx + 0x14], 0x10
jb 0x57674c
mov edx, dword [ebx]
jmp 0x57674e
mov edx, ebx
sub esp, 0x18
mov ecx, esp
push ecx
push eax
push edx
call fcn.00405296
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x54]
call fcn.00571b7d
add ebx, 0x60
push eax
mov ecx, ebx
call fcn.00402068
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00403a36
cmp dword [ebx + 0x10], 0
je 0x576797
cmp dword [ebx + 0x14], 8
jb 0x57678c
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5767ea
sub esp, 0x18
mov ebx, 0x3e84
mov ecx, esp
mov dword [ebp - 0x64], esp
mov dword [ebp - 0x60], ebx
push 0x5c52a4
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x68], esp
push 0x5c4ffe
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
push str.DownloadProducts
call fcn.004036e4
mov dl, 1
mov byte [ebp - 4], 3
mov ecx, ebx
call fcn.00572131
add esp, 0x48
lea ecx, [ebp - 0x54]
call fcn.00571b61
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x576802
call fcn.0040afcc
add esi, 8
cmp esi, edi
jne 0x5766c5
mov ebx, dword [ebp - 0x58]
push ebx
push ebx
push 0x3e80
push dword [0x5fe35c]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x60]
call fcn.00531fc1
ret