Function at 0x44a560
Capabilities:
Get common file path
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bf191
push eax
mov dword fs:[0], esp
sub esp, 0x284
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x320]
xor ebx, ebx
cmp eax, ebx
je 0x44accc
push pe_nt_image_headers32
lea eax, [esp + 0x190]
push eax
mov dword [ebp + 0x440], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x18c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44a5b2
sub eax, edx
cmp byte [esp + eax + 0x18b], 0x5c
push esi
push edi
je 0x44a5e2
lea edi, [esp + 0x194]
dec edi
nop
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x44a5d0
mov cx, word [0x4cbc24]
mov word [edi], cx
lea edi, [esp + 0x194]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x44a5f0
mov edx, dword [str.popcinfo.dat]
mov eax, dword [0x4cbc18]
mov ecx, dword [0x4cbc1c]
mov dword [edi], edx
mov dl, byte [0x4cbc20]
mov dword [edi + 4], eax
lea eax, [esp + 0x194]
mov dword [edi + 8], ecx
push 0x4cbc90
push eax
mov byte [edi + 0xc], dl
call fcn.004a1ce2
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x44a710
push edi
push 2
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.004a1c3a
add esp, 0x10
test eax, eax
je 0x44a707
mov ax, word [esp + 0x10]
cmp ax, 0x100
jae 0x44a6cd
movzx eax, ax
push edi
push 1
push eax
lea edx, [esp + 0xa0]
push edx
mov byte [esp + eax + 0xa4], bl
call fcn.004a1c3a
mov eax, dword [ebp + 0x278]
add esp, 0x10
cmp eax, 0x10
jb 0x44a68f
mov esi, dword [ebp + 0x264]
jmp 0x44a695
lea esi, [ebp + 0x264]
lea eax, [esp + 0x94]
lea esp, [esp]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x44a6c4
cmp cl, bl
je 0x44a6c0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x44a6c4
add eax, 2
add esi, 2
cmp cl, bl
jne 0x44a6a0
xor eax, eax
jmp 0x44a6c9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x44a6f3
push 1
push 4
push edi
call fcn.004a190e
push edi
push 2
lea eax, [esp + 0x24]
push 1
push eax
call fcn.004a1c3a
add esp, 0x1c
test eax, eax
jne 0x44a653
jmp 0x44a707
push edi
push 4
lea eax, [ebp + 0x440]
push 1
push eax
call fcn.004a1c3a
add esp, 0x10
push edi
call fcn.004a19bb
add esp, 4
lea ecx, [ebp + 0x30c]
push ecx
lea edx, [esp + 0x7c]
push str.SOFTWARE_
push edx
call fcn.00418ac0
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, 0x10
jb 0x44a736
mov eax, dword [eax + 4]
jmp 0x44a739
add eax, 4
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp dword [esp + 0x90], 0x10
jb 0x44a769
mov edx, dword [esp + 0x7c]
push edx
call fcn.0049f22c
add esp, 4
cmp esi, ebx
jne 0x44acca
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push str.MusicVolume
mov esi, 4
push eax
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x44a7be
mov ecx, dword [esp + 0x14]
fild dword [esp + 0x14]
test ecx, ecx
jge 0x44a7b2
fadd qword [0x4cba48]
fmul qword [0x4c8e70]
fstp qword [ebp + 0x3a8]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.SfxVolume
push edx
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x44a800
mov eax, dword [esp + 0x14]
fild dword [esp + 0x14]
test eax, eax
jge 0x44a7f4
fadd qword [0x4cba48]
fmul qword [0x4c8e70]
fstp qword [ebp + 0x3b0]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push str.Muted
push ecx
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x44a835
mov eax, dword [esp + 0x14]
xor edx, edx
cmp eax, ebx
setne dl
mov dword [ebp + 0x3c8], edx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push str.ScreenMode
push eax
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x44a866
cmp dword [esp + 0x14], ebx
sete cl
mov byte [ebp + 0x22c], cl
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.CustomCursors
push edx
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x44a897
cmp dword [esp + 0x14], ebx
setne al
mov byte [ebp + 0x43d], al
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push str.DontUpdate
push ecx
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x44a8c8
cmp dword [esp + 0x14], ebx
setne dl
mov byte [ebp + 0x209], dl
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push str.ITSuccess
push eax
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x44a8f9
cmp dword [esp + 0x14], ebx
setne cl
mov byte [ebp + 0x250], cl
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.TimesPlayed
push edx
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x44a933
mov eax, dword [ebp + 0x440]
cmp eax, dword [esp + 0x14]
je 0x44a933
mov dword [ebp + 0x440], 0x64
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push str.DownloadId
push ecx
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x44a961
mov edx, dword [esp + 0x14]
mov dword [ebp + 0x2b4], edx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push str.LastVerCheckQueryTime
push eax
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x44a991
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x364], ecx
jmp 0x44a9a8
lea edx, [esp + 0x20]
push edx
call fcn.004a1145
mov eax, dword [esp + 0x24]
add esp, 4
mov dword [ebp + 0x364], eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push str.InProgress
push ecx
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x44a9d9
cmp dword [esp + 0x14], ebx
sete dl
mov byte [ebp + 0x445], dl
mov ecx, dword [esp + 0x18]
push esi
lea eax, [esp + 0x18]
push eax
push esi
push ebx
push str.InProgress
push ecx
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.RegName
mov esi, 0xff
push edx
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x44aa5d
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x94], bl
lea eax, [esp + 0x94]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44aa40
sub eax, edx
push eax
lea ecx, [esp + 0x98]
push ecx
lea ecx, [ebp + 0x368]
call fcn.00406680
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.RegCode
push edx
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x44aabd
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x94], bl
lea eax, [esp + 0x94]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44aaa0
sub eax, edx
push eax
lea ecx, [esp + 0x98]
push ecx
lea ecx, [ebp + 0x384]
call fcn.00406680
mov edx, dword [ebp]
lea eax, [ebp + 0x384]
push eax
lea ecx, [ebp + 0x368]
push ecx
mov ecx, ebp
call dword [edx + 0x40]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
mov byte [ebp + 0x3a0], al
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.ReferId
push edx
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x44ab32
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x94], bl
lea eax, [esp + 0x94]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44ab15
sub eax, edx
push eax
lea ecx, [esp + 0x98]
push ecx
lea ecx, [ebp + 0x27c]
call fcn.00406680
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.Variation
push edx
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x44ab8d
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x94], bl
lea eax, [esp + 0x94]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44ab70
sub eax, edx
push eax
lea ecx, [esp + 0x98]
push ecx
lea ecx, [ebp + 0x298]
call fcn.00406680
lea edx, [ebp + 0x260]
push edx
lea eax, [esp + 0x60]
push str.http:__www.popcap.com_register.php_theGame
push eax
call fcn.00418ac0
push str.referid
push eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x2b4], ebx
call fcn.00418a10
lea edx, [ebp + 0x27c]
push edx
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x2c0], 1
call fcn.00418b60
add esp, 0x24
push 0xffffffffffffffff
push ebx
lea esi, [ebp + 0x2b8]
push eax
mov ecx, esi
mov byte [esp + 0x2a8], 2
call fcn.004065c0
cmp dword [esp + 0x3c], 0x10
jb 0x44ac04
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0049f22c
add esp, 4
cmp dword [esp + 0x58], 0x10
mov ebp, 0xf
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jb 0x44ac29
mov edx, dword [esp + 0x44]
push edx
call fcn.0049f22c
add esp, 4
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov dword [esp + 0x29c], 0xffffffff
jb 0x44ac54
mov eax, dword [esp + 0x60]
push eax
call fcn.0049f22c
add esp, 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push str.RegisterLink
push ecx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov dword [esp + 0x28], 0xff
call edi
test eax, eax
jne 0x44acbf
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x94]
mov byte [esp + edx + 0x94], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44aca6
sub eax, edx
push eax
lea eax, [esp + 0x98]
push eax
mov ecx, esi
call fcn.00406680
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [esp + 0x28c]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x290
ret