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

Disassembly:
mov eax, 0x2028
call fcn.0054e7e0
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x2024], eax
and dword [esp + 4], 0
xor eax, eax
push ebx
mov ebx, dword [esp + 0x2038]
push ebp
mov ebp, dword [esp + 0x2034]
push esi
or esi, 0xffffffff
mov dword [esp + 0x24], ecx
test ebp, ebp
mov dword [esp + 0x18], 0x2000
push edi
setne al
mov edi, edx
add eax, 0x101
lea edx, [esp + 0x24]
mov dword [esp + 0x20], eax
call fcn.004fca92
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4fcec0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
add ecx, dword [esp + 0x24]
cmp dword [0x5c9c58], 0
push eax
push dword [esp + 0x24]
push 0
jne 0x4fcccd
call fcn.004edcb1
push eax
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x4fccdd
call fcn.004edc5a
push eax
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4fcd15
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.RegOpenKeyEx_error:
push str.reg_kv_imp
push 0xd2
push str.srcliblibpaloswindowsos_reg_imp.c
push 0x5a9534
push pe_nt_image_headers32
push 0
call fcn.004e8a0a
add esp, 0x1c
jmp 0x4fcec0
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x1c]
push eax
test ebp, ebp
jne 0x4fcdcd
push ebp
cmp dword [0x5c9c58], ebp
jne 0x4fcd49
call fcn.004edcb1
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x4fcd59
call fcn.004edc5a
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4fcd91
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.RegQueryValueEx_error:
push str.reg_kv_imp
push 0xe8
push str.srcliblibpaloswindowsos_reg_imp.c
push 0x5a9534
push pe_nt_image_headers32
push 0
call fcn.004e8a0a
add esp, 0x1c
jmp 0x4fceb6
cmp dword [esp + 0x14], 1
je 0x4fcda3
cmp dword [esp + 0x14], 2
jne 0x4fceb6
cmp dword [0x5c9c58], 0
lea ecx, [esp + 0x30]
push dword [esp + 0x2048]
mov edx, ebx
jne 0x4fcdc0
call fcn.004edb31
jmp 0x4fcdc5
call fcn.004ed73d
pop ecx
xor esi, esi
jmp 0x4fceb6
xor ebp, ebp
push ebp
cmp dword [0x5c9c58], ebp
jne 0x4fcdea
call fcn.004edcb1
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x4fcdfa
call fcn.004edc5a
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
inc eax
cmp dword [esp + 0x14], eax
je 0x4fce0e
cmp dword [esp + 0x14], 2
je 0x4fce0e
mov dword [esp + 0x14], eax
cmp dword [0x5c9c58], 0
lea edx, [esp + 0x30]
push 0x2000
mov ecx, ebx
jne 0x4fce35
call fcn.004edb94
pop ecx
lea eax, [esp + 0x30]
push eax
call fcn.00520660
inc eax
jmp 0x4fce4c
call fcn.004ed834
pop ecx
lea eax, [esp + 0x30]
push eax
call fcn.0052fd64
lea eax, [eax*2 + 2]
cmp dword [0x5c9c58], 0
pop ecx
push eax
lea eax, [esp + 0x34]
mov ecx, edi
push eax
push dword [esp + 0x1c]
push ebp
jne 0x4fce75
call fcn.004edcb1
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4fce85
call fcn.004edc5a
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4fceb4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.RegSetValueEx_error:
push str.reg_kv_imp
push 0x130
push str.srcliblibpaloswindowsos_reg_imp.c
push 0x5a9534
push pe_nt_image_headers32
push ebp
jmp 0x4fcd84
mov esi, ebp
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2034]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x2028
ret