Function at 0x1806a658
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x181d700c]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x60], ebx
call fcn.18006f9c
push eax
lea ecx, [esp + 0x64]
call fcn.180076af
mov ecx, esi
call fcn.1806adf9
xor ecx, ecx
mov dword [esp + 0x44], eax
cmp eax, 2
mov dword [esp + 0x48], ebx
setne cl
mov dword [esp + 0x4c], ecx
je 0x1806a6c6
cmp eax, 4
je 0x1806a6c6
mov eax, ebx
jmp 0x1806a6c9
xor eax, eax
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x50], ebx
call fcn.18006f9c
push eax
lea ecx, [esp + 0x54]
call fcn.180076af
lea ecx, [esp + 0x50]
cmp byte [esp + 0x14], bl
je 0x1806a705
call fcn.180197ea
jmp 0x1806a70a
call fcn.180197d2
test eax, eax
jns 0x1806a717
lea ecx, [esp + 0x50]
call fcn.18007546
mov edi, dword [esp + 0x50]
cmp dword [edi - 0xc], ebx
je 0x1806a7f8
push str.Commands
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], ebx
call fcn.180074fa
push esi
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
call fcn.1800d45c
lea ecx, [esp + 0x1c]
mov dword [esp], str.SoftwareMicrosoftEdgeUpdateClients_
mov esi, eax
call fcn.180074fa
push esi
push dword [esp + 0x20]
lea edx, [esp + 0x20]
lea ecx, [esp + 0x28]
call fcn.1800d568
pop ecx
pop ecx
push str.HKU_
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.180074fa
lea eax, [esp + 0x50]
push esi
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x5c]
call fcn.1800d568
pop ecx
pop ecx
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [esp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x64]
push ebx
push eax
push 4
mov edx, str.Enabled
call fcn.1801a4f1
mov ecx, dword [esp + 0x60]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x28]
cmp byte [esp + 0x14], bl
je 0x1806a824
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x1806a824
push ebx
push str.os_upgrade_launch
mov ecx, esi
call fcn.18014751
cmp eax, 0xffffffff
je 0x1806a824
xor eax, eax
mov dword [esp + 0x30], ebx
inc eax
mov dword [esp + 0x64], eax
jmp 0x1806a828
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x1806a836
mov ebx, 0xa0430e02
jmp 0x1806a909
call fcn.1801f853
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdateClients_
mov dword [esp + 0x54], ebx
cmp byte [esp + 0x14], bl
jne 0x1806a84f
mov eax, str.HKCUSoftwareMicrosoftEdgeUpdateClients_
push eax
lea ecx, [esp + 0x58]
call fcn.180074fa
push dword [esp + 0x1c]
lea edx, [esp + 0x58]
mov dword [esp + 0x60], ebx
lea ecx, [esp + 0x60]
call fcn.1800d45c
lea ecx, [esp + 0x10]
mov dword [esp + 0x5c], ebx
mov dword [esp], str.Commands
call fcn.180074fa
lea eax, [esp + 0xc]
push esi
push eax
lea edx, [esp + 0x64]
lea ecx, [esp + 0x60]
call fcn.1800d568
pop ecx
pop ecx
mov ecx, dword [esp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [esp + 0x58]
call fcn.1801ab28
test al, al
jne 0x1806a934
mov edx, dword [esi]
mov ecx, dword [esp + 0x5c]
call fcn.1801acc1
test al, al
jne 0x1806a8ca
mov ebx, 0x80040e01
jmp 0x1806a8e5
mov edx, dword [esi]
lea eax, [esp + 0x60]
mov ecx, dword [esp + 0x5c]
push eax
call fcn.1801c756
pop ecx
test eax, eax
jns 0x1806aa80
mov ebx, eax
mov ecx, dword [esp + 0x58]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [esp + 0x5c]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [esp + 0x54]
lea ecx, [ecx - 0x10]
call fcn.18006f72
lea ecx, [edi - 0x10]
call fcn.18006f72
mov ecx, dword [esp + 0x60]
add ecx, 0xfffffff0
call fcn.18006f72
mov ecx, dword [esp + 0xac]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18122538
mov esp, ebp
pop ebp
ret
push str.CommandLine
lea ecx, [esp + 0x14]
call fcn.180074fa
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x60]
mov ecx, dword [esp + 0x58]
mov edx, esi
push eax
call fcn.1801c756
pop ecx
lea ecx, [esi - 0x10]
mov dword [esp + 0x10], eax
call fcn.18006f72
mov eax, dword [esp + 0x10]
test eax, eax
js 0x1806a8e3
lea eax, [esp + 0x4c]
mov dword [esp + 0x68], str.SendsPings
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x34]
mov dword [esp + 0xa4], eax
mov eax, ebx
mov dword [esp + 0x70], str.AutoRunOnOSUpgrade
mov dword [esp + 0x78], str.ReportingId
mov dword [esp + 0x80], str.RunAsUser
mov dword [esp + 0x88], str.CaptureOutput
mov dword [esp + 0x90], str.FinishBrowserReplacement
mov dword [esp + 0x98], str.AutoRunOnLogon
mov dword [esp + 0xa0], str.RunOnInterval
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + eax*8 + 0x6c]
push dword [esp + eax*8 + 0x68]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x14]
call fcn.180074fa
mov esi, dword [esp + 0x10]
mov edx, esi
mov ecx, dword [esp + 0x58]
call fcn.1801acc1
test al, al
jne 0x1806aa41
mov dword [esp + 0xc], ebx
jmp 0x1806aa5a
mov ecx, dword [esp + 0x58]
mov edx, esi
push ebx
push dword [esp + 0x24]
push 4
call fcn.1801a4f1
add esp, 0xc
mov dword [esp + 0xc], eax
lea ecx, [esi - 0x10]
call fcn.18006f72
mov eax, dword [esp + 0xc]
test eax, eax
js 0x1806a8e3
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 8
jb 0x1806aa13
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
movzx eax, al
neg eax
push 0x1c
sbb eax, eax
and dword [esp + 0x34], eax
call fcn.18122de8
cmp dword [esp + 0x38], ebx
mov edx, eax
pop ecx
setne cl
cmp dword [esp + 0x38], ebx
movzx ecx, cl
push ecx
setne cl
cmp dword [esp + 0x40], ebx
movzx ecx, cl
push ecx
setne al
mov ecx, edx
cmp dword [esp + 0x48], ebx
movzx eax, al
push eax
setne al
cmp dword [esp + 0x3c], ebx
movzx eax, al
push eax
setne al
cmp dword [esp + 0x58], ebx
movzx eax, al
push eax
push dword [esp + 0x58]
setne al
cmp dword [esp + 0x64], ebx
movzx eax, al
push eax
setne al
movzx eax, al
push eax
lea eax, [esp + 0x80]
push eax
push esi
push dword [esp + 0x3c]
push dword [esp + 0x48]
call fcn.1806aea7
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx]
mov dword [ecx], eax
test esi, esi
je 0x1806a8e5
mov ecx, esi
call fcn.1804ef31
push 0x1c
push esi
call fcn.18122a66
pop ecx
pop ecx
jmp 0x1806a8e5