Function at 0x402a00
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b228
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x45e020]
mov edx, dword [eax + 0xc]
mov ecx, 0x45e020
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.EBInstaller_DefaultBrowser_
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00402c30
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.004013c0
mov edx, dword [0x45e020]
mov ebx, eax
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x45e020
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x402b24
push ecx
add edi, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov ebx, esp
push edi
lea esi, [ebp - 0x10]
call fcn.00403470
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.0041ce50
mov esi, dword [ebp - 0x10]
add esp, 4
cmp dword [esi - 0xc], 0
jne 0x402b15
lea ebx, [esi - 0x10]
cmp edi, ebx
je 0x402b15
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x402b02
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x402b02
push edi
call fcn.00403470
add esp, 4
mov edi, eax
or edx, 0xffffffff
lock xadd dword [esi], edx
dec edx
test edx, edx
jg 0x402aed
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [edi + 4]
lea esi, [edi + 0x10]
push eax
push esi
lea ebx, [ebp - 0x18]
mov dword [ebp - 0x10], esi
call fcn.00402e80
jmp 0x402b35
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00403370
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
push eax
push esi
lea ebx, [ebp - 0x18]
call fcn.00402e80
jmp 0x402b35
push ebx
push str.Error__d
lea edi, [ebp - 0x18]
call fcn.00402fe0
add esp, 8
xor edi, edi
cmp dword [esi - 0xc], edi
je 0x402bac
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
push edi
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x103
push edi
push edi
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x402bac
push edi
push edi
lea edx, [ebp + 8]
push edx
push edi
push str.zi_defbrowsename
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x402b87
cmp dword [ebp + 8], 1
je 0x402ba2
mov eax, dword [esi - 0xc]
mov ecx, dword [ebp - 0x10]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push edi
push str.zi_defbrowsename
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402bcc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402bef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4