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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426e14
mov eax, dword fs:[0]
push eax
sub esp, 0xb7c
mov eax, dword [0x432040]
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.00409b10
mov dword [ebp - 4], 0
mov ecx, 2
imul edx, ecx, 0
mov dword [ebp - 0xb60], edx
cmp dword [ebp - 0xb60], 0x100
jae 0x424663
jmp 0x424669
call fcn.0040e930
nop
xor eax, eax
mov ecx, dword [ebp - 0xb60]
mov word [ebp + ecx - 0x110], ax
lea ecx, [ebp - 0xb50]
call fcn.00409db0
movzx edx, al
test edx, edx
je 0x4246b2
mov dword [ebp - 0xb70], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb50]
call fcn.00409af0
mov eax, dword [ebp - 0xb70]
jmp 0x424be5
push str.CLSID
lea ecx, [ebp - 0xb50]
call fcn.00409a10
lea eax, [ebp - 0xb44]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0xb50]
call fcn.00401a90
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xb48], eax
cmp dword [ebp - 0xb48], 0
jne 0x424759
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 0x42474b
cmp dword [ebp - 0xb4c], 1
jne 0x42474b
lea edx, [ebp - 0x310]
push edx
push 0x40
lea eax, [ebp - 0x110]
push eax
call fcn.00416416
add esp, 0xc
mov ecx, dword [ebp - 0xb44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea edx, [ebp - 0x110]
push edx
call fcn.00413665
add esp, 4
test eax, eax
jne 0x424793
mov dword [ebp - 0xb74], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb50]
call fcn.00409af0
mov eax, dword [ebp - 0xb74]
jmp 0x424be5
push str.CLSID_
push 0x80
lea eax, [ebp - 0x210]
push eax
call fcn.00416416
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0040d420
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 0x42487a
push str.Wow6432NodeCLSID_
push 0x80
lea edx, [ebp - 0x210]
push edx
call fcn.00416416
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040d420
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 0x42487a
mov dword [ebp - 0xb78], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb50]
call fcn.00409af0
mov eax, dword [ebp - 0xb78]
jmp 0x424be5
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 0x424960
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 0x42494d
cmp dword [ebp - 0xb4c], 1
jne 0x42494d
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.00424f00
mov dword [ebp - 0xb64], eax
cmp dword [ebp - 0xb64], 0
jle 0x42494d
mov ecx, dword [ebp - 0xb44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov edx, dword [ebp - 0xb64]
mov dword [ebp - 0xb7c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb50]
call fcn.00409af0
mov eax, dword [ebp - 0xb7c]
jmp 0x424be5
mov eax, dword [ebp - 0xb44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x424bc3
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 0x424a93
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 0x424a85
cmp dword [ebp - 0xb4c], 1
je 0x4249e1
cmp dword [ebp - 0xb4c], 2
jne 0x424a85
cmp dword [ebp - 0xb4c], 2
jne 0x424a22
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 0x424a22
lea eax, [ebp - 0x934]
push eax
push 0x104
lea ecx, [ebp - 0x51c]
push ecx
call fcn.00416416
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.00424c00
mov dword [ebp - 0xb68], eax
cmp dword [ebp - 0xb68], 0
jle 0x424a85
mov edx, dword [ebp - 0xb44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, dword [ebp - 0xb68]
mov dword [ebp - 0xb80], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb50]
call fcn.00409af0
mov eax, dword [ebp - 0xb80]
jmp 0x424be5
mov ecx, dword [ebp - 0xb44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
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 0x424bc3
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 0x424bb5
cmp dword [ebp - 0xb4c], 1
je 0x424b14
cmp dword [ebp - 0xb4c], 2
jne 0x424bb5
cmp dword [ebp - 0xb4c], 2
jne 0x424b55
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 0x424b55
lea ecx, [ebp - 0xb40]
push ecx
push 0x104
lea edx, [ebp - 0x728]
push edx
call fcn.00416416
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.00424c00
mov dword [ebp - 0xb6c], eax
cmp dword [ebp - 0xb6c], 0
jle 0x424bb5
mov eax, dword [ebp - 0xb44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov ecx, dword [ebp - 0xb6c]
mov dword [ebp - 0xb84], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb50]
call fcn.00409af0
mov eax, dword [ebp - 0xb84]
jmp 0x424be5
mov edx, dword [ebp - 0xb44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov dword [ebp - 0xb88], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb50]
call fcn.00409af0
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.0040e737
mov esp, ebp
pop ebp
ret 8