Function at 0x403b40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417c5d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x42100c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov bl, cl
mov byte [ebp - 0x49], bl
mov bh, 1
mov dword [ebp - 4], 0
call fcn.00403f30
test al, al
je 0x403e2f
movzx eax, bl
mov ecx, 0x20019
mov dword [ebp - 0x48], eax
lea esi, [eax - 0x7fffffff]
mov eax, 0x20219
cmp esi, 0x80000002
cmovne eax, ecx
lea ecx, [ebp - 0x50]
push ecx
push eax
push 0
push str.SOFTWAREMicrosoftEdgeUpdateClients
push esi
mov dword [ebp - 0x54], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403bcf
push dword [ebp - 0x50]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x403bde
cmp eax, 2
je 0x403e2f
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1d
xor eax, eax
mov dword [ebp - 0x44], 0
push str.Microsoft_Bing_Service_Update
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00406490
mov byte [ebp - 4], 1
mov edx, str.SOFTWAREMicrosoftEdgeUpdateClients1FAB8CFE_9860_415C_A6CA_AA7D12021940
mov eax, dword [ebp - 0x34]
push dword [ebp - 0x48]
cmp dword [ebp - 0x30], 8
push 1
lea ecx, [eax + eax]
push ecx
lea eax, [ebp - 0x44]
mov ecx, esi
cmovae eax, dword [ebp - 0x44]
push eax
push str.name
call fcn.00403a90
xor edx, edx
movzx ecx, bh
add esp, 0x14
mov dword [ebp - 0x2c], edx
test eax, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 7
cmovne ecx, edx
push 8
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0x2c]
push str.2.0.0.28
call fcn.00406490
mov eax, dword [ebp - 0x1c]
mov edx, str.SOFTWAREMicrosoftEdgeUpdateClients1FAB8CFE_9860_415C_A6CA_AA7D12021940
push dword [ebp - 0x48]
cmp dword [ebp - 0x18], 8
push 1
lea ecx, [eax*4]
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esi
cmovae eax, dword [ebp - 0x2c]
push eax
push 0x41eacc
call fcn.00403a90
mov ecx, dword [ebp - 0x50]
add esp, 0x14
xor edx, edx
movzx ecx, cl
test eax, eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
cmovne ecx, edx
push edx
push str.SOFTWAREMicrosoftEdgeUpdateClientState
push esi
mov dword [ebp - 0x58], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403d97
push dword [ebp - 0x50]
call edi
mov eax, dword [ebp - 0x34]
mov edx, str.SOFTWAREMicrosoftEdgeUpdateClientState1FAB8CFE_9860_415C_A6CA_AA7D12021940
push dword [ebp - 0x48]
cmp dword [ebp - 0x30], 8
push 1
lea ecx, [eax + eax]
push ecx
lea eax, [ebp - 0x44]
mov ecx, esi
cmovae eax, dword [ebp - 0x44]
push eax
push str.name
call fcn.00403a90
mov ecx, dword [ebp - 0x58]
mov edx, str.SOFTWAREMicrosoftEdgeUpdateClientState1FAB8CFE_9860_415C_A6CA_AA7D12021940
push dword [ebp - 0x48]
movzx ebx, cl
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x1c]
push 1
cmovne ebx, ecx
cmp dword [ebp - 0x18], 8
lea ecx, [eax + eax]
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esi
cmovae eax, dword [ebp - 0x2c]
push eax
push 0x41eacc
call fcn.00403a90
add esp, 0x28
movzx ecx, bl
xor edx, edx
mov dword [ebp - 0x5c], 0x10e0
test eax, eax
mov dword [ebp - 0x48], edx
mov eax, 0xf023f
cmovne ecx, edx
xor ebx, ebx
mov dword [ebp - 0x54], ecx
cmp esi, 0x80000002
mov ecx, 0xf003f
cmovne eax, ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
push ebx
push str.SOFTWAREMicrosoftEdgeUpdateClientState1FAB8CFE_9860_415C_A6CA_AA7D12021940
push esi
mov dword [ebp - 0x58], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403e4d
push ebx
lea eax, [ebp - 0x48]
push eax
push ebx
push dword [ebp - 0x58]
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftEdgeUpdateClientState1FAB8CFE_9860_415C_A6CA_AA7D12021940
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x403e4d
mov ebx, 0x80004005
jmp 0x403e6f
cmp eax, 2
jne 0x403cc2
mov cl, bl
call fcn.00404080
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x403de1
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403dd7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f1d
push edx
push ecx
call fcn.00406bda
add esp, 8
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x403e2f
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403e25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f1d
push edx
push ecx
call fcn.00406bda
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00406958
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0x5c]
push eax
push 4
push 0
push str.updatefreqhourshint
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 0x80004005
cmovne ebx, ecx
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x403e79
push eax
call edi
test ebx, ebx
je 0x403e81
xor bl, bl
jmp 0x403e88
mov ebx, dword [ebp - 0x54]
test bl, bl
jne 0x403e90
mov cl, byte [ebp - 0x49]
call fcn.00404080
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x403ec6
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403ebc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f1d
push edx
push ecx
call fcn.00406bda
add esp, 8
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x403f10
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403f06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f1d
push edx
push ecx
call fcn.00406bda
add esp, 8
mov al, bl
jmp 0x403e31
call fcn.00409e97
int3