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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x1822b00c]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x24]
push edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x60], eax
call fcn.18009d8f
mov ecx, esi
call fcn.1804f9f9
mov ecx, eax
xor edx, edx
cmp ecx, 2
mov dword [esp + 0x54], ecx
setne dl
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x5c], edx
cmp ecx, 2
mov dword [esp + 0x58], ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x50], ebx
sete al
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], edx
call fcn.18009d8f
lea ecx, [esp + 0x2c]
call fcn.180170f3
mov edi, dword [esp + 0x2c]
test eax, eax
js 0x1804f4c9
cmp dword [edi - 0xc], ebx
je 0x1804f4c9
push str.Commands
lea ecx, [esp + 0x20]
call fcn.18006e68
push esi
lea edx, [esp + 0x20]
lea ecx, [esp + 0x14]
call fcn.1800c616
lea ecx, [esp + 0x1c]
mov dword [esp], str.SoftwareMicrosoftEdgeUpdateClients_
mov esi, eax
call fcn.18006e68
push esi
push dword [esp + 0x38]
lea edx, [esp + 0x20]
lea ecx, [esp + 0x40]
call fcn.1800c6ff
pop ecx
pop ecx
push str.HKU_
lea ecx, [esp + 0x40]
mov esi, eax
call fcn.18006e68
lea eax, [esp + 0x2c]
push esi
push eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0x14]
call fcn.1800c6ff
pop ecx
pop ecx
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [esp + 0x38]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x40]
push ebx
push eax
push 4
mov edx, str.Enabled
call fcn.18017b9b
mov ecx, dword [esp + 0x18]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov esi, dword [esp + 0x44]
cmp dword [esp + 0x40], ebx
jne 0x1804f4d9
mov ebx, 0xa0430e02
jmp 0x1804f5a0
call fcn.1801c0e3
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdateClients_
cmp byte [esp + 0x30], bl
jne 0x1804f4ee
mov eax, str.HKCUSoftwareMicrosoftEdgeUpdateClients_
push eax
lea ecx, [esp + 0x1c]
call fcn.18006e68
push dword [esp + 0x34]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x28]
call fcn.1800c616
lea ecx, [esp + 0x10]
mov dword [esp], str.Commands
call fcn.18006e68
lea eax, [esp + 0xc]
push esi
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x1c]
call fcn.1800c6ff
pop ecx
pop ecx
mov ecx, dword [esp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [esp + 0x14]
call fcn.180180e2
test al, al
jne 0x1804f5cb
mov edx, dword [esi]
mov ecx, dword [esp + 0x24]
call fcn.18018248
test al, al
jne 0x1804f561
mov ebx, 0x80040e01
jmp 0x1804f57c
mov edx, dword [esi]
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
call fcn.180199ee
pop ecx
test eax, eax
jns 0x1804f6fe
mov ebx, eax
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.1800694d
lea ecx, [edi - 0x10]
call fcn.1800694d
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.1800694d
mov ecx, dword [esp + 0x9c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.181605f4
mov esp, ebp
pop ebp
ret
push str.CommandLine
lea ecx, [esp + 0x14]
call fcn.18006e68
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov edx, esi
push eax
call fcn.180199ee
pop ecx
lea ecx, [esi - 0x10]
mov dword [esp + 0x10], eax
call fcn.1800694d
mov eax, dword [esp + 0x10]
test eax, eax
js 0x1804f57a
lea eax, [esp + 0x5c]
mov dword [esp + 0x64], str.SendsPings
mov dword [esp + 0x68], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x98], eax
mov eax, ebx
mov dword [esp + 0x6c], str.AutoRunOnOSUpgrade
mov dword [esp + 0x74], str.ReportingId
mov dword [esp + 0x7c], str.RunAsUser
mov dword [esp + 0x84], str.CaptureOutput
mov dword [esp + 0x8c], str.FinishBrowserReplacement
mov dword [esp + 0x94], str.AutoRunOnLogon
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + eax*8 + 0x68]
push dword [esp + eax*8 + 0x64]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x14]
call fcn.18006e68
mov esi, dword [esp + 0x10]
mov edx, esi
mov ecx, dword [esp + 0x14]
call fcn.18018248
test al, al
jne 0x1804f6bf
mov dword [esp + 0xc], ebx
jmp 0x1804f6d8
mov ecx, dword [esp + 0x14]
mov edx, esi
push ebx
push dword [esp + 0x3c]
push 4
call fcn.18017b9b
add esp, 0xc
mov dword [esp + 0xc], eax
lea ecx, [esi - 0x10]
call fcn.1800694d
mov eax, dword [esp + 0xc]
test eax, eax
js 0x1804f57a
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 7
jb 0x1804f691
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x30]
movzx eax, al
neg eax
push 0x1c
sbb eax, eax
and dword [esp + 0x24], eax
call fcn.18160e88
cmp dword [esp + 0x4c], ebx
mov edx, eax
pop ecx
setne cl
cmp dword [esp + 0x4c], ebx
movzx ecx, cl
push ecx
setne cl
cmp dword [esp + 0x54], ebx
movzx ecx, cl
push ecx
setne al
mov ecx, edx
cmp dword [esp + 0x28], ebx
movzx eax, al
push eax
setne al
cmp dword [esp + 0x64], ebx
movzx eax, al
push eax
push dword [esp + 0x64]
setne al
cmp dword [esp + 0x70], ebx
movzx eax, al
push eax
setne al
movzx eax, al
push eax
lea eax, [esp + 0x44]
push eax
push esi
push dword [esp + 0x54]
push dword [esp + 0x5c]
call fcn.1804fa93
mov ecx, dword [esp + 0x60]
mov esi, dword [ecx]
mov dword [ecx], eax
test esi, esi
je 0x1804f57c
mov ecx, esi
call fcn.18039bfa
push 0x1c
push esi
call fcn.18160b12
pop ecx
pop ecx
jmp 0x1804f57c