Function at 0x420d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48aaf5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4ab0fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x420de6
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00403800
test eax, eax
je 0x42108c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420db0
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004653bf
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x420e51
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004653c8
add esp, 4
jmp 0x420db9
push dword [ebp - 0x14]
push ebx
call fcn.00472dbd
mov ecx, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0x24], eax
cmp eax, ecx
jne 0x420f8c
test ecx, ecx
je 0x420e3a
call fcn.00403800
mov ecx, eax
test ecx, ecx
je 0x42108c
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
test edx, edx
js 0x421082
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x420ebe
push edx
lea ecx, [ebp - 0x18]
call fcn.00402c10
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [esi - 8]
jg 0x421082
xor eax, eax
mov dword [esi - 0xc], edx
mov word [esi + edx*2], ax
cmp dword [esi - 4], 1
jle 0x420ee4
push dword [esi - 0xc]
lea ecx, [ebp - 0x18]
call fcn.00402dd0
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add eax, eax
je 0x420f38
test esi, esi
jne 0x420f2d
call fcn.0046a47d
mov dword [eax], 0x16
call fcn.0046a37f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004653c8
add esp, 4
call fcn.00403800
mov ecx, eax
test ecx, ecx
je 0x421078
mov eax, dword [ecx]
call dword [eax + 0xc]
add esi, 0xfffffff0
jmp 0x42103c
push eax
push ebx
push esi
call fcn.00466cb0
add esp, 0xc
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x24], eax
lea ecx, [eax + 1]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
js 0x421082
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x420f6c
push ecx
lea ecx, [ebp - 0x18]
call fcn.00402c10
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
xor edx, edx
mov word [esi + eax*2], dx
cmp ecx, dword [esi - 8]
jg 0x421082
xor eax, eax
mov dword [esi - 0xc], ecx
mov word [esi + ecx*2], ax
jmp 0x421020
test eax, eax
je 0x420e3a
call fcn.00403800
mov ecx, eax
test ecx, ecx
je 0x42108c
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], edx
js 0x421071
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x420fe4
push edx
lea ecx, [ebp - 0x18]
call fcn.00402c10
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [esi - 8]
jg 0x421071
xor eax, eax
mov dword [esi - 0xc], edx
mov word [esi + edx*2], ax
cmp dword [esi - 4], 1
jle 0x42100d
push dword [esi - 0xc]
lea ecx, [ebp - 0x18]
call fcn.00402dd0
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push ebx
push edx
push esi
call fcn.00472f6d
add esp, 0xc
test eax, eax
jne 0x420eff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004653c8
add esi, 0xfffffff0
add esp, 4
mov ecx, esi
call fcn.00402b20
add eax, 0x10
mov dword [edi], eax
or eax, 0xffffffff
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x420dd2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
jmp 0x42107d
push 0x80004005
call fcn.004035d0
push 0x80070057
call fcn.004035d0
push 0x80004005
call fcn.004035d0
int3