Function at 0x18065934
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, 0x180b1f08
call fcn.18041000
mov eax, dword [ebp + 8]
mov esi, 0x180b1f28
mov dword [eax + 0xc], 0xc
call fcn.18041000
lea esi, [ebp - 0x28]
call fcn.18023d02
mov eax, dword [0x180b41a8]
mov ecx, 0x180b41a8
call dword [eax + 0xc]
add eax, 0x10
push str.update
mov dword [ebp + 8], eax
mov esi, 0x180a5dd4
lea eax, [ebp + 8]
push esi
push eax
call fcn.18002c13
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
call fcn.1806571c
pop ecx
pop ecx
test eax, eax
jge 0x180659c1
mov edi, 0x80040706
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.18003e1e
lea esi, [ebp - 0x28]
call fcn.1800f711
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
test eax, 0xfffffffc
je 0x180659d5
mov edi, 0x80040712
jmp 0x180659a5
push str.uninstall
lea eax, [ebp + 8]
push esi
push eax
call fcn.18002c13
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
call fcn.1806571c
pop ecx
pop ecx
test eax, eax
jl 0x180659a0
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
test eax, 0xfffffffc
je 0x18065a0e
mov edi, 0xa0430721
jmp 0x180659a5
push str.install
lea eax, [ebp + 8]
push esi
push eax
call fcn.18002c13
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
call fcn.1806571c
pop ecx
pop ecx
test eax, eax
jl 0x180659a0
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
test eax, 0xfffffffc
je 0x180659a0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x180659a0
push eax
lea eax, [ebp - 0xc]
call fcn.18003b93
mov edi, dword [ebp - 0xc]
cmp dword [edi - 0xc], 0
jne 0x18065a75
lea eax, [edi - 0x10]
call fcn.18003e1e
jmp 0x180659a0
mov ebx, str.CatalinaUpdate.exe
xor ecx, ecx
mov eax, ebx
lea esi, [ebp - 0xc]
call fcn.18009232
mov esi, eax
cmp esi, 0xffffffff
je 0x18065a68
push ebx
call fcn.18076825
add eax, esi
pop ecx
js 0x18065b92
mov ecx, dword [edi - 0xc]
cmp eax, ecx
jg 0x18065b92
push 0x22
pop edx
cmp dx, word [edi + eax*2]
jne 0x18065ab1
inc eax
sub ecx, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
call fcn.18005710
lea ebx, [ebp - 0x10]
call fcn.180092f8
call fcn.1800933a
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
xor ebx, ebx
sar eax, 2
test eax, eax
jbe 0x18065b37
mov eax, dword [0x180b41a8]
mov ecx, 0x180b41a8
call dword [eax + 0xc]
add eax, 0x10
mov edi, ebx
lea esi, [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.1800f41a
lea ecx, [ebp - 8]
push ecx
push dword [eax]
call fcn.1800f0fb
pop ecx
pop ecx
test eax, eax
jl 0x18065b1b
mov eax, dword [ebp - 0x10]
xor ecx, ecx
lea esi, [ebp - 8]
call fcn.18009232
cmp eax, 0xffffffff
jne 0x18065b67
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x18065adb
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.18003e1e
lea eax, [edi - 0x10]
call fcn.18003e1e
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.18003e1e
lea esi, [ebp - 0x28]
call fcn.1800f711
mov eax, 0x80040711
jmp 0x180659ba
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.18003e1e
mov edi, 0x80040710
jmp 0x180659a5
push 0x80070057
call fcn.18003d38
int3