Function at 0x57685f
Capabilities:
Check if file exists

Disassembly:
push 0x74
mov eax, 0x58e3df
call fcn.00532159
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 0x5768e5
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 0x5768a5
mov ecx, dword [edx]
jmp 0x5768a7
mov ecx, edx
mov eax, dword [edx + 0x10]
add eax, ecx
cmp dword [edx + 0x14], 0x10
jb 0x5768b4
mov edx, dword [edx]
sub esp, 0x18
mov ecx, esp
push ecx
push eax
push edx
call fcn.00405296
call fcn.005716c2
or dword [ebp - 4], 0xffffffff
add esp, 0x18
mov ecx, dword [ebp - 0x14]
add ebx, eax
test ecx, ecx
je 0x5768db
call fcn.0040afcc
add esi, 8
cmp esi, edi
jne 0x576883
mov dword [ebp - 0x58], ebx
push ebx
push 0
push 0x3e80
push dword [0x5ff34c]
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 0x576a55
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 0x576934
mov ecx, dword [edx]
jmp 0x576936
mov ecx, edx
mov eax, dword [edx + 0x10]
add eax, ecx
cmp dword [edx + 0x14], 0x10
jb 0x576943
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.00571af7
mov byte [ebp - 4], 3
cmp dword [ebx + 0x14], 0x10
push 1
jb 0x576980
mov ecx, dword [ebx]
jmp 0x576982
mov ecx, ebx
mov eax, dword [ebx + 0x10]
add eax, ecx
cmp dword [ebx + 0x14], 0x10
jb 0x576991
mov edx, dword [ebx]
jmp 0x576993
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.00571cbd
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 0x5769dc
cmp dword [ebx + 0x14], 8
jb 0x5769d1
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x576a2f
sub esp, 0x18
mov ebx, 0x3e84
mov ecx, esp
mov dword [ebp - 0x64], esp
mov dword [ebp - 0x60], ebx
push 0x5c62a4
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x68], esp
push 0x5c5ffe
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.00572271
add esp, 0x48
lea ecx, [ebp - 0x54]
call fcn.00571ca1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x576a47
call fcn.0040afcc
add esi, 8
cmp esi, edi
jne 0x57690a
mov ebx, dword [ebp - 0x58]
push ebx
push ebx
push 0x3e80
push dword [0x5ff34c]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x60]
call fcn.00532103
ret