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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5926cd
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0x5eda6c
lea ecx, [ebp - 0x10]
call fcn.00427a20
mov byte [ebp - 4], 1
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [ebp + 8], 0xa
jne 0x45a7a8
lea ecx, [ebp + 0xc]
call fcn.0041e310
movzx eax, al
test eax, eax
je 0x45a7a8
call fcn.0045f310
movzx ecx, al
test ecx, ecx
je 0x45a79b
push 0x5b1fa0
lea ecx, [ebp + 0xc]
call fcn.0041f760
jmp 0x45a7a8
push 0x5b1fa8
lea ecx, [ebp + 0xc]
call fcn.0041f760
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
call fcn.0041d970
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0041d970
mov byte [ebp - 4], 3
push 0x5b1fb0
lea ecx, [ebp - 0x20]
call fcn.0041da30
mov byte [ebp - 4], 4
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x354]
push eax
call fcn.0045f1c0
add esp, 8
mov dword [ebp - 0x388], eax
mov ecx, dword [ebp - 0x388]
mov dword [ebp - 0x38c], ecx
mov byte [ebp - 4], 5
push 2
lea edx, [ebp - 0x358]
push edx
mov ecx, dword [ebp - 0x38c]
call fcn.0045c4b0
mov dword [ebp - 0x390], eax
mov eax, dword [ebp - 0x390]
mov dword [ebp - 0x394], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x394]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.0041df30
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x358]
call fcn.0041dab0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x354]
call fcn.0041dab0
push 0x5b1fec
lea ecx, [ebp - 0x35c]
call fcn.0041da30
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x35c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x360]
push eax
call fcn.0041df30
add esp, 0xc
mov dword [ebp - 0x398], eax
mov ecx, dword [ebp - 0x398]
mov dword [ebp - 0x39c], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x39c]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041dad0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x360]
call fcn.0041dab0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x35c]
call fcn.0041dab0
mov dword [ebp - 0x28], SHChangeNotifyDeregister
lea eax, [ebp - 0x18]
push eax
push 1
push 0
lea ecx, [ebp - 0x14]
call fcn.0041e1e0
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45a983
mov dx, word [0x5b1ffc]
mov word [ebp - 0x12c], dx
push 0xfe
push 0
lea eax, [ebp - 0x12a]
push eax
call fcn.005533a0
add esp, 0xc
mov dword [ebp - 0x134], 0x100
mov dword [ebp - 0x138], 0x100
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x130]
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.0041e1e0
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45a979
lea edx, [ebp - 0x12c]
push edx
push 0x5b2000
lea eax, [ebp - 0x1c]
push eax
call fcn.00423c30
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.0041e2f0
test eax, eax
jle 0x45ae1b
lea ecx, [ebp - 0x1c]
call fcn.0041e310
movzx edx, al
test edx, edx
jne 0x45a9ca
push 0
push str.imageres.dll
lea ecx, [ebp - 0x1c]
call fcn.0041dc30
cmp eax, 0xffffffff
jne 0x45a9ca
push 0
push str.shell32.dll
lea ecx, [ebp - 0x1c]
call fcn.0041dc30
cmp eax, 0xffffffff
je 0x45aa3d
cmp dword [ebp + 8], 5
je 0x45aa3d
mov eax, dword [ebp + 8]
push eax
call fcn.0045f070
add esp, 4
mov dword [ebp - 0x364], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.0041dab0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.0041dab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0041dab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0041dab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00427a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0041dab0
mov eax, dword [ebp - 0x364]
jmp 0x45aedb
push 0
push 0x5b203c
lea ecx, [ebp - 0x1c]
call fcn.0041dc30
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0xffffffff
je 0x45ada1
mov ecx, dword [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x348]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0041de70
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x13c]
add eax, 1
push eax
lea ecx, [ebp - 0x350]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0045c4b0
mov byte [ebp - 4], 0xd
push 0
push 0x5b2040
lea ecx, [ebp - 0x350]
call fcn.0041dc30
cmp eax, 0xffffffff
je 0x45ab22
push 1
lea edx, [ebp - 0x368]
push edx
lea ecx, [ebp - 0x350]
call fcn.0045c4b0
mov dword [ebp - 0x3a0], eax
mov eax, dword [ebp - 0x3a0]
mov dword [ebp - 0x3a4], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x3a4]
push ecx
lea ecx, [ebp - 0x350]
call fcn.0041dad0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x368]
call fcn.0041dab0
lea ecx, [ebp - 0x350]
call fcn.0041e1e0
push eax
call fcn.0055a352
add esp, 4
mov dword [ebp - 0x34c], eax
xor edx, edx
sub edx, dword [ebp - 0x34c]
mov dword [ebp - 0x34c], edx
jmp 0x45ab3c
lea ecx, [ebp - 0x350]
call fcn.0041e1e0
push eax
call fcn.0055a352
add esp, 4
mov dword [ebp - 0x34c], eax
xor eax, eax
mov word [ebp - 0x344], ax
push 0x206
push 0
lea ecx, [ebp - 0x342]
push ecx
call fcn.005533a0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x344]
push edx
lea ecx, [ebp - 0x348]
call fcn.0041e290
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x348]
call fcn.0041e330
push 0
push 0x5b2044
lea ecx, [ebp - 0x348]
call fcn.0041dc30
cmp eax, 0xffffffff
jne 0x45acf1
call fcn.0042eb50
movzx eax, al
test eax, eax
je 0x45ac3c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045f070
add esp, 4
mov dword [ebp - 0x36c], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x350]
call fcn.0041dab0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x348]
call fcn.0041dab0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.0041dab0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.0041dab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0041dab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0041dab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00427a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0041dab0
mov eax, dword [ebp - 0x36c]
jmp 0x45aedb
mov edx, dword [ebp - 0x34c]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x374], esp
lea eax, [ebp - 0x344]
push eax
call fcn.0041d9b0
mov dword [ebp - 0x3a8], eax
call fcn.0045b4e0
add esp, 8
mov dword [ebp - 0x3ac], eax
mov ecx, dword [ebp - 0x3ac]
mov dword [ebp - 0x370], ecx
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x350]
call fcn.0041dab0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x348]
call fcn.0041dab0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.0041dab0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.0041dab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0041dab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0041dab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00427a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0041dab0
mov eax, dword [ebp - 0x370]
jmp 0x45aedb
mov edx, dword [ebp - 0x34c]
push edx
lea eax, [ebp - 0x344]
push eax
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
mov dword [ebp - 0x378], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x350]
call fcn.0041dab0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x348]
call fcn.0041dab0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.0041dab0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.0041dab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0041dab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0041dab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00427a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0041dab0
mov eax, dword [ebp - 0x378]
jmp 0x45aedb
push 0x2010
push 0
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0041e1e0
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x37c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.0041dab0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.0041dab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0041dab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0041dab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00427a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0041dab0
mov eax, dword [ebp - 0x37c]
jmp 0x45aedb
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045f070
add esp, 4
mov dword [ebp - 0x380], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.0041dab0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.0041dab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0041dab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0041dab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00427a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0041dab0
mov eax, dword [ebp - 0x380]
jmp 0x45aedb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0055338c
mov esp, ebp
pop ebp
ret