Function at 0x40d260
Capabilities:
Get graphical window text
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4152c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebp
xor ebp, ebp
push esi
mov esi, ecx
mov dword [esp + 8], ebp
lea eax, [esp + 0xc]
mov dword [esp + 0x44], ebp
push eax
push 0x2001f
push ebp
push str.SOFTWAREPopCapZuma
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x40d2be
lea ecx, [esp + 8]
call fcn.0040d490
mov ecx, dword [esp + 0xc]
cmp eax, ebp
mov dword [esp + 8], ecx
je 0x40d320
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push ebp
push 0x2001b
push ebp
push ebp
push ebp
push str.SOFTWAREPopCapZuma
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebp
jne 0x40d2fe
lea ecx, [esp + 8]
call fcn.0040d490
mov ecx, dword [esp + 0xc]
cmp eax, ebp
mov dword [esp + 8], ecx
je 0x40d320
lea ecx, [esp + 8]
mov dword [esp + 0x44], 0xffffffff
call fcn.0040d490
pop esi
pop ebp
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
push ebx
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x1c]
push 0x14
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [eax + eax + 2]
lea eax, [esp + 0x1c]
push edx
push eax
push 1
push ebp
push str.CurUser
push ecx
call edi
mov edx, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push ebp
push 0xf0
push edx
call ebx
dec eax
mov ecx, dword [esp + 0x10]
neg eax
sbb eax, eax
push 4
inc eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push ebp
push str.ScreenMode
push ecx
call edi
mov edx, dword [esi + 0x2c]
push ebp
push ebp
push 0xf0
push edx
call ebx
dec eax
mov ecx, dword [esp + 0x10]
neg eax
sbb eax, eax
push 4
inc eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push ebp
push str.Muted
push ecx
call edi
mov edx, dword [esi + 0x30]
push ebp
push ebp
push 0xf0
push edx
call ebx
dec eax
push 4
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 4
push ebp
push str.CustomCursors
push ecx
call edi
mov edx, dword [esi + 0x24]
push ebp
push ebp
push 0x400
push edx
call ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 4
push eax
push 4
push ebp
push str.MusicVolume
push ecx
call edi
mov edx, dword [esi + 0x28]
push ebp
push ebp
push 0x400
push edx
call ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 4
push eax
push 4
push ebp
push str.SfxVolume
push ecx
call edi
mov eax, dword [esp + 0x10]
pop edi
cmp eax, ebp
pop ebx
je 0x40d45d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x3c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x40
ret