Function at 0x50a830
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f626e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b8
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x2a4], ecx
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2ac], edi
test edi, edi
jne 0x50a899
xor al, al
jmp 0x50b0e6
xorps xmm0, xmm0
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x25c]
movq qword [ebp - 0x25c], xmm0
call fcn.005dc5e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x250]
xorps xmm0, xmm0
mov dword [ebp - 0x248], 0
movq qword [ebp - 0x250], xmm0
call fcn.005dc5e0
push 0
push 0
push 0x25
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
call fcn.005dbbc0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Shell32.dll
lea ecx, [ebp - 0x25c]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x250]
call fcn.005dc200
mov ecx, edi
call fcn.005d8c40
mov dword [ebp - 0x2c4], eax
test eax, eax
je 0x50a945
cmp word [edi + eax*2 - 2], 0x5c
jne 0x50a945
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
mov eax, dword [ebp - 0x2a4]
test eax, eax
je 0x50a96d
push 0
mov ecx, eax
call fcn.005c5730
mov dword [ebp - 0x224], eax
test eax, eax
je 0x50a97d
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x50a977
xor eax, eax
mov dword [ebp - 0x224], eax
jmp 0x50a97d
mov eax, dword [ebp - 0x224]
push ecx
push eax
push 0xffffffffffffffff
push 0xcc0000
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x19a
push 0x190
push dword [ebp - 0x2a8]
lea ecx, [esi + 0x40]
push str.REGFINDWND
call fcn.005c5d10
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x2a8], eax
test edx, edx
je 0x50a9d1
push 1
mov ecx, eax
call fcn.005d3010
push dword [ebp - 0x2a8]
mov ecx, dword [ebp - 0x2a4]
call fcn.005c6150
sub esp, 8
lea ecx, [esi + 0x40]
push 0x190
push 0x15e
call fcn.005c40c0
movsd xmm1, qword [0x6edaf8]
lea ecx, [esi + 0x40]
push 0
push str.Arial
push 1
push 0x190
call fcn.005c42b0
push ecx
push 0x10800017
push 0x172
push 0x190
push 0
push ecx
lea ecx, [esi + 0x40]
call fcn.005bfa50
push 0x433
push eax
lea ecx, [esi + 0x40]
mov dword [esi + 0x2b0], eax
call fcn.005bda80
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x14
push 0x140
push 0x17c
push 0xa
push dword [ebp - 0x2ac]
lea ecx, [esi + 0x40]
call fcn.005c0a40
push 0x423
push 0xffffffffffffffff
lea ecx, [esi + 0x40]
mov dword [esi + 0x2b4], eax
call fcn.005bda80
movsd xmm1, qword [0x6edaf8]
lea ecx, [esi + 0x40]
push 0
push str.Arial
push 1
push 0x320
call fcn.005c42b0
push ecx
push 0xffffffffffffffff
push 0x16
push 0x37
push 0x17b
push 0x14f
push 0x628f54
lea ecx, [esi + 0x40]
call fcn.005c1a50
push 0x422
push 0xffffffffffffffff
lea ecx, [esi + 0x40]
mov dword [esi + 0x2b8], eax
call fcn.005bda80
push dword [esi + 0x2b0]
lea ecx, [esi + 0x40]
mov dword [ebp - 0x238], str.HKEY_CLASSES_ROOT
push 0xffffffffffffffff
push 0
push 0
push str.HKEY_CLASSES_ROOT
mov dword [ebp - 0x234], 0x627bec
mov dword [ebp - 0x230], 0x627ac4
mov dword [ebp - 0x22c], str.HKEY_USERS
mov dword [ebp - 0x228], str.HKEY_CURRENT_CONFIG
call fcn.005ba280
sub esp, 0xc
mov dword [ebp - 0x2c0], eax
lea ecx, [ebp - 0x250]
call fcn.005dc190
push eax
push dword [ebp - 0x2c0]
lea ecx, [esi + 0x40]
push dword [esi + 0x2b0]
call fcn.005b9e70
push dword [esi + 0x2b0]
lea ecx, [esi + 0x40]
mov dword [esi + 0x2bc], eax
push eax
push 0
push 0
push 0x627bec
call fcn.005ba280
push dword [esi + 0x2b0]
lea ecx, [esi + 0x40]
mov dword [ebp - 0x2bc], eax
push dword [esi + 0x2bc]
push 0
push 0
push 0x627ac4
call fcn.005ba280
push dword [esi + 0x2b0]
lea ecx, [esi + 0x40]
mov dword [ebp - 0x2b8], eax
push dword [esi + 0x2bc]
push 0
push 0
push str.HKEY_USERS
call fcn.005ba280
push dword [esi + 0x2b0]
lea ecx, [esi + 0x40]
mov dword [ebp - 0x2b4], eax
push dword [esi + 0x2bc]
push 0
push 0
push str.HKEY_CURRENT_CONFIG
call fcn.005ba280
push dword [esi + 0x2b0]
mov edi, eax
lea ecx, [esi + 0x40]
mov dword [ebp - 0x2b0], edi
call fcn.005c5730
mov ecx, dword [ebp - 0x2c0]
mov dword [ebp - 0x298], ecx
lea ecx, [ebp - 0x29c]
push ecx
push 0
push 0x113f
push eax
mov dword [esi + 0x2c0], eax
mov dword [ebp - 0x29c], 8
mov dword [ebp - 0x290], 0x10
mov dword [ebp - 0x294], 0x10
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x29c]
push eax
push 0
push 0x113f
push dword [esi + 0x2c0]
mov dword [ebp - 0x29c], 8
mov dword [ebp - 0x290], 0x10
mov dword [ebp - 0x294], 0x10
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x29c]
push eax
push 0
push 0x113f
push dword [esi + 0x2c0]
mov dword [ebp - 0x29c], 8
mov dword [ebp - 0x290], 0x10
mov dword [ebp - 0x294], 0x10
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x29c]
push eax
push 0
push 0x113f
push dword [esi + 0x2c0]
mov dword [ebp - 0x29c], 8
mov dword [ebp - 0x290], 0x10
mov dword [ebp - 0x294], 0x10
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x29c], 8
push eax
push 0
push 0x113f
push dword [esi + 0x2c0]
mov dword [ebp - 0x298], edi
mov dword [ebp - 0x290], 0x10
mov dword [ebp - 0x294], 0x10
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
lea eax, [esi + 0x40]
push 1
mov ecx, eax
call fcn.005c3f80
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], 0
call fcn.005d6aa0
xorps xmm0, xmm0
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x244]
movq qword [ebp - 0x244], xmm0
call fcn.005dc5e0
mov byte [ebp - 4], 3
xor edi, edi
push ecx
push 0x20019
push dword [ebp + edi - 0x238]
lea ecx, [ebp - 0x224]
call fcn.005d6a30
test al, al
je 0x50adc9
push 0x100
lea eax, [ebp - 0x220]
push eax
push 0
lea ecx, [ebp - 0x224]
call fcn.005d6a00
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x50adc9
push dword [esi + 0x2b0]
lea eax, [esi + 0x40]
push dword [esi + 0x2bc]
mov ecx, eax
push 0xffff0002
push dword [ebp + edi - 0x2c0]
push str._rfcheck_
call fcn.005ba280
add edi, 4
cmp edi, 0x14
jb 0x50ad62
mov edi, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x274]
push 1
xorps xmm0, xmm0
push 0x624284
push edi
movups xmmword [ebp - 0x274], xmm0
movq qword [ebp - 0x264], xmm0
call fcn.005d92a0
push ecx
push 0x20019
push edi
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 4
call fcn.005d6a30
mov edi, dword [ebp - 0x2b0]
test al, al
je 0x50b049
lea ecx, [ebp - 0x274]
call fcn.005d9210
test eax, eax
je 0x50b049
push dword [ebp - 0x2ac]
push ecx
push dword [esi + 0x2b4]
lea ecx, [esi + 0x40]
call fcn.005bc230
add esp, 4
lea ecx, [ebp - 0x244]
push eax
call fcn.005dc1c0
mov ecx, eax
call fcn.005dc4c0
test al, al
je 0x50b049
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
push 0
lea ecx, [ebp - 0x274]
movq qword [ebp - 0x230], xmm0
call fcn.005d9220
push eax
lea ecx, [ebp - 0x230]
call fcn.005dc570
push str.HKCR
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.005dc4c0
test al, al
jne 0x50af8f
push str.HKEY_CLASSES_ROOT
lea ecx, [ebp - 0x230]
call fcn.005dc4c0
test al, al
jne 0x50af8f
push str.HKCU
lea ecx, [ebp - 0x230]
call fcn.005dc4c0
test al, al
jne 0x50af87
push 0x627bec
lea ecx, [ebp - 0x230]
call fcn.005dc4c0
test al, al
jne 0x50af87
push str.HKLM
lea ecx, [ebp - 0x230]
call fcn.005dc4c0
test al, al
jne 0x50af7f
push 0x627ac4
lea ecx, [ebp - 0x230]
call fcn.005dc4c0
test al, al
jne 0x50af7f
push 0x624b4c
lea ecx, [ebp - 0x230]
call fcn.005dc4c0
test al, al
jne 0x50af77
push str.HKEY_USERS
lea ecx, [ebp - 0x230]
call fcn.005dc4c0
test al, al
jne 0x50af77
push str.HKCC
lea ecx, [ebp - 0x230]
call fcn.005dc4c0
test al, al
jne 0x50af95
push str.HKEY_CURRENT_CONFIG
lea ecx, [ebp - 0x230]
call fcn.005dc4c0
test al, al
jne 0x50af95
jmp 0x50b03a
mov edi, dword [ebp - 0x2b4]
jmp 0x50af95
mov edi, dword [ebp - 0x2b8]
jmp 0x50af95
mov edi, dword [ebp - 0x2bc]
jmp 0x50af95
mov edi, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x2a4], 1
call fcn.005d9210
cmp eax, 1
jbe 0x50b012
nop
push edi
mov ecx, esi
call fcn.0050a330
push edi
push dword [ebp - 0x2a4]
lea ecx, [ebp - 0x274]
call fcn.005d9220
push eax
mov ecx, esi
call fcn.0050a130
mov dword [ebp - 0x2a8], eax
test eax, eax
je 0x50b012
push edi
push 2
push 0x1102
push dword [esi + 0x2c0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x2a4]
lea ecx, [ebp - 0x274]
mov edi, dword [ebp - 0x2a8]
inc edx
mov dword [ebp - 0x2a4], edx
call fcn.005d9210
cmp edx, eax
jb 0x50afb0
push edi
push 9
push 0x110b
push dword [esi + 0x2c0]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push 0x1114
push dword [esi + 0x2c0]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.005dc430
push 0x833
push dword [esi + 0x2b0]
lea ecx, [esi + 0x40]
call fcn.005bda80
cmp dword [ebp - 0x2c4], 0
jne 0x50b07a
push 0
push str.HKEY_CLASSES_ROOT
push dword [esi + 0x2b4]
lea ecx, [esi + 0x40]
call fcn.005bcd30
push dword [esi + 0x2c0]
call dword [sym.imp.USER32.dll_SetFocus]
push ecx
mov ecx, esi
call fcn.0050a710
test al, al
je 0x50b0a2
cmp al, 2
je 0x50b106
push ecx
mov ecx, esi
call fcn.0050a710
test al, al
jne 0x50b092
mov byte [ebp - 0x29d], 0
lea ecx, [ebp - 0x274]
call fcn.005d9280
lea ecx, [ebp - 0x244]
call fcn.005dc430
lea ecx, [ebp - 0x224]
call fcn.005d69e0
lea ecx, [ebp - 0x250]
call fcn.005dc430
lea ecx, [ebp - 0x25c]
call fcn.005dc430
mov al, byte [ebp - 0x29d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
push dword [esi + 0x2b4]
lea ecx, [esi + 0x40]
call fcn.005bc230
push eax
lea ecx, [ebp - 0x244]
call fcn.005dc1c0
push 0x1000
push dword [ebp - 0x2ac]
lea ecx, [ebp - 0x244]
call fcn.005d8a30
mov byte [ebp - 0x29d], 1
jmp 0x50b0a9