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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040520c
mov eax, dword [ebp - 8]
call fcn.0040520c
xor eax, eax
push ebp
push 0x4b1392
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404d5c
call fcn.004b0f98
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4b1355
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov eax, dword [ebp - 0x14]
call fcn.004359b4
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.00435a18
test al, al
je 0x4b133f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00436108
test al, al
je 0x4b133f
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040521c
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0x10]
dec eax
je 0x4b115a
dec eax
je 0x4b116c
add eax, 0xfffffffe
sub eax, 2
jb 0x4b11c6
dec eax
je 0x4b11dd
jmp 0x4b1215
mov ecx, ebx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00435f88
jmp 0x4b1337
mov ecx, ebx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00435f88
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebx]
call fcn.0040521c
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4b1337
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x415]
push eax
mov eax, dword [ebx]
call fcn.0040521c
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov dword [ebp - 0xc], eax
mov eax, ebx
lea edx, [ebp - 0x415]
call fcn.00404f54
jmp 0x4b1337
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00436000
mov edx, ebx
call fcn.00409c50
jmp 0x4b1337
mov eax, ebx
call fcn.00404d5c
cmp dword [ebp - 0xc], 0xffffffff
jle 0x4b1337
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x415]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00436030
mov eax, ebx
lea edx, [ebp - 0x415]
call fcn.00404f54
jmp 0x4b1337
mov eax, ebx
call fcn.00404d5c
cmp dword [ebp - 0xc], 0xffffffff
jle 0x4b1337
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x415]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00436030
cmp byte [ebp + 0xc], 0
je 0x4b12dc
xor esi, esi
cmp byte [ebp + esi - 0x415], 0
je 0x4b128d
lea eax, [ebp - 0x41c]
push eax
mov al, byte [ebp + esi - 0x415]
mov byte [ebp - 0x424], al
mov byte [ebp - 0x420], 2
lea edx, [ebp - 0x424]
xor ecx, ecx
mov eax, 0x4b13ac
call fcn.0040aff0
mov edx, dword [ebp - 0x41c]
mov eax, ebx
call fcn.00405024
jmp 0x4b12c7
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebx]
call fcn.0040501c
mov edx, eax
mov eax, dword [ebx]
mov ecx, 1
call fcn.0040527c
mov eax, dword [ebp - 0x428]
mov edx, 0x4b13bc
call fcn.00405168
je 0x4b12c7
mov eax, ebx
mov edx, 0x4b13c8
call fcn.00405024
mov eax, dword [ebx]
call fcn.0040501c
mov edx, eax
sub edx, 2
mov eax, ebx
call fcn.004053a8
jmp 0x4b1337
mov edi, dword [ebp - 0xc]
dec edi
test edi, edi
jl 0x4b1326
inc edi
lea esi, [ebp - 0x415]
lea eax, [ebp - 0x42c]
push eax
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0x424], eax
mov byte [ebp - 0x420], 0
lea edx, [ebp - 0x424]
xor ecx, ecx
mov eax, 0x4b13d4
call fcn.0040aff0
mov edx, dword [ebp - 0x42c]
mov eax, ebx
call fcn.00405024
inc esi
dec edi
jne 0x4b12eb
mov eax, dword [ebx]
call fcn.0040501c
mov edx, eax
dec edx
mov eax, ebx
call fcn.004053a8
mov eax, dword [ebp - 0x14]
call fcn.00435984
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b135c
mov eax, dword [ebp - 0x14]
call fcn.00403e4c
ret