Function at 0x423ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b3dd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4c0180]
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 0x423f36
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00405150
test eax, eax
je 0x4242a0
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 0x423f72
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00405150
mov ecx, eax
test ecx, ecx
je 0x4242a0
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x423f1d
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], edi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x423f99
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00427330
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 0x42401d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00405150
test eax, eax
je 0x4242be
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 0x424008
sub edi, ebx
mov eax, ebx
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x423ffe
mov ebx, dword [eax - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42429b
push edi
push ebx
call fcn.00470c18
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 0x424025
xor eax, eax
jmp 0x424031
push dword [ebp - 0x18]
push ebx
call fcn.0047efa8
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp eax, ecx
jne 0x4241a7
test ecx, ecx
je 0x423fb2
call fcn.00405150
mov ecx, eax
test ecx, ecx
je 0x4242be
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
test edx, edx
js 0x4242b4
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x424093
push edx
lea ecx, [ebp - 0x1c]
call fcn.00404790
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp edx, dword [esi - 8]
jg 0x4242b4
xor eax, eax
mov dword [esi - 0xc], edx
mov word [esi + edx*2], ax
cmp dword [esi - 4], 1
jle 0x4240b9
push dword [esi - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00404950
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add eax, eax
je 0x4240d7
test esi, esi
je 0x42414d
push eax
test ebx, ebx
je 0x42413e
push ebx
push esi
call fcn.00472b90
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 0x4242b4
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x42410b
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404790
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 0x4242b4
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.004046a0
add eax, 0x10
jmp 0x424180
push 0
push esi
call fcn.00473110
add esp, 0xc
test ebx, ebx
jne 0x42415d
call fcn.0047636d
mov dword [eax], 0x16
call fcn.0047626f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00405150
mov ecx, eax
test ecx, ecx
je 0x4242aa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
add esi, 0xfffffff0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov dword [ecx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x423fd7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x423fd7
test eax, eax
je 0x423fb2
call fcn.00405150
mov ecx, eax
test ecx, ecx
je 0x4242be
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], 2
mov dword [ebp - 0x20], edx
js 0x4242b4
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4241fc
push edx
lea ecx, [ebp - 0x1c]
call fcn.00404790
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp edx, dword [esi - 8]
jg 0x4242b4
xor eax, eax
mov dword [esi - 0xc], edx
mov word [esi + edx*2], ax
cmp dword [esi - 4], 1
jle 0x424225
push dword [esi - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00404950
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
push ebx
push edx
push esi
call fcn.0047f158
add esp, 0xc
push dword [ebp - 0x10]
test eax, eax
jne 0x424160
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov ecx, esi
call fcn.004046a0
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov byte [ebp - 4], 0
mov dword [ecx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42426c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x424008
sub edi, ebx
mov eax, ebx
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x423ffe
mov ebx, dword [eax - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x423ffe
call fcn.0047627f
push 0x80004005
call fcn.00404f30
push 0x80004005
call fcn.00404f30
push 0x80070057
call fcn.00404f30
push 0x80004005
call fcn.00404f30
int3