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

Disassembly:
push 0xf0
mov eax, 0x510aa2
call fcn.004f41e2
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push eax
push str.Console
mov dword [ebp - 0xe8], ebx
call fcn.004e5466
add esp, 0xc
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xf0]
lea ecx, [ebp - 0xe4]
push eax
call fcn.004e24e8
push ebx
lea eax, [ebp - 0xe8]
mov dword [ebp - 4], ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea ecx, [ebp - 0xe4]
call fcn.0044612f
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x48f3d6
push 4
pop edx
push 0x10
pop ecx
mov dword [ebp - 0x7c], ecx
mov eax, 0x3e7
mov dword [ebp - 0x68], ecx
mov ecx, dword [0x5a23ec]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0xf4], edx
lea eax, [ecx + 0xc60]
mov dword [ebp - 0x88], str.HistoryBufferSize
mov dword [ebp - 0x58], eax
movzx eax, word [ecx + 0xc44]
mov ecx, dword [edi + 0x4288]
shl eax, 0x10
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], 0x32
mov dword [ebp - 0x74], str.NumberOfHistoryBuffers
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], 0x20
mov dword [ebp - 0x60], str.FaceName
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], str.FontSize
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], str.ScreenBufferSize
mov dword [ebp - 0x34], edx
call fcn.0047a731
mov ecx, dword [edi + 0x4288]
movzx esi, ax
shl esi, 0x10
call fcn.0047a74b
mov ecx, dword [edi + 0x4288]
movzx eax, ax
or eax, esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], str.WindowSize
mov dword [ebp - 0x20], 4
call fcn.0047b61d
mov ecx, dword [edi + 0x4288]
movzx esi, ax
shl esi, 0x10
call fcn.0047b62c
movzx eax, ax
or eax, esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0x78]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xf0], 6
mov eax, dword [esi - 0xc]
cmp eax, 4
jne 0x48f2e1
cmp dword [esi - 4], ebx
jne 0x48f2df
cmp dword [esi], ebx
je 0x48f2e1
mov bl, 1
sub eax, 1
je 0x48f3a6
sub eax, 3
jne 0x48f340
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0xfc]
push eax
push 0
push dword [esi - 0x10]
push dword [ebp - 0xe8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xf8]
mov edi, eax
test edi, edi
jne 0x48f358
cmp dword [ebp - 0xfc], 4
jne 0x48f358
cmp dword [ebp - 0xf4], 4
jne 0x48f358
test bl, bl
je 0x48f353
cmp ecx, dword [esi - 4]
jb 0x48f358
cmp ecx, dword [esi]
ja 0x48f358
xor ebx, ebx
add esi, 0x14
sub dword [ebp - 0xf0], 1
jne 0x48f2ce
jmp 0x48f425
cmp ecx, dword [esi - 8]
je 0x48f340
mov edx, dword [esi - 4]
xor ebx, ebx
mov eax, dword [esi - 8]
mov dword [ebp - 0xec], eax
test edx, edx
jne 0x48f36e
cmp dword [esi], ebx
je 0x48f389
test edi, edi
jne 0x48f389
cmp ecx, edx
jae 0x48f37e
mov dword [ebp - 0xec], edx
jmp 0x48f389
cmp ecx, dword [esi]
cmova eax, dword [esi]
mov dword [ebp - 0xec], eax
push 4
lea eax, [ebp - 0xec]
push eax
push 4
push ebx
push dword [esi - 0x10]
push dword [ebp - 0xe8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x48f342
mov edx, dword [esi - 8]
test edx, edx
je 0x48f340
mov ecx, edx
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x48f3b4
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
mov dword [ebp - 0xec], eax
push 1
jmp 0x48f394
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x5561d8
lea ecx, [ebp - 0xe4]
call fcn.0044612f
push eax
push 0x5561dc
push str.Failed_to_create_open_registry_key
lea ecx, [ebp - 0x6c]
call fcn.004e2531
push ebx
push ebx
push ebx
push esi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.0044612f
push eax
call fcn.00420ad9
add esp, 0x14
mov dword [ebp - 0xe8], ebx
lea ecx, [ebp - 0x6c]
call fcn.004e25e0
mov esi, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe4]
call fcn.004e25e0
mov eax, esi
call fcn.004f418c
ret 4