Function at 0x43ecc0
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x284
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x320]
test eax, eax
je 0x43f3c4
push 0x100
lea eax, [ebp - 0x290]
push eax
mov dword [ebx + 0x440], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x290]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43ed14
sub eax, edx
cmp byte [ebp + eax - 0x291], 0x5c
push esi
push edi
je 0x43ed42
lea edi, [ebp - 0x290]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43ed30
mov cx, word [0x4b357c]
mov word [edi], cx
lea edi, [ebp - 0x290]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43ed50
mov edx, dword [str.popcinfo.dat]
mov eax, dword [0x4b3570]
mov ecx, dword [0x4b3574]
mov dword [edi], edx
mov dl, byte [0x4b3578]
mov dword [edi + 4], eax
lea eax, [ebp - 0x290]
mov dword [edi + 8], ecx
push 0x4b35f4
push eax
mov byte [edi + 0xc], dl
call fcn.004806f9
mov edi, eax
add esp, 8
test edi, edi
mov esi, 4
je 0x43ee78
push edi
push 2
lea ecx, [ebp - 0xe]
push 1
push ecx
call fcn.00480651
add esp, 0x10
test eax, eax
je 0x43ee6f
mov ax, word [ebp - 0xe]
cmp ax, 0x100
jae 0x43ee32
movzx eax, ax
push edi
push 1
push eax
lea edx, [ebp - 0x190]
push edx
mov byte [ebp + eax - 0x190], 0
call fcn.00480651
mov eax, dword [ebx + 0x278]
add esp, 0x10
cmp eax, 0x10
jb 0x43edf1
mov esi, dword [ebx + 0x264]
jmp 0x43edf7
lea esi, [ebx + 0x264]
lea eax, [ebp - 0x190]
lea ecx, [ecx]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x43ee24
test cl, cl
je 0x43ee20
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x43ee24
add eax, 2
add esi, 2
test cl, cl
jne 0x43ee00
xor eax, eax
jmp 0x43ee29
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x43ee56
mov esi, 4
push 1
push esi
push edi
call fcn.00480278
push edi
push 2
lea eax, [ebp - 0xe]
push 1
push eax
call fcn.00480651
add esp, 0x1c
test eax, eax
jne 0x43edb6
jmp 0x43ee6f
push edi
push 4
lea eax, [ebx + 0x440]
push 1
push eax
call fcn.00480651
add esp, 0x10
mov esi, 4
push edi
call fcn.00480325
add esp, 4
lea ecx, [ebx + 0x30c]
push ecx
lea edx, [ebp - 0x90]
push str.SOFTWARE_
push edx
call fcn.004064d0
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, 0x10
jb 0x43eea0
mov eax, dword [eax + 4]
jmp 0x43eea3
add eax, 4
lea ecx, [ebp - 0x18]
push ecx
push 0x2001f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp dword [ebp - 0x78], 0x10
jb 0x43eed1
mov edx, dword [ebp - 0x8c]
push edx
call fcn.0047df89
add esp, 4
test edi, edi
jne 0x43f3c2
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.MusicVolume
push eax
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x43ef1a
mov ecx, dword [ebp - 0x14]
fild dword [ebp - 0x14]
test ecx, ecx
jge 0x43ef0e
fadd qword [0x4b3368]
fmul qword [0x4ae460]
fstp qword [ebx + 0x3a8]
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.SfxVolume
push edx
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x43ef56
mov eax, dword [ebp - 0x14]
fild dword [ebp - 0x14]
test eax, eax
jge 0x43ef4a
fadd qword [0x4b3368]
fmul qword [0x4ae460]
fstp qword [ebx + 0x3b0]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push str.Muted
push ecx
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x43ef86
mov eax, dword [ebp - 0x14]
xor edx, edx
test eax, eax
setne dl
mov dword [ebx + 0x3c8], edx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push str.ScreenMode
push eax
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x43efb4
mov eax, dword [ebp - 0x14]
test eax, eax
sete cl
mov byte [ebx + 0x22c], cl
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.CustomCursors
push edx
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x43efe2
mov eax, dword [ebp - 0x14]
test eax, eax
setne al
mov byte [ebx + 0x43d], al
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push str.DontUpdate
push ecx
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x43f010
mov eax, dword [ebp - 0x14]
test eax, eax
setne dl
mov byte [ebx + 0x209], dl
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push str.ITSuccess
push eax
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x43f03e
mov eax, dword [ebp - 0x14]
test eax, eax
setne cl
mov byte [ebx + 0x250], cl
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.TimesPlayed
push edx
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x43f073
mov eax, dword [ebx + 0x440]
cmp eax, dword [ebp - 0x14]
je 0x43f073
mov dword [ebx + 0x440], 0x64
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push str.DownloadId
push ecx
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x43f09c
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x2b4], edx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push str.LastVerCheckQueryTime
push eax
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x43f0c7
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x364], ecx
jmp 0x43f0dc
lea edx, [ebp - 0x20]
push edx
call fcn.0047f560
mov eax, dword [ebp - 0x20]
add esp, 4
mov dword [ebx + 0x364], eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push str.InProgress
push ecx
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x43f10a
mov eax, dword [ebp - 0x14]
test eax, eax
sete dl
mov byte [ebx + 0x445], dl
mov ecx, dword [ebp - 0x18]
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push str.InProgress
push ecx
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.RegName
mov esi, 0xff
push edx
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x43f180
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f164
sub eax, edx
push eax
lea ecx, [ebp - 0x190]
push ecx
lea ecx, [ebx + 0x368]
call fcn.004036d0
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.RegCode
push edx
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x43f1d3
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f1b7
sub eax, edx
push eax
lea ecx, [ebp - 0x190]
push ecx
lea ecx, [ebx + 0x384]
call fcn.004036d0
mov edx, dword [ebx]
lea eax, [ebx + 0x384]
push eax
lea ecx, [ebx + 0x368]
push ecx
mov ecx, ebx
call dword [edx + 0x40]
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 0x18]
mov byte [ebx + 0x3a0], al
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.ReferId
push edx
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x43f241
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f225
sub eax, edx
push eax
lea ecx, [ebp - 0x190]
push ecx
lea ecx, [ebx + 0x27c]
call fcn.004036d0
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.Variation
push edx
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x43f294
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f278
sub eax, edx
push eax
lea ecx, [ebp - 0x190]
push ecx
lea ecx, [ebx + 0x298]
call fcn.004036d0
lea edx, [ebx + 0x260]
push edx
lea eax, [ebp - 0x74]
push str.http:__www.popcap.com_register.php_theGame
push eax
call fcn.004064d0
push str.referid
push eax
lea ecx, [ebp - 0x58]
push ecx
mov dword [ebp - 4], 0
call fcn.004293c0
lea edx, [ebx + 0x27c]
push edx
push eax
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 1
call fcn.0043c460
add esp, 0x24
push 0xffffffffffffffff
push 0
lea esi, [ebx + 0x2b8]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00403610
mov eax, dword [ebp - 0x24]
mov ebx, 0x10
cmp eax, ebx
jb 0x43f305
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0047df89
add esp, 4
cmp dword [ebp - 0x40], ebx
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
jb 0x43f328
mov edx, dword [ebp - 0x54]
push edx
call fcn.0047df89
add esp, 4
cmp dword [ebp - 0x5c], ebx
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
jb 0x43f352
mov eax, dword [ebp - 0x70]
push eax
call fcn.0047df89
add esp, 4
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x190]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push str.RegisterLink
push ecx
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov dword [ebp - 0x10], 0xff
call edi
test eax, eax
jne 0x43f3b8
mov edx, dword [ebp - 0x10]
mov byte [ebp + edx - 0x190], al
lea eax, [ebp - 0x190]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f3a0
sub eax, edx
push eax
lea eax, [ebp - 0x190]
push eax
mov ecx, esi
call fcn.004036d0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret