Function at 0x50a320
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566bb7
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x5df7e4]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x81c]
push eax
push 0xf003f
xor ebx, ebx
mov dword [ebp - 0x830], esi
push ebx
push str.SOFTWAREAlibabaWWLights
mov dword [ebp - 0x814], ebx
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x81c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x50a38d
xor al, al
jmp 0x50a72e
push esi
push dword [esi + 4]
push dword [esi]
call fcn.00509930
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 4], eax
xor eax, eax
mov dword [ebp - 0x828], eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x82c], 0x400
push 0x400
push eax
push 0
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x50a724
nop word [eax + eax]
call fcn.004bb5b0
mov ecx, eax
test ecx, ecx
je 0x50a756
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x820], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x820]
call fcn.004bb4d0
test al, al
jne 0x50a445
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50a423
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x820]
call fcn.004bbc70
mov dword [ebp - 4], 1
lea eax, [ebp - 0x824]
mov edi, dword [ebp - 0x820]
push eax
push edi
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x50a74c
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x82c], 0x400
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x83c]
push eax
push 0
push str.Path
push dword [ebp - 0x824]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x824]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x50a6d2
call fcn.004bb5b0
mov ecx, eax
test ecx, ecx
je 0x50a756
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x818]
call fcn.004bb4d0
test al, al
jne 0x50a518
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50a4f6
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x818]
call fcn.004bbc70
mov byte [ebp - 4], 3
lea eax, [ebp - 0x838]
push 1
push eax
lea ecx, [ebp - 0x818]
call fcn.004d5520
mov byte [ebp - 4], 4
or ebx, 1
mov dword [ebp - 0x814], ebx
mov ecx, 0x5be298
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50a56a
test dx, dx
je 0x50a566
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50a56a
add eax, 4
add ecx, 4
test dx, dx
jne 0x50a544
xor eax, eax
jmp 0x50a56f
sbb eax, eax
or eax, 1
test eax, eax
je 0x50a5d3
push 1
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0x818]
call fcn.004d5520
mov dword [ebp - 4], 5
or ebx, 2
mov dword [ebp - 0x814], ebx
mov ecx, 0x56f338
mov eax, dword [eax]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50a5c6
test dx, dx
je 0x50a5c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50a5c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x50a5a0
xor eax, eax
jmp 0x50a5cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x50a5d3
mov bl, 1
jmp 0x50a5d5
xor bl, bl
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x814]
test cl, 2
je 0x50a61b
and ecx, 0xfffffffd
mov dword [ebp - 0x814], ecx
mov dword [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x834]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50a61b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x814]
mov dword [ebp - 4], 3
test cl, 1
je 0x50a652
and ecx, 0xfffffffe
mov dword [ebp - 0x814], ecx
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x838]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50a652
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x50a666
push 0x5be298
lea ecx, [ebp - 0x818]
call fcn.004c8fb0
mov eax, dword [ebp - 0x830]
mov esi, dword [ebp - 0x818]
mov ebx, dword [eax + 4]
cmp dword [eax + 8], ebx
je 0x50a6a1
lea eax, [esi - 0x10]
mov dword [ebp - 0x840], ebx
push eax
call fcn.004bbb10
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x830]
add dword [eax + 4], 4
jmp 0x50a6b0
lea ecx, [ebp - 0x818]
push ecx
push ebx
mov ecx, eax
call fcn.005099a0
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50a6cc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x814]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x828]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x50a6fd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x400
lea eax, [ebp - 0x810]
push eax
mov eax, dword [ebp - 0x828]
push eax
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x50a3e0
push dword [ebp - 0x81c]
call esi
mov al, 1
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.005121be
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x824]
call esi
jmp 0x50a6d8
push 0x80004005
call fcn.004b95c0
int3