Function at 0x409326
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x60]
mov eax, 0x19bc
call fcn.00401910
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x409358
mov eax, dword [ebp - 0x54]
shl eax, 4
add eax, dword [ebp - 0x50]
mov dword [ebp + 0x58], eax
jmp 0x409360
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 0x409385
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, 0x4122f8
je 0x4093d9
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 0x4109d8
push esi
call fcn.00402544
add esp, 0x14
push eax
lea eax, [ebp - 0x95c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
jmp 0x409415
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 0x410918
push esi
call fcn.00402544
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.0040ee2a
add esp, 0xc
cmp dword [ebp + 0x58], 0x60
jb 0x4094a3
cmp dword [ebp + 0x7c], 0
je 0x4094a3
call fcn.00406cc9
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0040ef00
push ebx
push edi
push 0xc
push 0x41090c
push esi
call fcn.00402544
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0040ef1e
add esp, 0x24
lea eax, [ebp - 0x15c]
push eax
push ebx
push edi
push 0x82
push 0x410888
push esi
call fcn.00402544
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.0040ee2a
add esp, 0x18
and dword [ebp + 0x78], 0
call fcn.00406edd
cmp dword [ebp + 0x58], 0x60
mov dword [ebp + 0x5c], eax
jb 0x40962f
lea eax, [ebp + 0x50]
push eax
push 0x101
push 0
push ebx
push edi
push 0x3a
push 0x41084c
push esi
mov dword [ebp + 0x4c], 4
mov dword [ebp + 0x44], 5
mov dword [ebp + 0x48], 1
call fcn.00402544
add esp, 0x14
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409502
mov esi, 0x1000
jmp 0x40957a
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 0x410830
push esi
call fcn.00402544
add esp, 0x14
push eax
push dword [ebp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409539
mov dword [ebp + 0x78], 0x2000
jmp 0x40956e
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 0x410818
push esi
call fcn.00402544
add esp, 0x14
push eax
push dword [ebp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40956e
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 0x40958a
cmp dword [ebp + 0x48], edi
je 0x409634
cmp dword [ebp + 0x5c], edi
jle 0x40967b
cmp dword [ebp + 0x58], 0x61
mov eax, dword [ebp - 0x4c]
jb 0x40961a
cmp eax, 0x1db0
jb 0x40961a
push 0x800
lea eax, [ebp - 0x195c]
push eax
lea eax, [ebp - 0x95c]
push eax
call fcn.0040f0e4
add esp, 0xc
test eax, eax
je 0x40960c
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x195c]
push eax
call fcn.004018e0
add esp, 0xc
cmp eax, edi
jne 0x4096a2
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0x5c]
or ecx, 0x5e040000
mov dword [0x412180], ecx
mov dword [0x41217c], edx
je 0x4096a2
or ecx, esi
mov dword [0x412180], ecx
jmp 0x4096a2
mov dword [0x41217c], edi
or esi, 0x5e040107
jmp 0x409625
mov dword [0x41217c], eax
or esi, 0x5e040106
mov dword [0x412180], esi
xor eax, eax
jmp 0x4096a2
mov esi, dword [ebp + 0x78]
xor edi, edi
cmp dword [ebp + 0x5c], edi
je 0x40967b
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.00401820
pop ecx
pop ecx
test eax, eax
jne 0x40966d
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x54]
or eax, 0x5e040000
mov dword [0x412180], eax
mov dword [0x41217c], ecx
je 0x40962b
or eax, esi
mov dword [0x412180], eax
jmp 0x40962b
lea eax, [ebp - 0x95c]
push eax
push str.runas
jmp 0x409683
lea eax, [ebp - 0x95c]
push eax
push edi
call fcn.004091eb
pop ecx
pop ecx
cmp dword [0x412180], edi
je 0x409698
or dword [0x412180], esi
xor ecx, ecx
cmp eax, 0x2a
sete cl
mov eax, ecx
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret