Function at 0x40933e
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 0x409370
mov eax, dword [ebp - 0x54]
shl eax, 4
add eax, dword [ebp - 0x50]
mov dword [ebp + 0x58], eax
jmp 0x409378
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 0x40939d
mov byte [ebp - 0x15c], al
cmp dword [ebp + 0x78], 0
push ebx
push esi
push edi
push dword [ebp + 0x70]
mov ebx, 0xb7
lea eax, [ebp - 0x15c]
lea edi, [ebx - 0xe]
mov esi, 0x412390
je 0x4093f1
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 0x4109e8
push esi
call fcn.0040254d
add esp, 0x14
push eax
lea eax, [ebp - 0x95c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
jmp 0x40942d
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 0xbc
push 0x410928
push esi
call fcn.0040254d
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.0040ee85
add esp, 0xc
cmp dword [ebp + 0x58], 0x60
jb 0x4094bb
cmp dword [ebp + 0x7c], 0
je 0x4094bb
call fcn.00406d3a
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0040ef5b
push ebx
push edi
push 0xc
push 0x41091c
push esi
call fcn.0040254d
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0040ef79
add esp, 0x24
lea eax, [ebp - 0x15c]
push eax
push ebx
push edi
push 0x82
push 0x410898
push esi
call fcn.0040254d
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.0040ee85
add esp, 0x18
and dword [ebp + 0x78], 0
call fcn.00406f4e
cmp dword [ebp + 0x58], 0x60
mov dword [ebp + 0x5c], eax
jb 0x409647
lea eax, [ebp + 0x50]
push eax
push 0x101
push 0
push ebx
push edi
push 0x3a
push 0x41085c
push esi
mov dword [ebp + 0x4c], 4
mov dword [ebp + 0x44], 5
mov dword [ebp + 0x48], 1
call fcn.0040254d
add esp, 0x14
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40951a
mov esi, 0x1000
jmp 0x409592
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 0x410840
push esi
call fcn.0040254d
add esp, 0x14
push eax
push dword [ebp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409551
mov dword [ebp + 0x78], 0x2000
jmp 0x409586
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 0x410828
push esi
call fcn.0040254d
add esp, 0x14
push eax
push dword [ebp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409586
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 0x4095a2
cmp dword [ebp + 0x48], edi
je 0x40964c
cmp dword [ebp + 0x5c], edi
jle 0x409693
cmp dword [ebp + 0x58], 0x61
mov eax, dword [ebp - 0x4c]
jb 0x409632
cmp eax, 0x1db0
jb 0x409632
push 0x800
lea eax, [ebp - 0x195c]
push eax
lea eax, [ebp - 0x95c]
push eax
call fcn.0040f13f
add esp, 0xc
test eax, eax
je 0x409624
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 0x4096ba
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0x5c]
or ecx, 0x54080000
mov dword [0x412218], ecx
mov dword [0x412214], edx
je 0x4096ba
or ecx, esi
mov dword [0x412218], ecx
jmp 0x4096ba
mov dword [0x412214], edi
or esi, 0x54080107
jmp 0x40963d
mov dword [0x412214], eax
or esi, 0x54080106
mov dword [0x412218], esi
xor eax, eax
jmp 0x4096ba
mov esi, dword [ebp + 0x78]
xor edi, edi
cmp dword [ebp + 0x5c], edi
je 0x409693
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.00401820
pop ecx
pop ecx
test eax, eax
jne 0x409685
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x54]
or eax, 0x54080000
mov dword [0x412218], eax
mov dword [0x412214], ecx
je 0x409643
or eax, esi
mov dword [0x412218], eax
jmp 0x409643
lea eax, [ebp - 0x95c]
push eax
push str.runas
jmp 0x40969b
lea eax, [ebp - 0x95c]
push eax
push edi
call fcn.00409203
pop ecx
pop ecx
cmp dword [0x412218], edi
je 0x4096b0
or dword [0x412218], esi
xor ecx, ecx
cmp eax, 0x2a
sete cl
mov eax, ecx
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret