Function at 0x410da0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4459ab
mov eax, dword fs:[0]
push eax
sub esp, 0x954
mov eax, dword [0x460554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x958], ecx
lea ecx, [ebp - 0x948]
push eax
call fcn.00402550
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x110], ax
mov eax, dword [ebp - 0x948]
cmp dword [eax - 0xc], 0
jne 0x410e11
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
jmp 0x4111ef
push str.CLSID
lea ecx, [ebp - 0x948]
call fcn.0040ea50
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x944]
push eax
push 0x20019
push 0
push dword [ebp - 0x948]
push SysReAllocString
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x410eaa
lea eax, [ebp - 0x94c]
mov dword [ebp - 0x94c], 0x80
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x950]
push eax
push 0
push 0
push dword [ebp - 0x944]
call edi
test eax, eax
jne 0x410ea2
cmp dword [ebp - 0x950], 1
jne 0x410ea2
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x110]
push 0x40
push eax
call fcn.00435a1f
add esp, 0xc
push dword [ebp - 0x944]
call esi
lea ecx, [ebp - 0x110]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410eb3
sub ecx, edx
sar ecx, 1
je 0x4111df
push str.CLSID_
lea eax, [ebp - 0x210]
push 0x80
push eax
call fcn.00435a1f
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push 0x80
push eax
call fcn.00435a83
add esp, 0xc
lea eax, [ebp - 0x954]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x210]
push eax
push SysReAllocString
call ebx
test eax, eax
je 0x410f74
push str.Wow6432NodeCLSID_
lea eax, [ebp - 0x210]
push 0x80
push eax
call fcn.00435a1f
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push 0x80
push eax
call fcn.00435a83
add esp, 0xc
lea eax, [ebp - 0x954]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x210]
push eax
push SysReAllocString
call ebx
test eax, eax
jne 0x4111df
lea eax, [ebp - 0x944]
push eax
push 0x20019
push 0
push str.TypeLib
push dword [ebp - 0x954]
call ebx
test eax, eax
jne 0x410ff1
lea eax, [ebp - 0x94c]
mov dword [ebp - 0x94c], 0x80
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x950]
push eax
push 0
push 0
push dword [ebp - 0x944]
call edi
test eax, eax
jne 0x4111d7
cmp dword [ebp - 0x950], 1
jne 0x4111d7
push dword [ebp - 0x958]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.004104e0
jmp 0x4111b1
lea eax, [ebp - 0x944]
push eax
push 0x20019
push 0
push str.InprocServer32
push dword [ebp - 0x954]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4110fa
lea eax, [ebp - 0x94c]
mov dword [ebp - 0x94c], 0x105
push eax
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x950]
push eax
push 0
push 0
push dword [ebp - 0x944]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4110f2
mov eax, dword [ebp - 0x950]
cmp eax, 1
je 0x411099
cmp eax, 2
jne 0x4110f2
push 0x104
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x730]
push eax
call edi
test eax, eax
je 0x411099
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x730]
push 0x104
push eax
call fcn.00435a1f
add esp, 0xc
push dword [ebp - 0x958]
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00410930
mov edi, eax
test edi, edi
jle 0x4110ec
push dword [ebp - 0x944]
call esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x948]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4110e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x411206
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 0x944]
call esi
lea eax, [ebp - 0x944]
push eax
push 0x20019
push 0
push str.LocalServer32
push dword [ebp - 0x954]
call ebx
test eax, eax
jne 0x4111df
lea eax, [ebp - 0x94c]
mov dword [ebp - 0x94c], 0x105
push eax
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x950]
push eax
push 0
push 0
push dword [ebp - 0x944]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4111d7
mov eax, dword [ebp - 0x950]
cmp eax, 1
je 0x411198
cmp eax, 2
jne 0x4111d7
push 0x104
lea eax, [ebp - 0x940]
push eax
lea eax, [ebp - 0x520]
push eax
call edi
test eax, eax
je 0x411198
lea eax, [ebp - 0x940]
push eax
lea eax, [ebp - 0x520]
push 0x104
push eax
call fcn.00435a1f
add esp, 0xc
push dword [ebp - 0x958]
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00410930
mov edi, eax
test edi, edi
jle 0x4111d7
push dword [ebp - 0x944]
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x948]
add edx, 0xfffffff0
jmp 0x4110d3
push dword [ebp - 0x944]
call esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x948]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411204
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c635
mov esp, ebp
pop ebp
ret 8