Function at 0x89326
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x60]
mov eax, 0x19bc
call fcn.00081910
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x89358
mov eax, dword [ebp - 0x54]
shl eax, 4
add eax, dword [ebp - 0x50]
mov dword [ebp + 0x58], eax
jmp 0x89360
and dword [ebp - 0x4c], 0
and dword [ebp + 0x58], 0
push 0x104
lea eax, [ebp - 0x15c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x89385
mov byte [ebp - 0x15c], al
cmp dword [ebp + 0x78], 0
push ebx
push esi
push edi
push dword [ebp + 0x70]
mov ebx, 0xc8
lea eax, [ebp - 0x15c]
lea edi, [ebx + 0x1c]
mov esi, 0x922f8
je 0x893d9
push eax
push dword [ebp + 0x68]
push dword [ebp + 0x74]
push dword [ebp + 0x70]
push dword [ebp + 0x74]
push dword [ebp + 0x6c]
push ebx
push edi
push 0x4d
push 0x909d8
push esi
call fcn.00082544
add esp, 0x14
push eax
lea eax, [ebp - 0x95c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
jmp 0x89415
push dword [ebp + 0x70]
push eax
push dword [ebp + 0x68]
push dword [ebp + 0x74]
push dword [ebp + 0x70]
push dword [ebp + 0x74]
push dword [ebp + 0x6c]
push dword [ebp + 0x74]
push ebx
push edi
push 0xbd
push 0x90918
push esi
call fcn.00082544
add esp, 0x14
push eax
lea eax, [ebp - 0x95c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x2c
push 0x100
push 0
push esi
mov dword [ebp + 0x78], eax
call fcn.0008ee2a
add esp, 0xc
cmp dword [ebp + 0x58], 0x60
jb 0x894a3
cmp dword [ebp + 0x7c], 0
je 0x894a3
call fcn.00086cc9
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0008ef00
push ebx
push edi
push 0xc
push 0x9090c
push esi
call fcn.00082544
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0008ef1e
add esp, 0x24
lea eax, [ebp - 0x15c]
push eax
push ebx
push edi
push 0x82
push 0x90888
push esi
call fcn.00082544
add esp, 0x14
push eax
mov eax, dword [ebp + 0x78]
lea eax, [ebp + eax - 0x95c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x100
push 0
push esi
call fcn.0008ee2a
add esp, 0x18
and dword [ebp + 0x78], 0
call fcn.00086edd
cmp dword [ebp + 0x58], 0x60
mov dword [ebp + 0x5c], eax
jb 0x8962f
lea eax, [ebp + 0x50]
push eax
push 0x101
push 0
push ebx
push edi
push 0x3a
push 0x9084c
push esi
mov dword [ebp + 0x4c], 4
mov dword [ebp + 0x44], 5
mov dword [ebp + 0x48], 1
call fcn.00082544
add esp, 0x14
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x89502
mov esi, 0x1000
jmp 0x8957a
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x54]
push eax
push 0
push ebx
push edi
push 0x1b
push 0x90830
push esi
call fcn.00082544
add esp, 0x14
push eax
push dword [ebp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x89539
mov dword [ebp + 0x78], 0x2000
jmp 0x8956e
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x54]
push eax
push 0
push ebx
push edi
push 0x16
push 0x90818
push esi
call fcn.00082544
add esp, 0x14
push eax
push dword [ebp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x8956e
mov dword [ebp + 0x78], 0x3000
push dword [ebp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x78]
xor edi, edi
cmp dword [ebp + 0x44], edi
jne 0x8958a
cmp dword [ebp + 0x48], edi
je 0x89634
cmp dword [ebp + 0x5c], edi
jle 0x8967b
cmp dword [ebp + 0x58], 0x61
mov eax, dword [ebp - 0x4c]
jb 0x8961a
cmp eax, 0x1db0
jb 0x8961a
push 0x800
lea eax, [ebp - 0x195c]
push eax
lea eax, [ebp - 0x95c]
push eax
call fcn.0008f0e4
add esp, 0xc
test eax, eax
je 0x8960c
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x195c]
push eax
call fcn.000818e0
add esp, 0xc
cmp eax, edi
jne 0x896a2
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0x5c]
or ecx, 0x55020000
mov dword [0x92180], ecx
mov dword [0x9217c], edx
je 0x896a2
or ecx, esi
mov dword [0x92180], ecx
jmp 0x896a2
mov dword [0x9217c], edi
or esi, 0x55020107
jmp 0x89625
mov dword [0x9217c], eax
or esi, 0x55020106
mov dword [0x92180], esi
xor eax, eax
jmp 0x896a2
mov esi, dword [ebp + 0x78]
xor edi, edi
cmp dword [ebp + 0x5c], edi
je 0x8967b
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.00081820
pop ecx
pop ecx
test eax, eax
jne 0x8966d
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x54]
or eax, 0x55020000
mov dword [0x92180], eax
mov dword [0x9217c], ecx
je 0x8962b
or eax, esi
mov dword [0x92180], eax
jmp 0x8962b
lea eax, [ebp - 0x95c]
push eax
push str.runas
jmp 0x89683
lea eax, [ebp - 0x95c]
push eax
push edi
call fcn.000891eb
pop ecx
pop ecx
cmp dword [0x92180], edi
je 0x89698
or dword [0x92180], esi
xor ecx, ecx
cmp eax, 0x2a
sete cl
mov eax, ecx
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret