Function at 0x410e90
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 0x4113ea
cmp word [ecx], 0
je 0x4113ea
push ebx
push ebp
mov bp, word [str._EnforcedRunAsAdmin]
mov ebx, ecx
push esi
mov esi, str._EnforcedRunAsAdmin
push edi
test bp, bp
je 0x410ef3
mov edx, ebx
movzx edi, word [edx]
test di, di
je 0x410ef3
mov ax, word [esi]
or edi, 0x20
or ax, 0x20
add edx, 2
cmp di, ax
je 0x410eea
mov ebx, edx
mov esi, str._EnforcedRunAsAdmin
jmp 0x410eed
add esi, 2
cmp word [esi], 0
jne 0x410ec7
xor eax, eax
cmp word [ebx], ax
cmovne eax, ebx
cmp eax, ecx
jne 0x410f37
xor edx, edx
mov eax, str._EnforcedRunAsAdmin
test bp, bp
je 0x410f1a
nop dword [eax + eax]
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x410f10
lea ecx, [ecx + edx*2]
test ecx, ecx
je 0x410f33
movzx eax, word [ecx]
test ax, ax
je 0x410f33
cmp eax, 0x20
ja 0x410f33
add ecx, 2
jne 0x410f21
mov dword [esp + 0x10], ecx
mov bp, word [str._DontWait]
mov ebx, ecx
mov esi, str._DontWait
test bp, bp
je 0x410f7c
mov edx, ebx
nop dword [eax]
movzx edi, word [edx]
test di, di
je 0x410f7c
mov ax, word [esi]
or edi, 0x20
or ax, 0x20
add edx, 2
cmp di, ax
je 0x410f73
mov ebx, edx
mov esi, str._DontWait
jmp 0x410f76
add esi, 2
cmp word [esi], 0
jne 0x410f50
xor eax, eax
cmp word [ebx], ax
cmovne eax, ebx
cmp eax, ecx
je 0x410f8c
mov al, 1
jmp 0x410fc8
xor edx, edx
mov eax, str._DontWait
test bp, bp
je 0x410fa2
add eax, 2
inc edx
cmp word [eax], 0
jne 0x410f98
lea ecx, [ecx + edx*2]
test ecx, ecx
je 0x410fc2
nop dword [eax]
movzx eax, word [ecx]
test ax, ax
je 0x410fc2
cmp eax, 0x20
ja 0x410fc2
add ecx, 2
jne 0x410fb0
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 0x41101a
mov edx, ebx
movzx edi, word [edx]
test di, di
je 0x411013
mov ax, word [esi]
or edi, 0x20
or ax, 0x20
add edx, 2
cmp di, ax
je 0x41100a
mov ebx, edx
mov esi, str._RunAsAdmin
jmp 0x41100d
add esi, 2
cmp word [esi], 0
jne 0x410fe7
mov di, word [str._RunAsAdmin]
xor eax, eax
cmp word [ebx], ax
cmovne eax, ebx
cmp eax, ecx
je 0x411030
test ebp, ebp
je 0x41106f
mov byte [ebp], 0
jmp 0x41106f
xor edx, edx
mov eax, str._RunAsAdmin
test di, di
je 0x41104a
nop dword [eax]
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x411040
lea ecx, [ecx + edx*2]
test ecx, ecx
je 0x411063
movzx eax, word [ecx]
test ax, ax
je 0x411063
cmp eax, 0x20
ja 0x411063
add ecx, 2
jne 0x411051
mov dword [esp + 0x10], ecx
test ebp, ebp
je 0x41106f
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 0x4110c3
mov edx, ebx
nop dword [eax + eax]
movzx edi, word [edx]
test di, di
je 0x4110bc
mov ax, word [esi]
or edi, 0x20
or ax, 0x20
add edx, 2
cmp di, ax
je 0x4110b3
mov ebx, edx
mov esi, str._HideWindow
jmp 0x4110b6
add esi, 2
cmp word [esi], 0
jne 0x411090
mov di, word [str._HideWindow]
xor eax, eax
cmp word [ebx], ax
cmovne eax, ebx
cmp eax, ecx
je 0x4110d9
test ebp, ebp
je 0x411114
mov byte [ebp], 0
jmp 0x411114
xor edx, edx
mov eax, str._HideWindow
test di, di
je 0x4110ef
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x4110e5
lea eax, [ecx + edx*2]
test eax, eax
je 0x411108
movzx ecx, word [eax]
test cx, cx
je 0x411108
cmp ecx, 0x20
ja 0x411108
add eax, 2
jne 0x4110f6
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x411114
mov byte [ebp], 1
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
call fcn.00410c30
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
call fcn.00410d40
mov edi, dword [esp + 0x10]
movzx eax, word [edi]
mov edx, eax
cmp eax, 0x22
jne 0x411247
movzx eax, word [edi + 2]
add edi, 2
mov ecx, edi
test ax, ax
je 0x411168
mov edx, eax
cmp dx, 0x22
je 0x41126b
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x411150
xor ecx, ecx
cmp word [0x457ebc], 0
mov edx, 0x457ebc
je 0x4111a0
mov esi, edi
sub esi, edx
nop dword [eax]
lea eax, [esi + edx]
test eax, eax
je 0x41132e
mov ax, word [eax]
cmp ax, word [edx]
jne 0x41132e
add edx, 2
cmp word [edx], 0
jne 0x411180
mov dword [esp + 0x18], 0x800
mov ebp, 0x455c50
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 edx, eax
mov dword [esp + 0x1c], edx
test ax, ax
je 0x4111f5
mov esi, ebx
movzx edx, dx
sub esi, edi
test ecx, ecx
je 0x41128a
cmp word [ecx], dx
jne 0x41128a
movzx eax, word [esi + ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4111d1
mov edx, dword [esp + 0x1c]
xor eax, eax
test dx, dx
je 0x41120a
nop dword [eax]
lea ebx, [ebx + 2]
inc eax
cmp word [ebx], 0
jne 0x411200
mov ebx, dword [esp + 0x24]
lea edi, [edi + eax*2]
add edi, 2
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x41122a
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x411220
lea esi, [edi + ecx*2]
cmp esi, edi
jb 0x4112ef
cmp word [esi], 0x5c
je 0x4112a0
sub esi, 2
cmp esi, edi
jae 0x411235
jmp 0x4112ef
mov ecx, edi
test dx, dx
je 0x411168
cmp dx, 0x20
je 0x41126b
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x411252
jmp 0x411168
test ecx, ecx
je 0x41116a
cmp word [ecx], 0
je 0x41116a
xor eax, eax
mov word [ecx], ax
add ecx, 2
jmp 0x41116a
add ebp, 8
cmp ebp, 0x455c80
jne 0x4111b0
xor ebx, ebx
jmp 0x411214
xor eax, eax
mov word [esi], ax
call fcn.00408360
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 0x4112ef
lea eax, [esp + 0x18]
push eax
push 0x4617a0
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 + 0x4617a0], cx
mov ax, word [0x4617a0]
cmp ax, 0x22
jne 0x411391
mov ax, word [0x4617a2]
mov edi, 0x4617a2
mov ecx, edi
test ax, ax
je 0x41132c
movzx edx, ax
cmp dx, 0x22
je 0x4113b9
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x411314
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
cmp word [edx], 0
jne 0x4113dd
movzx eax, word [edi]
mov esi, edi
test ax, ax
je 0x411363
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 0x411350
xor eax, eax
mov word [edx], ax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
cmp edx, eax
jb 0x4113dd
cmp word [edx], 0x5c
je 0x4113d8
sub edx, 2
cmp edx, eax
jae 0x411373
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, 0x4617a0
mov ecx, edi
test ax, ax
je 0x41132c
movzx edx, ax
cmp dx, 0x20
je 0x4113b9
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4113a0
jmp 0x41132c
test ecx, ecx
je 0x41132e
cmp word [ecx], 0
je 0x41132e
xor eax, eax
mov word [ecx], ax
add ecx, 2
jmp 0x41132e
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