Function at 0x1810a505
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, 0x181d8868
push edi
call fcn.18026d51
mov ecx, 0x181d8768
mov dword [esi + 0x10], 0xc
call fcn.18026d51
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
call fcn.18006f9c
push eax
lea ecx, [ebp - 0xc]
call fcn.180076af
push str.update
mov edi, 0x181abb8c
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.18016b2d
add esp, 0xc
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0xc]
call fcn.1810a23c
mov ebx, dword [ebp - 0x1c]
test eax, eax
js 0x1810a5f1
cmp ebx, dword [ebp - 0x18]
je 0x1810a589
mov edi, 0x80040712
jmp 0x1810a6fd
push str.uninstall
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.18016b2d
add esp, 0xc
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0xc]
call fcn.1810a23c
mov ebx, dword [ebp - 0x1c]
test eax, eax
js 0x1810a5f1
cmp ebx, dword [ebp - 0x18]
je 0x1810a5bc
mov edi, 0xa0430721
jmp 0x1810a6fd
push str.install
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.18016b2d
add esp, 0xc
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0xc]
call fcn.1810a23c
mov ebx, dword [ebp - 0x1c]
test eax, eax
js 0x1810a5f1
mov edi, dword [ebp - 0x18]
cmp ebx, edi
je 0x1810a5f1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x1810a5fb
mov edi, 0x80040706
jmp 0x1810a6fd
push eax
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.180074fa
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x1810a6f0
push 0
push str.MicrosoftEdgeUpdate.exe
lea ecx, [ebp - 8]
call fcn.18014751
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x1810a6f0
push str.MicrosoftEdgeUpdate.exe
call fcn.1813b4f0
add eax, dword [ebp - 0x20]
pop ecx
push eax
lea ecx, [ebp - 8]
mov dword [ebp - 0x20], eax
call fcn.18009fe4
push 0x22
pop ecx
cmp cx, ax
mov ecx, dword [ebp - 0x20]
jne 0x1810a655
inc ecx
mov eax, dword [esi - 0xc]
and dword [ebp - 0x10], 0
sub eax, ecx
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.1800f994
lea ecx, [ebp - 0x10]
call fcn.18014643
and dword [ebp - 0x20], 0
sub edi, ebx
sar edi, 2
test edi, edi
je 0x1810a6cc
and dword [ebp - 8], 0
call fcn.18006f9c
push eax
lea ecx, [ebp - 8]
call fcn.180076af
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 8]
mov ecx, dword [ebx + ecx*4]
call fcn.180184f6
test eax, eax
js 0x1810a6b6
push 0
push dword [ebp - 0x10]
lea ecx, [ebp - 8]
call fcn.18014751
cmp eax, 0xffffffff
jne 0x1810a6de
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.18006f72
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, edi
jb 0x1810a680
mov edi, 0x80040711
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006f72
jmp 0x1810a6f5
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov edi, 0x80040710
jmp 0x1810a6d1
mov edi, 0x80040706
lea ecx, [esi - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f72
test ebx, ebx
je 0x1810a71d
mov ecx, dword [ebp - 0x14]
sub ecx, ebx
and ecx, 0xfffffffc
push ecx
push ebx
call fcn.1800a1ed
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181227f8
leave
ret 4