Function at 0x4d04b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor bl, bl
push esi
push edi
mov byte [ebp - 0x21], bl
cmp eax, 3
jne 0x4d056e
cmp byte [ebp + 0x10], bl
jne 0x4d04dc
mov bl, byte [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.004d0220
mov eax, dword [ebp - 0x1c]
mov edi, 8
add esp, 4
cmp dword [ebp - 8], edi
jae 0x4d04f8
lea eax, [ebp - 0x1c]
push eax
call fcn.004c8a10
mov esi, eax
add esp, 4
test esi, esi
je 0x4d0549
push str.SetDGWndSafeState
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d0542
mov ecx, 0x16
movzx edx, bl
mov word [ebp - 0x3c], cx
mov ebx, dword [ebp - 0x3c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [ebp - 0x38]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0xc], edx
call eax
mov byte [ebp - 0x21], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 8], edi
jb 0x4d055a
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0051d230
add esp, 4
mov al, byte [ebp - 0x21]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x4d0624
cmp byte [ebp + 0x10], 0
je 0x4d0581
xor bl, bl
jmp 0x4d0584
mov bl, byte [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
call fcn.004d0220
mov eax, dword [ebp - 0x1c]
mov edi, 8
add esp, 4
cmp dword [ebp - 8], edi
jae 0x4d05a0
lea eax, [ebp - 0x1c]
push eax
call fcn.004c8a10
mov esi, eax
add esp, 4
test esi, esi
je 0x4d05fd
push str.SetIMWndSafeState
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d05f1
mov edx, 0x16
mov word [ebp - 0x3c], dx
movzx edx, bl
mov ebx, dword [ebp - 0x3c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [ebp - 0x38]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0xc], edx
call eax
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4d0600
mov bl, byte [ebp - 0x21]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4d0600
mov bl, byte [ebp - 0x21]
cmp dword [ebp - 8], edi
jb 0x4d0611
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0051d230
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov cl, byte [ebp + 0x10]
mov dl, 1
test cl, cl
jne 0x4d0630
mov dl, byte [ebp + 0xc]
xor edi, edi
cmp eax, edi
jne 0x4d063d
mov esi, str.NetPayShowScan
jmp 0x4d068f
cmp eax, 1
jne 0x4d0649
mov esi, str.NetPayShowWeb
jmp 0x4d068f
cmp eax, 4
jne 0x4d0655
mov esi, str.ShowDownUnknownTip
jmp 0x4d068f
cmp eax, 8
jne 0x4d0661
mov esi, str.ShowDownTipPromot
jmp 0x4d068f
cmp eax, 2
jne 0x4d0673
test cl, cl
je 0x4d066c
xor dl, dl
mov esi, str.ShowDownProgressTip
jmp 0x4d068f
cmp eax, 7
jne 0x4d067f
mov esi, str.ShowIMUnknownTip
jmp 0x4d068f
cmp eax, 5
jne 0x4d0611
test cl, cl
je 0x4d068a
xor dl, dl
mov esi, str.ShowIMProgressTip
xor ecx, ecx
test dl, dl
setne cl
xor edx, edx
mov dword [ebp - 0x40], ecx
cmp edx, str.SOFTWARE360Safe
je 0x4d0745
xor eax, eax
cmp eax, str.safemon
je 0x4d0745
mov edx, dword [0x599458]
mov eax, dword [edx + 0xc]
mov ecx, 0x599458
call eax
push str.safemon
push str.SOFTWARE360Safe
lea ecx, [ebp - 0x28]
add eax, 0x10
push str._s_s
push ecx
mov dword [ebp - 0x28], eax
call fcn.004a19c0
add esp, 0x10
lea edx, [ebp - 0x2c]
push edx
push str.SOFTWARE360Safe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4d070d
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], edi
mov edx, dword [ebp - 0x28]
push 4
lea ecx, [ebp - 0x40]
push ecx
push 4
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
lea ecx, [ebp - 0x28]
sete bl
call fcn.00443d90
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret