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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44440b
mov eax, dword fs:[0]
push eax
sub esp, 0x73c
mov eax, dword [0x45d554]
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 - 0x748], ecx
lea ecx, [ebp - 0x738]
push eax
call fcn.004025f0
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x110], ax
mov eax, dword [ebp - 0x738]
cmp dword [eax - 0xc], 0
jne 0x410121
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
jmp 0x4104cd
push str.CLSID
lea ecx, [ebp - 0x738]
call fcn.0040e250
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x734]
push eax
push 0x20019
push 0
push dword [ebp - 0x738]
push SysReAllocString
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4101ba
lea eax, [ebp - 0x73c]
mov dword [ebp - 0x73c], 0x80
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x740]
push eax
push 0
push 0
push dword [ebp - 0x734]
call edi
test eax, eax
jne 0x4101b2
cmp dword [ebp - 0x740], 1
jne 0x4101b2
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x110]
push 0x40
push eax
call fcn.00434f6d
add esp, 0xc
push dword [ebp - 0x734]
call esi
lea ecx, [ebp - 0x110]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4101c3
sub ecx, edx
sar ecx, 1
je 0x4104bd
push str.CLSID_
lea eax, [ebp - 0x210]
push 0x80
push eax
call fcn.00434f6d
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push 0x80
push eax
call fcn.00434fd1
add esp, 0xc
lea eax, [ebp - 0x744]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x210]
push eax
push SysReAllocString
call ebx
test eax, eax
je 0x410290
push str.Wow6432NodeCLSID_
lea eax, [ebp - 0x210]
push 0x80
push eax
call fcn.00434f6d
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push 0x80
push eax
call fcn.00434fd1
add esp, 0xc
lea eax, [ebp - 0x744]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x210]
push eax
push SysReAllocString
call ebx
test eax, eax
je 0x410290
lea ecx, [ebp - 0x738]
call fcn.00402750
jmp 0x4104e2
lea eax, [ebp - 0x734]
push eax
push 0x20019
push 0
push str.TypeLib
push dword [ebp - 0x744]
call ebx
test eax, eax
jne 0x41030d
lea eax, [ebp - 0x73c]
mov dword [ebp - 0x73c], 0x80
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x740]
push eax
push 0
push 0
push dword [ebp - 0x734]
call edi
test eax, eax
jne 0x4104b5
cmp dword [ebp - 0x740], 1
jne 0x4104b5
push dword [ebp - 0x748]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0040fa50
jmp 0x4104ab
lea eax, [ebp - 0x734]
push eax
push 0x20019
push 0
push str.InprocServer32
push dword [ebp - 0x744]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4103f8
lea eax, [ebp - 0x73c]
mov dword [ebp - 0x73c], 0x105
push eax
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x740]
push eax
push 0
push 0
push dword [ebp - 0x734]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4103f0
mov eax, dword [ebp - 0x740]
cmp eax, 1
je 0x4103b1
cmp eax, 2
jne 0x4103f0
push 0x104
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x520]
push eax
call edi
test eax, eax
je 0x4103b1
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x520]
push 0x104
push eax
call fcn.00434f6d
add esp, 0xc
push dword [ebp - 0x748]
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0040fe50
mov edi, eax
test edi, edi
jle 0x4103ea
push dword [ebp - 0x734]
call esi
lea ecx, [ebp - 0x738]
call fcn.00402750
mov eax, edi
jmp 0x4104e4
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 0x734]
call esi
lea eax, [ebp - 0x734]
push eax
push 0x20019
push 0
push str.LocalServer32
push dword [ebp - 0x744]
call ebx
test eax, eax
jne 0x4104bd
lea eax, [ebp - 0x73c]
mov dword [ebp - 0x73c], 0x105
push eax
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x740]
push eax
push 0
push 0
push dword [ebp - 0x734]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4104b5
mov eax, dword [ebp - 0x740]
cmp eax, 1
je 0x410492
cmp eax, 2
jne 0x4104b5
push 0x104
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x520]
push eax
call edi
test eax, eax
je 0x410492
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x520]
push 0x104
push eax
call fcn.00434f6d
add esp, 0xc
push dword [ebp - 0x748]
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0040fe50
mov edi, eax
test edi, edi
jg 0x4103d0
push dword [ebp - 0x734]
call esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x738]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4104e2
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.0042b6e6
mov esp, ebp
pop ebp
ret 8