Function at 0x427e50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f8dd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4c6180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x427ecd
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
call fcn.0040a3a0
test eax, eax
je 0x428288
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
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 - 0x18]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x427f10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 1
call fcn.0040a3a0
mov ecx, eax
test ecx, ecx
je 0x428288
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x427eb4
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x427f3b
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.0042b1c0
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x427fc3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
call fcn.0040a3a0
test eax, eax
je 0x4282a6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov dword [ecx], eax
test ebx, ebx
je 0x427fae
sub edi, ebx
mov eax, ebx
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x427fa4
mov ebx, dword [eax - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428283
push edi
push ebx
call fcn.00474a68
add esp, 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x427fcb
xor eax, eax
jmp 0x427fd7
push dword [ebp - 0x18]
push ebx
call fcn.00482f2e
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp eax, ecx
jne 0x428167
test ecx, ecx
jne 0x427ffb
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
jmp 0x427f61
mov byte [ebp - 4], 5
call fcn.0040a3a0
mov ecx, eax
test ecx, ecx
je 0x4282a6
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
test edx, edx
js 0x42829c
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x42804b
push edx
lea ecx, [ebp - 0x1c]
call fcn.004099f0
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp edx, dword [esi - 8]
jg 0x42829c
xor eax, eax
mov dword [esi - 0xc], edx
mov word [esi + edx*2], ax
mov eax, dword [ebp - 0x18]
add eax, eax
cmp dword [esi - 4], 1
mov dword [ebp - 0x20], eax
jle 0x42807c
push dword [esi - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00409bb0
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x428097
test esi, esi
je 0x42810d
push eax
test ebx, ebx
je 0x4280fe
push ebx
push esi
call fcn.004769e0
add esp, 0xc
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x28], eax
lea ecx, [eax + 1]
mov dword [ebp - 0x20], ecx
test ecx, ecx
js 0x42829c
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or edx, eax
jge 0x4280cb
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004099f0
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
xor edx, edx
mov word [esi + eax*2], dx
cmp ecx, dword [esi - 8]
jg 0x42829c
mov dword [esi - 0xc], ecx
xor eax, eax
mov word [esi + ecx*2], ax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov ecx, esi
call fcn.004064d0
add eax, 0x10
jmp 0x428144
push 0
push esi
call fcn.00476f60
add esp, 0xc
test ebx, ebx
jne 0x42811d
call fcn.0047a326
mov dword [eax], 0x16
call fcn.0047a0bf
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 7
call fcn.0040a3a0
mov ecx, eax
test ecx, ecx
je 0x428292
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
add esi, 0xfffffff0
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x427f7d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x427f7d
test eax, eax
jne 0x42817d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 8
jmp 0x427f61
mov byte [ebp - 4], 9
call fcn.0040a3a0
mov ecx, eax
test ecx, ecx
je 0x4282a6
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov edx, dword [ebp - 0x20]
add edx, 1
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x20], edx
js 0x42829c
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4281ce
push edx
lea ecx, [ebp - 0x1c]
call fcn.004099f0
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp edx, dword [esi - 8]
jg 0x42829c
xor eax, eax
mov dword [esi - 0xc], edx
mov word [esi + edx*2], ax
cmp dword [esi - 4], 1
jle 0x4281f7
push dword [esi - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00409bb0
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
push ebx
push edx
push esi
call fcn.004830de
add esp, 0xc
push dword [ebp - 0x10]
test eax, eax
je 0x428227
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0xb
call fcn.0040a3a0
mov ecx, eax
test ecx, ecx
je 0x4282b0
jmp 0x428139
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov ecx, esi
call fcn.004064d0
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov dword [ecx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x428254
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x427fae
sub edi, ebx
mov eax, ebx
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x427fa4
mov ebx, dword [eax - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x427fa4
call fcn.0047a0cf
push 0x80004005
call fcn.00407590
push 0x80004005
call fcn.00407590
push 0x80070057
call fcn.00407590
push 0x80004005
call fcn.00407590
push 0x80004005
call fcn.00407590
int3