Function at 0x4f18f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547c70
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x58a710]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x28], ebx
call fcn.00404730
mov ecx, eax
test ecx, ecx
jne 0x4f1932
push 0x80004005
call fcn.004049a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.00404730
mov ecx, eax
test ecx, ecx
jne 0x4f1959
push 0x80004005
call fcn.004049a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
push 0xfa
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.004f0950
mov ecx, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub ecx, 0x104
or ecx, edx
mov ebx, eax
mov dword [ebp - 0x20], ebx
jge 0x4f199e
push 0x104
lea ecx, [ebp - 0x14]
call fcn.004053d0
mov esi, dword [ebp - 0x14]
push 0x104
push esi
push 0x414
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItemTextA]
call ebx
push dword [esi - 8]
push esi
call fcn.0052644e
add esp, 8
test eax, eax
js 0x4f1be7
cmp eax, dword [esi - 8]
jg 0x4f1be7
mov dword [esi - 0xc], eax
mov ecx, 1
mov byte [eax + esi], 0
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4f19fa
push 0x104
lea ecx, [ebp - 0x18]
call fcn.004053d0
mov edi, dword [ebp - 0x18]
push 0x104
push edi
push 0x421
push dword [ebp - 0x20]
call ebx
push dword [edi - 8]
push edi
call fcn.0052644e
add esp, 8
test eax, eax
js 0x4f1be7
cmp eax, dword [edi - 8]
jg 0x4f1be7
mov dword [edi - 0xc], eax
or ebx, 0xffffffff
mov byte [eax + edi], 0
cmp dword [esi - 0xc], 0
jne 0x4f1a40
mov dword [ebp - 0x10], 0x8995
jmp 0x4f1a7d
push 0x54dba4
push esi
call fcn.0052c467
add esp, 8
test eax, eax
je 0x4f1a5f
sub eax, esi
js 0x4f1a5f
mov dword [ebp - 0x10], 3
jmp 0x4f1a7d
push edi
push esi
call fcn.0052b261
add esp, 8
test eax, eax
setne al
test al, al
je 0x4f1b19
mov dword [ebp - 0x10], 4
call fcn.00404730
mov ecx, eax
test ecx, ecx
jne 0x4f1a92
push 0x80004005
call fcn.004049a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1c], ebx
push 0
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00404930
add esp, 8
test eax, eax
je 0x4f1ac1
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00405150
mov ebx, dword [ebp - 0x1c]
push ebx
push 0x425
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [ebp - 0x28]
push 0x425
push 0xfa
call fcn.004f0950
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4f1b9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4f1b9a
push 0xf013f
push str.SOFTWAREHuorongSysdiag_app
push reloc.uactmon.dll_Ordinal_2
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], vtable.CCfgOPReg.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.0040ea30
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.004f04d0
mov ecx, eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4f1b7e
push 8
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
push ecx
push 0xb
push 0
push str.password
push eax
mov dword [ebp - 0x20], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x28]
push 1
push dword [eax + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4f1b9a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4f1bb5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4f1bd1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.004049a0
int3