Function at 0x420790
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x46ab66
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov eax, dword [esp + 0x148]
mov ebx, dword [esp + 0x144]
mov esi, dword [esp + 0x150]
push 0x104
mov edi, ecx
mov ecx, dword [esp + 0x150]
lea edx, [esp + 0x2c]
push 0
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
call fcn.00451390
add esp, 0xc
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42081f
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x138], 0
mov dword [esp + 0x24], 0x104
test esi, esi
jne 0x42084a
xor eax, eax
jmp 0x420859
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420850
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401b90
test ebx, ebx
jne 0x420886
mov eax, dword [esp + 0x14]
or ebp, 0xffffffff
add eax, 0xfffffff0
mov dword [esp + 0x138], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
jmp 0x420a51
mov esi, dword [esp + 0x140]
mov ecx, str.Create
mov eax, esi
mov dl, byte [eax]
or ebp, 0xffffffff
cmp dl, byte [ecx]
jne 0x4208b7
test dl, dl
je 0x4208b3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4208b7
add eax, 2
add ecx, 2
test dl, dl
jne 0x420894
xor eax, eax
jmp 0x4208bb
sbb eax, eax
sbb eax, ebp
test eax, eax
jne 0x42096c
push ebx
mov ecx, edi
call fcn.004205b0
test eax, eax
jne 0x4208ea
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x138], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
jmp 0x420a51
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [esp + 0x14]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x420921
push edi
lea ecx, [esp + 0x18]
call fcn.004017a0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x138], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x420962
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x420a61
mov ecx, 0x46eb2c
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x420993
test dl, dl
je 0x42098f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x420993
add eax, 2
add ecx, 2
test dl, dl
jne 0x420973
xor eax, eax
jmp 0x420997
sbb eax, eax
sbb eax, ebp
test eax, eax
jne 0x420a3b
push ebx
mov ecx, edi
call fcn.004205b0
test eax, eax
jne 0x4209b9
lea ecx, [esp + 0x14]
call fcn.004018a0
jmp 0x420a5f
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.00401850
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 1
call fcn.004021c0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call fcn.00401e60
lea ecx, [esp + 0x18]
call fcn.004018a0
lea ecx, [esp + 0x14]
call fcn.004018a0
mov eax, 1
jmp 0x420a61
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x138], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x420a5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004517f0
add esp, 0x128
ret 0x14