Function at 0x4761d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2860
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x58005c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
mov dword [0x591998], 0
mov dword [0x5919a8], 0
mov dword [0x5919ac], 0
mov byte [ebp - 4], 0
xor eax, eax
mov dword [0x5919a8], 0
mov dword [0x5919ac], 7
mov word [0x591998], ax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x476590
cmp dword [ebp - 0x814], 0
je 0x476590
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004821f0
add esp, 0xc
mov dword [ebp - 0x818], 0x800
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push 0x20010002
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x476590
lea esi, [ebp - 0x810]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4762d4
sub esi, ecx
mov ecx, dword [0x5919ac]
sar esi, 1
mov dword [ebp - 0x81c], ecx
cmp esi, ecx
ja 0x476326
cmp ecx, 8
mov dword [0x5919a8], esi
mov edi, 0x591998
lea eax, [ebp - 0x810]
cmovae edi, dword [0x591998]
add esi, esi
push esi
push eax
push edi
call fcn.00481c60
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x47642a
cmp esi, 0x7ffffffe
ja 0x4765c9
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x47634b
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x476385
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x476366
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x476385
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
cmp eax, 0x7fffffff
ja 0x4765d3
add eax, eax
cmp eax, 0x1000
jb 0x4763ac
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4765d3
push ecx
call fcn.0047f873
add esp, 4
test eax, eax
je 0x4765ce
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4763bf
test eax, eax
je 0x4763bd
push eax
call fcn.0047f873
add esp, 4
mov edi, eax
jmp 0x4763bf
xor edi, edi
mov dword [0x5919a8], esi
lea eax, [ebp - 0x810]
add esi, esi
mov dword [0x5919ac], ebx
push esi
push eax
push edi
call fcn.00481c60
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0x81c]
cmp eax, 8
jb 0x476424
mov ecx, dword [0x591998]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47641a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4765ce
push edx
push ecx
call fcn.0047faf4
add esp, 8
mov dword [0x591998], edi
mov ebx, dword [0x5919a8]
test ebx, ebx
je 0x476590
mov ecx, 0x591998
call fcn.00477230
movzx eax, word [eax]
cmp eax, 0x5c
je 0x476590
cmp eax, 0x2f
je 0x476590
mov esi, dword [0x5919ac]
mov dword [ebp - 0x820], esi
cmp ebx, esi
jae 0x476487
lea eax, [ebx + 1]
cmp esi, 8
mov dword [0x5919a8], eax
mov eax, ecx
cmovae eax, dword [0x591998]
mov dword [eax + ebx*2], 0x5c
jmp 0x476590
mov ecx, 0x7ffffffe
mov eax, ecx
sub eax, ebx
cmp eax, 1
jb 0x4765c9
lea edi, [ebx + 1]
or edi, 7
cmp edi, ecx
jbe 0x4764ac
mov edi, ecx
mov eax, 0xfffffffe
jmp 0x4764e0
mov eax, esi
shr eax, 1
sub ecx, eax
cmp esi, ecx
jbe 0x4764c2
mov edi, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x4764e0
add eax, esi
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4765d3
add eax, eax
cmp eax, 0x1000
jb 0x476507
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4765d3
push ecx
call fcn.0047f873
add esp, 4
test eax, eax
je 0x4765ce
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x47651a
test eax, eax
je 0x476518
push eax
call fcn.0047f873
add esp, 4
mov esi, eax
jmp 0x47651a
xor esi, esi
lea eax, [ebx + 1]
mov dword [0x5919ac], edi
lea edi, [ebx + ebx]
mov dword [0x5919a8], eax
mov ebx, dword [ebp - 0x820]
mov dword [ebp - 0x81c], edi
cmp ebx, 8
jb 0x4765b1
push dword [ebp - 0x81c]
mov edi, dword [0x591998]
push edi
push esi
call fcn.00481c60
mov eax, dword [ebp - 0x81c]
lea ebx, [ebx*2 + 2]
add esp, 0xc
mov dword [eax + esi], 0x5c
cmp ebx, 0x1000
jb 0x476580
mov ecx, dword [edi - 4]
add ebx, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4765ce
mov edi, ecx
push ebx
push edi
call fcn.0047faf4
add esp, 8
mov dword [0x591998], esi
mov eax, 0x591998
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047f860
mov esp, ebp
pop ebp
ret
push edi
push 0x591998
push esi
call fcn.00481c60
add esp, 0xc
mov dword [edi + esi], 0x5c
jmp 0x47658a
call fcn.0040160f
call fcn.00488b21
call fcn.00401589
int3