Function at 0x4e1da0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5389a8
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x59a0a0]
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
xor edi, edi
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x430], edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 4], 1
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4e1e19
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e1e2e
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x4e1e32
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 2
mov eax, dword [0x59fb74]
cmp dword [eax - 0xc], 0
jne 0x4e1e5e
push 0x1d
push 0x55de74
lea ecx, [ebp - 0x42c]
call fcn.00402d50
jmp 0x4e1e73
push eax
lea eax, [ebp - 0x42c]
push 0x55deb0
push eax
call fcn.004023f0
add esp, 0xc
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x424]
push eax
push 0x2001f
push 0
push esi
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e1f30
mov edi, dword [ebp - 0x424]
push 0x208
push eax
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x438], edi
call fcn.0049e130
add esp, 0xc
mov dword [ebp - 0x424], 0x208
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push 0x55ded8
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e1f30
mov eax, dword [ebp - 0x428]
cmp eax, 1
je 0x4e1f0d
cmp eax, 2
jne 0x4e1f30
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x4e202a
test al, 1
jne 0x4e1f30
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x4e2033
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0x91
push dword [0x59fac4]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x4e2260
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e1f74
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, 0x59fae8
call fcn.00402d50
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0
push eax
push 0x2001f
push 0
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e1fe7
test edi, edi
je 0x4e1fc9
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call eax
mov edi, dword [ebp - 0x424]
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x434], 0
test eax, eax
je 0x4e220c
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0
push eax
push 0x2001f
push 0
push 0x55def8
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e2076
mov ebx, dword [ebp - 0x424]
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], eax
jmp 0x4e2148
xor eax, eax
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e2040
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x59fae8
call fcn.00402d50
test edi, edi
je 0x4e2256
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call eax
jmp 0x4e224e
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0
push eax
push 0x2001f
push 0
push 0x55df1c
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e2260
test edi, edi
je 0x4e20b1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x424]
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x434], 0
test eax, eax
jne 0x4e2260
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x55df30
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x428], eax
test eax, eax
jne 0x4e211e
mov ebx, dword [ebp - 0x424]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], eax
test edi, edi
je 0x4e2131
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x438], edi
cmp dword [ebp - 0x428], 0
mov dword [ebp - 0x434], 0
jne 0x4e2260
mov eax, dword [0x59fb74]
cmp dword [eax - 0xc], 0
jne 0x4e2167
push 0xc
push 0x55df40
lea ecx, [ebp - 0x42c]
call fcn.00402d50
jmp 0x4e217c
push eax
lea eax, [ebp - 0x42c]
push 0x55df5c
push eax
call fcn.004023f0
add esp, 0xc
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x424], eax
test eax, eax
jne 0x4e21e6
mov dword [ebp - 0x424], eax
test edi, edi
je 0x4e21d0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x424], eax
mov edi, dword [ebp - 0x428]
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x434], 0
test ebx, ebx
je 0x4e21f9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x444], ebx
cmp dword [ebp - 0x424], 0
mov dword [ebp - 0x440], 0
jne 0x4e2260
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e2215
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
push 0
push str.ApkBusinessKey
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x4e2256
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x434], 0
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4e2295
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e2293
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4e2295
call edx
test ebx, ebx
je 0x4e22a4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
jmp 0x4e22aa
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4e22b1
push edi
call ebx
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.0049aa22
mov esp, ebp
pop ebp
ret