Function at 0x423910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493f7d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4b7180]
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 0x423986
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00404e10
test eax, eax
je 0x423cf0
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 0x4239c2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00404e10
mov ecx, eax
test ecx, ecx
je 0x423cf0
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x42396d
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 0x4239e9
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00426d50
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 0x423a6d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00404e10
test eax, eax
je 0x423d0e
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 0x423a58
sub edi, ebx
mov eax, ebx
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x423a4e
mov ebx, dword [eax - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423ceb
push edi
push ebx
call fcn.0046de58
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 0x423a75
xor eax, eax
jmp 0x423a81
push dword [ebp - 0x18]
push ebx
call fcn.0047bec1
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp eax, ecx
jne 0x423bf7
test ecx, ecx
je 0x423a02
call fcn.00404e10
mov ecx, eax
test ecx, ecx
je 0x423d0e
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 0x423d04
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x423ae3
push edx
lea ecx, [ebp - 0x1c]
call fcn.00404450
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp edx, dword [esi - 8]
jg 0x423d04
xor eax, eax
mov dword [esi - 0xc], edx
mov word [esi + edx*2], ax
cmp dword [esi - 4], 1
jle 0x423b09
push dword [esi - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00404610
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add eax, eax
je 0x423b27
test esi, esi
je 0x423b9d
push eax
test ebx, ebx
je 0x423b8e
push ebx
push esi
call fcn.0046fde0
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 0x423d04
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x423b5b
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404450
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 0x423d04
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.00404360
add eax, 0x10
jmp 0x423bd0
push 0
push esi
call fcn.00470360
add esp, 0xc
test ebx, ebx
jne 0x423bad
call fcn.004735bd
mov dword [eax], 0x16
call fcn.004734bf
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00404e10
mov ecx, eax
test ecx, ecx
je 0x423cfa
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 0x423a27
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x423a27
test eax, eax
je 0x423a02
call fcn.00404e10
mov ecx, eax
test ecx, ecx
je 0x423d0e
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 0x423d04
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x423c4c
push edx
lea ecx, [ebp - 0x1c]
call fcn.00404450
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp edx, dword [esi - 8]
jg 0x423d04
xor eax, eax
mov dword [esi - 0xc], edx
mov word [esi + edx*2], ax
cmp dword [esi - 4], 1
jle 0x423c75
push dword [esi - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00404610
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
push ebx
push edx
push esi
call fcn.0047c071
add esp, 0xc
push dword [ebp - 0x10]
test eax, eax
jne 0x423bb0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov ecx, esi
call fcn.00404360
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 0x423cbc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x423a58
sub edi, ebx
mov eax, ebx
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x423a4e
mov ebx, dword [eax - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x423a4e
call fcn.004734cf
push 0x80004005
call fcn.00404bf0
push 0x80004005
call fcn.00404bf0
push 0x80070057
call fcn.00404bf0
push 0x80004005
call fcn.00404bf0
int3