Function at 0x430a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4644b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x49106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
call fcn.00401640
mov ecx, eax
test ecx, ecx
jne 0x430aac
push 0x80004005
call fcn.004012a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x483048
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00407020
test al, al
jne 0x430adb
push 0
push 0x483048
lea ecx, [ebp - 0x10]
call fcn.004076f0
push 0x20019
push 0x483098
push SysReAllocString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040e570
mov edi, dword [ebp - 0x28]
test eax, eax
jne 0x430bd2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x483054
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x430bd2
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x430b39
cmp eax, 2
jne 0x430bd2
mov eax, dword [ebp - 0x18]
shr eax, 1
lea ebx, [eax + eax]
lea eax, [ebx + 2]
push eax
call fcn.00445a72
mov esi, eax
add esp, 4
test esi, esi
je 0x430bd2
lea eax, [ebx + 2]
push eax
push 0
push esi
call fcn.0043e860
add esp, 0xc
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x4831d4
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x430bc9
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x430b8d
cmp eax, 2
jne 0x430bc9
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x430ba4
test al, 1
jne 0x430bc9
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x430ba9
jmp 0x430bc9
xor eax, eax
mov word [esi], ax
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430bb0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.004076f0
push esi
call fcn.00445a6d
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x430be4
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x28], edi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x24], 0
mov eax, dword [esi - 0xc]
test eax, eax
je 0x430c3c
add esi, 0xfffffff0
mov ecx, esi
call fcn.00407630
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov byte [ebp - 4], 0
mov dword [ecx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x430c20
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x430c27
push edi
call ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x20119
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push SysReAllocString
lea ecx, [ebp - 0x28]
call fcn.0040e570
mov edi, dword [ebp - 0x28]
test eax, eax
jne 0x430cf9
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push str.ProgId
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x430cf9
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x430c8a
cmp eax, 2
jne 0x430cf9
mov eax, dword [ebp - 0x18]
shr eax, 1
mov dword [ebp - 0x18], eax
lea eax, [eax*2 + 2]
push eax
mov dword [ebp - 0x1c], eax
call fcn.00445a72
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x430cf9
push dword [ebp - 0x1c]
push 0
push ebx
call fcn.0043e860
add esp, 0xc
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x28]
push eax
push ebx
push 0x4831e4
call fcn.0040e620
test eax, eax
jne 0x430cf0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430cd4
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.004076f0
mov esi, dword [ebp - 0x10]
push ebx
call fcn.00445a6d
add esp, 4
add esi, 0xfffffff0
mov ecx, esi
call fcn.00407630
mov ebx, dword [ebp - 0x14]
add eax, 0x10
mov byte [ebp - 4], 0
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x430d24
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x430d2f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret