Function at 0x406ed2
Capabilities:
Check if file exists

Disassembly:
push 0x74
mov eax, 0x562575
call fcn.00531cbc
mov eax, ecx
mov dword [ebp - 0x64], eax
and dword [ebp - 0x68], 0
xor ebx, ebx
mov edi, dword [eax + 0x1c]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x60], ebx
cmp esi, edi
je 0x406f57
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
and dword [ebp - 0x14], 0
push esi
call fcn.00407dec
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x14], 0x10
jb 0x406f18
mov ecx, dword [edx]
jmp 0x406f1a
mov ecx, edx
mov eax, dword [edx + 0x10]
add eax, ecx
cmp dword [edx + 0x14], 0x10
jb 0x406f27
mov edx, dword [edx]
sub esp, 0x18
mov ecx, esp
push eax
push edx
call fcn.004066ea
call fcn.004041cb
or dword [ebp - 4], 0xffffffff
add esp, 0x18
mov ecx, dword [ebp - 0x14]
add ebx, eax
test ecx, ecx
je 0x406f4d
call fcn.0040679c
add esi, 8
cmp esi, edi
jne 0x406ef6
mov dword [ebp - 0x60], ebx
push ebx
push 0
push 0x3e80
push dword [0x5dda0c]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x64]
mov edi, dword [eax + 0x1c]
mov esi, dword [eax + 0x18]
cmp esi, edi
je 0x4070d7
and dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
and dword [ebp - 0x1c], 0
push esi
call fcn.00407dec
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x20]
lea edx, [ebx + 0x18]
cmp dword [edx + 0x14], 0x10
jb 0x406fa4
mov ecx, dword [edx]
jmp 0x406fa6
mov ecx, edx
mov eax, dword [edx + 0x10]
add eax, ecx
cmp dword [edx + 0x14], 0x10
jb 0x406fb3
mov edx, dword [edx]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x58], esp
push eax
push edx
call fcn.004066ea
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push dword [ebp - 0x64]
call fcn.00402dfd
push 3
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.0040399e
mov byte [ebp - 4], 3
cmp dword [ebx + 0x14], 0x10
jb 0x406fef
mov ecx, dword [ebx]
jmp 0x406ff1
mov ecx, ebx
mov eax, dword [ebx + 0x10]
add eax, ecx
cmp dword [ebx + 0x14], 0x10
jb 0x407000
mov edx, dword [ebx]
jmp 0x407002
mov edx, ebx
sub esp, 0x18
mov ecx, esp
push eax
push edx
call fcn.004066ea
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x54]
call fcn.00403b5d
lea ecx, [ebx + 0x60]
push eax
mov dword [ebp - 0x58], ecx
call fcn.0040454a
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.004034f0
cmp dword [ebx + 0x70], 0
je 0x40704e
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x14], 8
jb 0x407043
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4070a1
sub esp, 0x18
mov ebx, 0x3e84
mov ecx, esp
mov dword [ebp - 0x5c], esp
mov dword [ebp - 0x68], ebx
push 0x5a76f4
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x58], esp
push 0x5a77de
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
push str.DownloadProducts
call fcn.00402387
mov dl, 1
mov byte [ebp - 4], 3
mov ecx, ebx
call fcn.0040516a
add esp, 0x48
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.004034f0
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.004034f0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4070c9
call fcn.0040679c
add esi, 8
cmp esi, edi
jne 0x406f7c
mov ebx, dword [ebp - 0x60]
push ebx
push ebx
push 0x3e80
push dword [0x5dda0c]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x68]
call fcn.00531c6b
ret