Function at 0x409920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x608ec4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 1
mov dword [ebp - method.CCommandLineInfo.virtual_0], vtable.CRegistryEx.0
call fcn.00431e1a
mov ecx, eax
test ecx, ecx
je 0x409bd7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], VariantClear
mov dword [ebp - 0x414], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.004039d0
add esp, 4
lea esi, [eax + 0x10]
lea eax, [ebp - 0x418]
push eax
push 0xf003f
push 0
push esi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or edi, 0xffffffff
mov dword [ebp - 0x424], eax
add esi, 0xfffffff0
mov dword [ebp - 0x41c], 0
test eax, eax
mov dword [ebp - 0x420], 0
mov eax, edi
je 0x409a4c
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4099f2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.004039d0
add esp, 4
lea esi, [eax + 0x10]
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add esi, 0xfffffff0
mov dword [ebp - 0x424], eax
test eax, eax
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x420], 0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x409a5e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x42c], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.004039d0
add eax, 0x10
lea ecx, [ebp - 0x428]
mov dword [esi], eax
call fcn.00409410
push 0x800
call fcn.0042545e
push 0x800
mov esi, eax
push 0
push esi
call fcn.005720f0
add esp, 0x10
mov dword [ebp - 0x430], 0x800
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x420], ecx
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x41c], ecx
test eax, eax
jne 0x409b02
push ecx
lea eax, [ebp - 0x410]
push eax
push esi
call fcn.00571b70
add esp, 0xc
test esi, esi
jne 0x409b11
push esi
push esi
mov ecx, ebx
call fcn.004036d0
jmp 0x409b31
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409b16
sub ecx, edx
push ecx
push esi
mov ecx, ebx
call fcn.004036d0
push esi
call fcn.00425467
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x418]
mov dword [ebp - method.CCommandLineInfo.virtual_0], vtable.CRegistryEx.0
test eax, eax
je 0x409b5a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x418], 0
mov edx, dword [ebp - 0x414]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409b77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409b95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x409bb4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056ee93
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00403680
int3