Function at 0xd99326
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x60]
mov eax, 0x19bc
call fcn.00d91910
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
or eax, eax
je 0xd99358
mov eax, dword [ebp - 0x54]
shl eax, 4
add eax, dword [ebp - 0x50]
mov dword [ebp + 0x58], eax
jmp 0xd99360
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]
or eax, eax
jne 0xd99385
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, 0xda22f8
je 0xd993d9
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 0xda09d8
push esi
call fcn.00d92544
add esp, 0x14
push eax
lea eax, [ebp - 0x95c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
jmp 0xd99415
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 0xda0918
push esi
call fcn.00d92544
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.00d9ee2a
add esp, 0xc
cmp dword [ebp + 0x58], 0x60
jb 0xd994a3
cmp dword [ebp + 0x7c], 0
je 0xd994a3
call fcn.00d96cc9
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.00d9ef00
push ebx
push edi
push 0xc
push 0xda090c
push esi
call fcn.00d92544
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.00d9ef1e
add esp, 0x24
lea eax, [ebp - 0x15c]
push eax
push ebx
push edi
push 0x82
push 0xda0888
push esi
call fcn.00d92544
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.00d9ee2a
add esp, 0x18
and dword [ebp + 0x78], 0
call fcn.00d96edd
cmp dword [ebp + 0x58], 0x60
mov dword [ebp + 0x5c], eax
jb 0xd9962f
lea eax, [ebp + 0x50]
push eax
push 0x101
push 0
push ebx
push edi
push 0x3a
push 0xda084c
push esi
mov dword [ebp + 0x4c], 4
mov dword [ebp + 0x44], 5
mov dword [ebp + 0x48], 1
call fcn.00d92544
add esp, 0x14
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0xd99502
mov esi, 0x1000
jmp 0xd9957a
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 0xda0830
push esi
call fcn.00d92544
add esp, 0x14
push eax
push dword [ebp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or eax, eax
je 0xd99539
mov dword [ebp + 0x78], 0x2000
jmp 0xd9956e
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 0xda0818
push esi
call fcn.00d92544
add esp, 0x14
push eax
push dword [ebp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or eax, eax
je 0xd9956e
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 0xd9958a
cmp dword [ebp + 0x48], edi
je 0xd99634
cmp dword [ebp + 0x5c], edi
jle 0xd9967b
cmp dword [ebp + 0x58], 0x61
mov eax, dword [ebp - 0x4c]
jb 0xd9961a
cmp eax, 0x1db0
jb 0xd9961a
push 0x800
lea eax, [ebp - 0x195c]
push eax
lea eax, [ebp - 0x95c]
push eax
call fcn.00d9f0e4
add esp, 0xc
or eax, eax
je 0xd9960c
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x195c]
push eax
call fcn.00d918e0
add esp, 0xc
cmp eax, edi
jne 0xd996a2
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0x5c]
or ecx, 0x55010000
mov dword [0xda2180], ecx
mov dword [0xda217c], edx
je 0xd996a2
or ecx, esi
mov dword [0xda2180], ecx
jmp 0xd996a2
mov dword [0xda217c], edi
or esi, 0x55010107
jmp 0xd99625
mov dword [0xda217c], eax
or esi, 0x55010106
mov dword [0xda2180], esi
sub eax, eax
jmp 0xd996a2
mov esi, dword [ebp + 0x78]
xor edi, edi
cmp dword [ebp + 0x5c], edi
je 0xd9967b
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.00d91820
pop ecx
pop ecx
or eax, eax
jne 0xd9966d
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x54]
or eax, 0x55010000
mov dword [0xda2180], eax
mov dword [0xda217c], ecx
je 0xd9962b
or eax, esi
mov dword [0xda2180], eax
jmp 0xd9962b
lea eax, [ebp - 0x95c]
push eax
push str.runas
jmp 0xd99683
lea eax, [ebp - 0x95c]
push eax
push edi
call fcn.00d991eb
pop ecx
pop ecx
cmp dword [0xda2180], edi
je 0xd99698
or dword [0xda2180], esi
xor ecx, ecx
cmp eax, 0x2a
sete cl
mov eax, ecx
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret