Function at 0x411450
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
mov eax, edx
mov dword [esp], ecx
mov dword [esp + 4], eax
test eax, eax
je 0x4119aa
cmp word [ecx], 0
je 0x4119aa
push ebx
push ebp
mov bp, word [str._EnforcedRunAsAdmin]
mov ebx, ecx
push esi
mov esi, str._EnforcedRunAsAdmin
push edi
test bp, bp
je 0x4114b3
mov edx, ebx
movzx edi, word [edx]
test di, di
je 0x4114b3
mov ax, word [esi]
or edi, 0x20
or ax, 0x20
add edx, 2
cmp di, ax
je 0x4114aa
mov ebx, edx
mov esi, str._EnforcedRunAsAdmin
jmp 0x4114ad
add esi, 2
cmp word [esi], 0
jne 0x411487
xor eax, eax
cmp word [ebx], ax
cmovne eax, ebx
cmp eax, ecx
jne 0x4114f7
xor edx, edx
mov eax, str._EnforcedRunAsAdmin
test bp, bp
je 0x4114da
nop dword [eax + eax]
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x4114d0
lea ecx, [ecx + edx*2]
test ecx, ecx
je 0x4114f3
movzx eax, word [ecx]
test ax, ax
je 0x4114f3
cmp eax, 0x20
ja 0x4114f3
add ecx, 2
jne 0x4114e1
mov dword [esp + 0x10], ecx
mov bp, word [str._DontWait]
mov ebx, ecx
mov esi, str._DontWait
test bp, bp
je 0x41153c
mov edx, ebx
nop dword [eax]
movzx edi, word [edx]
test di, di
je 0x41153c
mov ax, word [esi]
or edi, 0x20
or ax, 0x20
add edx, 2
cmp di, ax
je 0x411533
mov ebx, edx
mov esi, str._DontWait
jmp 0x411536
add esi, 2
cmp word [esi], 0
jne 0x411510
xor eax, eax
cmp word [ebx], ax
cmovne eax, ebx
cmp eax, ecx
je 0x41154c
mov al, 1
jmp 0x411588
xor edx, edx
mov eax, str._DontWait
test bp, bp
je 0x411562
add eax, 2
inc edx
cmp word [eax], 0
jne 0x411558
lea ecx, [ecx + edx*2]
test ecx, ecx
je 0x411582
nop dword [eax]
movzx eax, word [ecx]
test ax, ax
je 0x411582
cmp eax, 0x20
ja 0x411582
add ecx, 2
jne 0x411570
mov dword [esp + 0x10], ecx
xor al, al
mov edx, dword [esp + 0x14]
mov ebx, ecx
mov esi, str._RunAsAdmin
mov byte [edx + 0x1a], al
lea ebp, [edx + 0x18]
mov di, word [str._RunAsAdmin]
test di, di
je 0x4115da
mov edx, ebx
movzx edi, word [edx]
test di, di
je 0x4115d3
mov ax, word [esi]
or edi, 0x20
or ax, 0x20
add edx, 2
cmp di, ax
je 0x4115ca
mov ebx, edx
mov esi, str._RunAsAdmin
jmp 0x4115cd
add esi, 2
cmp word [esi], 0
jne 0x4115a7
mov di, word [str._RunAsAdmin]
xor eax, eax
cmp word [ebx], ax
cmovne eax, ebx
cmp eax, ecx
je 0x4115f0
test ebp, ebp
je 0x41162f
mov byte [ebp], 0
jmp 0x41162f
xor edx, edx
mov eax, str._RunAsAdmin
test di, di
je 0x41160a
nop dword [eax]
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x411600
lea ecx, [ecx + edx*2]
test ecx, ecx
je 0x411623
movzx eax, word [ecx]
test ax, ax
je 0x411623
cmp eax, 0x20
ja 0x411623
add ecx, 2
jne 0x411611
mov dword [esp + 0x10], ecx
test ebp, ebp
je 0x41162f
mov byte [ebp], 1
mov ebp, dword [esp + 0x14]
mov ebx, ecx
mov di, word [str._HideWindow]
add ebp, 0x19
mov esi, str._HideWindow
test di, di
je 0x411683
mov edx, ebx
nop dword [eax + eax]
movzx edi, word [edx]
test di, di
je 0x41167c
mov ax, word [esi]
or edi, 0x20
or ax, 0x20
add edx, 2
cmp di, ax
je 0x411673
mov ebx, edx
mov esi, str._HideWindow
jmp 0x411676
add esi, 2
cmp word [esi], 0
jne 0x411650
mov di, word [str._HideWindow]
xor eax, eax
cmp word [ebx], ax
cmovne eax, ebx
cmp eax, ecx
je 0x411699
test ebp, ebp
je 0x4116d4
mov byte [ebp], 0
jmp 0x4116d4
xor edx, edx
mov eax, str._HideWindow
test di, di
je 0x4116af
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x4116a5
lea eax, [ecx + edx*2]
test eax, eax
je 0x4116c8
movzx ecx, word [eax]
test cx, cx
je 0x4116c8
cmp ecx, 0x20
ja 0x4116c8
add eax, 2
jne 0x4116b6
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x4116d4
mov byte [ebp], 1
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
call fcn.004111f0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
call fcn.00411300
mov edi, dword [esp + 0x10]
movzx eax, word [edi]
mov edx, eax
cmp eax, 0x22
jne 0x411807
movzx eax, word [edi + 2]
add edi, 2
mov ecx, edi
test ax, ax
je 0x411728
mov edx, eax
cmp dx, 0x22
je 0x41182b
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x411710
xor ecx, ecx
cmp word [0x4598dc], 0
mov edx, 0x4598dc
je 0x411760
mov esi, edi
sub esi, edx
nop dword [eax]
lea eax, [esi + edx]
test eax, eax
je 0x4118ee
mov ax, word [eax]
cmp ax, word [edx]
jne 0x4118ee
add edx, 2
cmp word [edx], 0
jne 0x411740
mov dword [esp + 0x18], 0x800
mov ebp, 0x457670
nop dword [eax]
mov ebx, dword [ebp + 4]
mov ecx, edi
mov esi, dword [ebp]
mov dword [esp + 0x24], esi
movzx eax, word [ebx]
mov esi, eax
mov edx, eax
mov dword [esp + 0x1c], esi
test ax, ax
je 0x4117b4
mov esi, ebx
sub esi, edi
test ecx, ecx
je 0x41184a
cmp word [ecx], dx
jne 0x41184a
movzx eax, word [esi + ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x411790
mov esi, dword [esp + 0x1c]
xor eax, eax
test si, si
je 0x4117ca
nop dword [eax + eax]
lea ebx, [ebx + 2]
inc eax
cmp word [ebx], 0
jne 0x4117c0
mov ebx, dword [esp + 0x24]
lea edi, [edi + eax*2]
add edi, 2
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x4117ea
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x4117e0
lea esi, [edi + ecx*2]
cmp esi, edi
jb 0x4118af
cmp word [esi], 0x5c
je 0x411860
sub esi, 2
cmp esi, edi
jae 0x4117f5
jmp 0x4118af
mov ecx, edi
test dx, dx
je 0x411728
cmp dx, 0x20
je 0x41182b
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x411812
jmp 0x411728
test ecx, ecx
je 0x41172a
cmp word [ecx], 0
je 0x41172a
xor eax, eax
mov word [ecx], ax
add ecx, 2
jmp 0x41172a
add ebp, 8
cmp ebp, 0x4576a0
jne 0x411770
xor ebx, ebx
jmp 0x4117d4
xor eax, eax
mov word [esi], ax
call fcn.00408620
movzx eax, al
lea ecx, [esp + 0x24]
push ecx
shl eax, 8
inc eax
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4118af
lea eax, [esp + 0x18]
push eax
push 0x463810
push 0
push 0
lea eax, [esi + 2]
push eax
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov word [eax*2 + 0x463810], cx
mov ax, word [0x463810]
cmp ax, 0x22
jne 0x411951
mov ax, word [0x463812]
mov edi, 0x463812
mov ecx, edi
test ax, ax
je 0x4118ec
movzx edx, ax
cmp dx, 0x22
je 0x411979
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4118d4
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
cmp word [edx], 0
jne 0x41199d
movzx eax, word [edi]
mov esi, edi
test ax, ax
je 0x411923
mov ebx, eax
nop dword [eax + eax]
mov word [edx], bx
lea esi, [esi + 2]
movzx eax, word [esi]
add edx, 2
mov ebx, eax
test ax, ax
jne 0x411910
xor eax, eax
mov word [edx], ax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
cmp edx, eax
jb 0x41199d
cmp word [edx], 0x5c
je 0x411998
sub edx, 2
cmp edx, eax
jae 0x411933
mov edx, dword [esp + 0x14]
mov dword [edx], edi
pop edi
pop esi
pop ebp
mov dword [edx + 4], ecx
pop ebx
add esp, 0x18
ret
mov edi, 0x463810
mov ecx, edi
test ax, ax
je 0x4118ec
movzx edx, ax
cmp dx, 0x20
je 0x411979
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x411960
jmp 0x4118ec
test ecx, ecx
je 0x4118ee
cmp word [ecx], 0
je 0x4118ee
xor eax, eax
mov word [ecx], ax
add ecx, 2
jmp 0x4118ee
xor eax, eax
mov word [edx], ax
mov edx, dword [esp + 0x14]
mov dword [edx], edi
pop edi
pop esi
pop ebp
mov dword [edx + 4], ecx
pop ebx
add esp, 0x18
ret