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

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push ebp
push 0xbb80
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc_1]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock_1]
mov ebx, eax
test ebx, ebx
jne 0x49e3bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea eax, [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
push 0x4a1198
push SysReAllocString
call ebp
test eax, eax
je 0x49e4d8
lea eax, [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push eax
push 0x4a1198
push SysReAllocString
call ebp
test eax, eax
je 0x49e426
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle_1]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock_1]
push ebx
call esi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree_1]
call ebp
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
lea edx, [ebx + 8]
mov dword [ebx], 1
mov dword [ebx + 4], 0
mov ecx, dword [0x4a4b78]
mov eax, dword [ecx]
mov dword [edx], eax
mov ebp, dword [ecx + 4]
mov dword [edx + 4], ebp
mov esi, dword [ecx + 8]
mov dword [edx + 8], esi
mov al, byte [ecx + 0xc]
lea ecx, [esp + 0x14]
push ecx
mov byte [edx + 0xc], al
lea edx, [esp + 0x14]
mov ecx, ebx
mov dword [esp + 0x18], 0x15
push edx
mov edx, 0x15
call fcn.0049f8c0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push 1
push 0x4a1198
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle_1]
push ecx
call esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock_1]
call edi
mov eax, dword [esp + 0x10]
push eax
call esi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree_1]
call ebp
push ebx
call esi
push eax
call edi
push ebx
call esi
push eax
call ebp
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
mov dword [esp + 0x14], 0xbb80
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x4a1198
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x49e52d
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle_1]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock_1]
push ebx
call esi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree_1]
call ebp
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
dec dword [esp + 0x14]
push eax
mov edx, dword [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.0049f770
mov ecx, dword [esp + 0x10]
mov edi, ebx
mov esi, ecx
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
lea eax, [edx + edx*2]
shl eax, 2
add eax, 8
mov ecx, eax
mov dword [esp + 0x18], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
inc eax
mov dword [ebx], eax
mov dword [ebx + 4], 0
mov ecx, dword [0x4a4b78]
mov edx, dword [esp + 0x18]
add edx, ebx
mov eax, dword [ecx]
mov dword [edx], eax
mov ebp, dword [ecx + 4]
mov dword [edx + 4], ebp
mov esi, dword [ecx + 8]
mov dword [edx + 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle_1]
mov al, byte [ecx + 0xc]
mov byte [edx + 0xc], al
add dword [esp + 0x18], 0xd
mov ecx, dword [esp + 0x10]
push ecx
call esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock_1]
call edi
mov eax, dword [esp + 0x10]
push eax
call esi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree_1]
call ebp
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0x18]
push eax
push ecx
mov ecx, ebx
call fcn.0049f8c0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push edx
push 1
push 0x4a1198
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [esp + 0x10]
push ecx
call esi
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call esi
push eax
call ebp
push ebx
call esi
push eax
call edi
push ebx
call esi
push eax
call ebp
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret