Function at 0x4a5669
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], 1
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x2c], esi
push eax
push esi
push 0x10
push 0x417ccc
push 0x417c78
mov edi, ecx
mov dword [ebp - 0x28], esi
push 0x80000001
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
test ebx, ebx
je 0x4a5724
cmp ebx, 2
je 0x4a5724
mov eax, dword [section..data]
mov edi, 0x80070000
cmp eax, section..data
je 0x4a5712
test byte [eax + 0x1c], 8
je 0x4a5712
cmp byte [eax + 0x19], 2
jb 0x4a5712
test ebx, ebx
jg 0x4a56ee
mov esi, ebx
jmp 0x4a56f3
movzx esi, bx
or esi, edi
call fcn.0042386b
push esi
push eax
mov eax, dword [section..data]
mov edx, 0x417cf0
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x4c
pop ecx
call fcn.00421fda
test ebx, ebx
jle 0x4a5ae6
movzx ebx, bx
or ebx, edi
jmp 0x4a5ae6
push edi
push dword [edi + 0x6c]
xor eax, eax
cmp dword [ebp - 4], eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0xcf0000
push 0x407cfc
push 0x417c40
setne al
push esi
mov dword [edi + 0x98], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi + 0x44], eax
test eax, eax
jne 0x4a579e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x4a5ad0
test byte [eax + 0x1c], 8
je 0x4a5ad0
cmp byte [eax + 0x19], 2
jb 0x4a5ad0
call fcn.0042386b
push ebx
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x4d
jmp 0x4a5ac5
push esi
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov esi, eax
test esi, esi
jne 0x4a57f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x4a5ad0
test byte [eax + 0x1c], 8
je 0x4a5ad0
cmp byte [eax + 0x19], 2
jb 0x4a5ad0
call fcn.0042386b
push ebx
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x4e
jmp 0x4a5ac5
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ebx, eax
cmp ebx, 1
jge 0x4a5844
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x4a5ad0
test byte [eax + 0x1c], 8
je 0x4a5ad0
cmp byte [eax + 0x19], 2
jb 0x4a5ad0
call fcn.0042386b
push ebx
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x4f
jmp 0x4a5ac5
push 0
lea eax, [ebp - 8]
push eax
push 0xbc9
push dword [edi + 0x70]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x4a58a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x4a5ad0
test byte [eax + 0x1c], 8
je 0x4a5ad0
cmp byte [eax + 0x19], 2
jb 0x4a5ad0
call fcn.0042386b
push ebx
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x50
jmp 0x4a5ac5
xor ecx, ecx
mov dword [ebp - 0x40], 0x30
mov dword [ebp - 0x3c], 0x43
mov dword [ebp - 0x34], ecx
cmp dword [edi + 0x98], ecx
je 0x4a58c3
mov dword [ebp - 0x34], 8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x40]
push eax
push 1
lea eax, [ebx - 1]
mov dword [ebp - 0x38], ecx
push eax
push esi
mov dword [ebp - 0x30], 0x10
call dword [sym.imp.USER32.dll_InsertMenuItemW]
test eax, eax
jne 0x4a592d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x4a5ad0
test byte [eax + 0x1c], 8
je 0x4a5ad0
cmp byte [eax + 0x19], 2
jb 0x4a5ad0
call fcn.0042386b
push ebx
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x51
jmp 0x4a5ac5
push 0x65
push dword [edi + 0x6c]
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
jne 0x4a5981
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x4a5ad0
test byte [eax + 0x1c], 8
je 0x4a5ad0
cmp byte [eax + 0x19], 2
jb 0x4a5ad0
call fcn.0042386b
push ebx
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x52
jmp 0x4a5ac5
push eax
push 1
push 0x80
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x34
call fcn.004fb25b
mov esi, eax
pop ecx
test esi, esi
je 0x4a59c0
push 0x19a
push dword [edi + 0x6c]
xor ebx, ebx
mov ecx, esi
push ebx
call fcn.0049d0ae
mov dword [esi], 0x402934
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
jmp 0x4a59c2
xor esi, esi
mov dword [edi + 0x30], esi
test esi, esi
jne 0x4a5a16
mov eax, dword [section..data]
mov ebx, 0x8007000e
cmp eax, section..data
je 0x4a5ae6
test byte [eax + 0x1c], 8
je 0x4a5ae6
cmp byte [eax + 0x19], 2
jb 0x4a5ae6
call fcn.0042386b
push ebx
push eax
mov eax, dword [section..data]
mov edx, 0x417cf0
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x53
pop ecx
call fcn.00421fda
jmp 0x4a5ae6
push dword [edi + 0x74]
mov ecx, esi
push dword [edi + 0x44]
call fcn.004a9a1d
mov ebx, eax
test ebx, ebx
jns 0x4a5a73
mov eax, dword [section..data]
cmp eax, section..data
je 0x4a5ae6
test byte [eax + 0x1c], 8
je 0x4a5ae6
cmp byte [eax + 0x19], 2
jb 0x4a5ae6
call fcn.0042386b
push ebx
push 0x417750
push eax
mov eax, dword [section..data]
mov edx, 0x417cf0
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x54
pop ecx
call fcn.0042371b
jmp 0x4a5ae6
mov edi, dword [edi + 0x30]
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5035f0]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], eax
test eax, eax
jne 0x4a5ae6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x4a5ad0
test byte [eax + 0x1c], 8
je 0x4a5ad0
cmp byte [eax + 0x19], 2
jb 0x4a5ad0
call fcn.0042386b
push ebx
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x55
mov edx, 0x417cf0
pop ecx
call fcn.00421fda
test ebx, ebx
jle 0x4a5adf
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x4a5ae6
mov ebx, 0x80004005
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret