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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4dd52c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
xor eax, eax
mov word [ebp - 0x20c], ax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
lea esi, [esi + esi*2]
shl esi, 2
push dword [esi + 0x41474c]
stosw word es:[edi], ax
push dword [esi + 0x414748]
lea eax, [ebp - 0x20c]
push 0x416abc
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
mov edi, dword [ebp + 0x18]
and dword [ebp - 0x210], 0
add esp, 0x14
lea eax, [ebx + 0x1c340]
push eax
lea ecx, [ebx + 0x1bf30]
mov dword [ebp - 0x220], eax
push ecx
lea eax, [ebp - 0x210]
add edi, edi
push eax
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x21c], ecx
call fcn.004805f0
test eax, eax
jne 0x4a656e
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push 0
push 0
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a6535
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x228], eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x22c], eax
je 0x4a6570
mov eax, dword [ebp - 0x228]
shr eax, 1
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 0x14
xor eax, eax
mov ecx, dword [ebx + 0x1bef8]
cmp ecx, eax
je 0x4a6559
cmp dword [ebp - 0x214], eax
je 0x4a661e
cmp dword [ebp + 0x18], eax
je 0x4a661e
push dword [ebp + 0x18]
push dword [ebp - 0x214]
push dword [esi + 0x41474c]
push dword [ebp + 0x10]
push dword [esi + 0x414748]
push eax
push dword [ebx + 4]
call ecx
push dword [ebp - 0x220]
xor esi, esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x218], eax
cmp eax, esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], esi
push eax
je 0x4a65e8
call fcn.004806cf
test eax, eax
jne 0x4a6559
push edi
push dword [ebp - 0x214]
jmp 0x4a65f7
call fcn.004806cf
test eax, eax
jne 0x4a6559
push esi
push esi
push 3
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a6559
push eax
push eax
push dword [esi + 0x41474c]
push dword [ebp + 0x10]
push dword [esi + 0x414748]
push eax
push dword [ebx + 4]
call ecx
test eax, eax
mov dword [ebp - 0x218], eax
je 0x4a6559
mov edi, eax
add edi, edi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 0x214], eax
je 0x4a6559
push dword [ebp - 0x218]
mov ecx, edi
mov edi, dword [ebp - 0x214]
push dword [ebp - 0x214]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [esi + 0x41474c]
xor edi, edi
push dword [ebp + 0x10]
push dword [esi + 0x414748]
push edi
push dword [ebx + 4]
call dword [ebx + 0x1bef8]
push dword [ebp - 0x220]
mov esi, eax
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x210], edi
call fcn.004806cf
cmp esi, edi
je 0x4a66d7
test eax, eax
jne 0x4a66ff
lea eax, [esi + esi]
push eax
push dword [ebp - 0x214]
jmp 0x4a66dd
test eax, eax
jne 0x4a66ff
push edi
push edi
push 3
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4a6559