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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426b64
mov eax, dword fs:[0]
push eax
sub esp, 0xb7c
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb5c], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xb50]
call fcn.00409a40
mov dword [ebp - 4], 0
mov ecx, 2
imul edx, ecx, 0
mov dword [ebp - 0xb60], edx
cmp dword [ebp - 0xb60], 0x100
jae 0x4243c3
jmp 0x4243c8
call fcn.0040e81f
xor eax, eax
mov ecx, dword [ebp - 0xb60]
mov word [ebp + ecx - 0x110], ax
lea ecx, [ebp - 0xb50]
call fcn.00409ce0
movzx edx, al
test edx, edx
je 0x424411
mov dword [ebp - 0xb70], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb50]
call fcn.00409a20
mov eax, dword [ebp - 0xb70]
jmp 0x42493d
push str.CLSID
lea ecx, [ebp - 0xb50]
call fcn.00409940
lea eax, [ebp - 0xb44]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0xb50]
call fcn.00401a80
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xb48], eax
cmp dword [ebp - 0xb48], 0
jne 0x4244b7
mov dword [ebp - 0xb54], 0x80
lea ecx, [ebp - 0xb54]
push ecx
lea edx, [ebp - 0x310]
push edx
lea eax, [ebp - 0xb4c]
push eax
push 0
push 0
mov ecx, dword [ebp - 0xb44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4244aa
cmp dword [ebp - 0xb4c], 1
jne 0x4244aa
lea edx, [ebp - 0x310]
push edx
push 0x40
lea eax, [ebp - 0x110]
push eax
call fcn.004161c6
add esp, 0xc
mov ecx, dword [ebp - 0xb44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x110]
push edx
call fcn.00413415
add esp, 4
test eax, eax
jne 0x4244f1
mov dword [ebp - 0xb74], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb50]
call fcn.00409a20
mov eax, dword [ebp - 0xb74]
jmp 0x42493d
push str.CLSID_
push 0x80
lea eax, [ebp - 0x210]
push eax
call fcn.004161c6
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0040d310
add esp, 8
lea eax, [ebp - 0xb58]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x210]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xb48], eax
cmp dword [ebp - 0xb48], 0
je 0x4245d8
push str.Wow6432NodeCLSID_
push 0x80
lea edx, [ebp - 0x210]
push edx
call fcn.004161c6
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040d310
add esp, 8
lea edx, [ebp - 0xb58]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x210]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xb48], eax
cmp dword [ebp - 0xb48], 0
je 0x4245d8
mov dword [ebp - 0xb78], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb50]
call fcn.00409a20
mov eax, dword [ebp - 0xb78]
jmp 0x42493d
lea ecx, [ebp - 0xb44]
push ecx
push 0x20019
push 0
push str.TypeLib
mov edx, dword [ebp - 0xb58]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xb48], eax
cmp dword [ebp - 0xb48], 0
jne 0x4246bc
mov dword [ebp - 0xb54], 0x80
lea eax, [ebp - 0xb54]
push eax
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0xb4c]
push edx
push 0
push 0
mov eax, dword [ebp - 0xb44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4246aa
cmp dword [ebp - 0xb4c], 1
jne 0x4246aa
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x310]
push eax
mov ecx, dword [ebp - 0xb5c]
call fcn.00424c60
mov dword [ebp - 0xb64], eax
cmp dword [ebp - 0xb64], 0
jle 0x4246aa
mov ecx, dword [ebp - 0xb44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xb64]
mov dword [ebp - 0xb7c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb50]
call fcn.00409a20
mov eax, dword [ebp - 0xb7c]
jmp 0x42493d
mov eax, dword [ebp - 0xb44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42491b
lea ecx, [ebp - 0xb44]
push ecx
push 0x20019
push 0
push str.InprocServer32
mov edx, dword [ebp - 0xb58]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xb48], eax
cmp dword [ebp - 0xb48], 0
jne 0x4247ed
mov dword [ebp - 0xb54], 0x105
lea eax, [ebp - 0xb54]
push eax
lea ecx, [ebp - 0x51c]
push ecx
lea edx, [ebp - 0xb4c]
push edx
push 0
push 0
mov eax, dword [ebp - 0xb44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4247e0
cmp dword [ebp - 0xb4c], 1
je 0x42473d
cmp dword [ebp - 0xb4c], 2
jne 0x4247e0
cmp dword [ebp - 0xb4c], 2
jne 0x42477e
push 0x104
lea ecx, [ebp - 0x934]
push ecx
lea edx, [ebp - 0x51c]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x42477e
lea eax, [ebp - 0x934]
push eax
push 0x104
lea ecx, [ebp - 0x51c]
push ecx
call fcn.004161c6
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x51c]
push eax
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0xb5c]
call fcn.00424960
mov dword [ebp - 0xb68], eax
cmp dword [ebp - 0xb68], 0
jle 0x4247e0
mov edx, dword [ebp - 0xb44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xb68]
mov dword [ebp - 0xb80], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb50]
call fcn.00409a20
mov eax, dword [ebp - 0xb80]
jmp 0x42493d
mov ecx, dword [ebp - 0xb44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0xb44]
push edx
push 0x20019
push 0
push str.LocalServer32
mov eax, dword [ebp - 0xb58]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xb48], eax
cmp dword [ebp - 0xb48], 0
jne 0x42491b
mov dword [ebp - 0xb54], 0x105
lea ecx, [ebp - 0xb54]
push ecx
lea edx, [ebp - 0x728]
push edx
lea eax, [ebp - 0xb4c]
push eax
push 0
push 0
mov ecx, dword [ebp - 0xb44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42490e
cmp dword [ebp - 0xb4c], 1
je 0x42486e
cmp dword [ebp - 0xb4c], 2
jne 0x42490e
cmp dword [ebp - 0xb4c], 2
jne 0x4248af
push 0x104
lea edx, [ebp - 0xb40]
push edx
lea eax, [ebp - 0x728]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4248af
lea ecx, [ebp - 0xb40]
push ecx
push 0x104
lea edx, [ebp - 0x728]
push edx
call fcn.004161c6
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x728]
push ecx
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp - 0xb5c]
call fcn.00424960
mov dword [ebp - 0xb6c], eax
cmp dword [ebp - 0xb6c], 0
jle 0x42490e
mov eax, dword [ebp - 0xb44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xb6c]
mov dword [ebp - 0xb84], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb50]
call fcn.00409a20
mov eax, dword [ebp - 0xb84]
jmp 0x42493d
mov edx, dword [ebp - 0xb44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xb88], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb50]
call fcn.00409a20
mov eax, dword [ebp - 0xb88]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e627
mov esp, ebp
pop ebp
ret 8