Function at 0x99326
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x60]
mov eax, 0x19bc
call fcn.00091910
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x99358
mov eax, dword [ebp - 0x54]
shl eax, 4
add eax, dword [ebp - 0x50]
mov dword [ebp + 0x58], eax
jmp 0x99360
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 0x99385
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, 0xa22f8
je 0x993d9
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 0xa09d8
push esi
call fcn.00092544
add esp, 0x14
push eax
lea eax, [ebp - 0x95c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
jmp 0x99415
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 0xa0918
push esi
call fcn.00092544
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.0009ee2a
add esp, 0xc
cmp dword [ebp + 0x58], 0x60
jb 0x994a3
cmp dword [ebp + 0x7c], 0
je 0x994a3
call fcn.00096cc9
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0009ef00
push ebx
push edi
push 0xc
push 0xa090c
push esi
call fcn.00092544
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0009ef1e
add esp, 0x24
lea eax, [ebp - 0x15c]
push eax
push ebx
push edi
push 0x82
push 0xa0888
push esi
call fcn.00092544
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.0009ee2a
add esp, 0x18
and dword [ebp + 0x78], 0
call fcn.00096edd
cmp dword [ebp + 0x58], 0x60
mov dword [ebp + 0x5c], eax
jb 0x9962f
lea eax, [ebp + 0x50]
push eax
push 0x101
push 0
push ebx
push edi
push 0x3a
push 0xa084c
push esi
mov dword [ebp + 0x4c], 4
mov dword [ebp + 0x44], 5
mov dword [ebp + 0x48], 1
call fcn.00092544
add esp, 0x14
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x99502
mov esi, 0x1000
jmp 0x9957a
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 0xa0830
push esi
call fcn.00092544
add esp, 0x14
push eax
push dword [ebp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x99539
mov dword [ebp + 0x78], 0x2000
jmp 0x9956e
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 0xa0818
push esi
call fcn.00092544
add esp, 0x14
push eax
push dword [ebp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x9956e
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 0x9958a
cmp dword [ebp + 0x48], edi
je 0x99634
cmp dword [ebp + 0x5c], edi
jle 0x9967b
cmp dword [ebp + 0x58], 0x61
mov eax, dword [ebp - 0x4c]
jb 0x9961a
cmp eax, 0x1db0
jb 0x9961a
push 0x800
lea eax, [ebp - 0x195c]
push eax
lea eax, [ebp - 0x95c]
push eax
call fcn.0009f0e4
add esp, 0xc
test eax, eax
je 0x9960c
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x195c]
push eax
call fcn.000918e0
add esp, 0xc
cmp eax, edi
jne 0x996a2
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0x5c]
or ecx, 0x5e040000
mov dword [0xa2180], ecx
mov dword [0xa217c], edx
je 0x996a2
or ecx, esi
mov dword [0xa2180], ecx
jmp 0x996a2
mov dword [0xa217c], edi
or esi, 0x5e040107
jmp 0x99625
mov dword [0xa217c], eax
or esi, 0x5e040106
mov dword [0xa2180], esi
xor eax, eax
jmp 0x996a2
mov esi, dword [ebp + 0x78]
xor edi, edi
cmp dword [ebp + 0x5c], edi
je 0x9967b
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.00091820
pop ecx
pop ecx
test eax, eax
jne 0x9966d
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x54]
or eax, 0x5e040000
mov dword [0xa2180], eax
mov dword [0xa217c], ecx
je 0x9962b
or eax, esi
mov dword [0xa2180], eax
jmp 0x9962b
lea eax, [ebp - 0x95c]
push eax
push str.runas
jmp 0x99683
lea eax, [ebp - 0x95c]
push eax
push edi
call fcn.000991eb
pop ecx
pop ecx
cmp dword [0xa2180], edi
je 0x99698
or dword [0xa2180], esi
xor ecx, ecx
cmp eax, 0x2a
sete cl
mov eax, ecx
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret