Function at 0x4a5510
Capabilities:
Copy file
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cdd2a
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x6229a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1a0], edi
lea eax, [ebp - 0x180]
push eax
call fcn.004e5800
add esp, 4
push 0xd
push str.allusers.ghtr
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00404bf0
mov dword [ebp - 0xe0], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xdc], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xf0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xe0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x16c]
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x4a55ed
mov edx, dword [ebp - 0x180]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a55e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61c9
push ecx
push edx
call fcn.0059b718
add esp, 8
lea eax, [ebp - 0xf0]
mov dword [ebp - 0x170], 0
push eax
mov ecx, edi
mov dword [ebp - 0x16c], 0xf
mov byte [ebp - 0x180], 0
call fcn.00541a00
test al, al
jne 0x4a5ce1
push 0xc8
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.0059d800
add esp, 0xc
mov dword [ebp - 0x1a4], 0xc8
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0xd8]
push eax
push 0
push 2
push str.SavePath
push str.SOFTWAREPopCapPlantsVsZombiesGhTrPV_
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov ecx, str.C:ProgramDataPopCap_GamesPlantsVsZombiesGHTR2
mov dword [ebp - 0x158], 0
test eax, eax
mov dword [ebp - 0x154], 0
lea edx, [ebp - 0xd8]
xorps xmm0, xmm0
cmovne edx, ecx
mov ecx, edx
movups xmmword [ebp - 0x168], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5698
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x168]
call fcn.00402b80
push str._allusers.ghtr
lea eax, [ebp - 0x168]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.004a1f40
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00541a00
mov ecx, dword [ebp - 0x124]
mov byte [ebp - 0x199], al
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x4a5723
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a5713
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61ce
push ecx
push edx
call fcn.0059b718
mov al, byte [ebp - 0x199]
add esp, 8
test al, al
je 0x4a5ca3
cmp dword [ebp - 0xdc], 0x10
lea eax, [ebp - 0x168]
push str._allusers.ghtr
push eax
lea eax, [ebp - 0x150]
lea esi, [ebp - 0xf0]
cmovae esi, dword [ebp - 0xf0]
push eax
call fcn.004a1f40
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4a5762
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x150]
call fcn.00402f60
mov edi, 1
nop dword [eax]
push edi
lea eax, [ebp - 0x138]
push str.userdatauser_d.ghtr
push eax
call fcn.004f8210
add esp, 0xc
cmp dword [ebp - 0x154], 0x10
lea ecx, [ebp - 0x168]
push dword [ebp - 0x158]
cmovae ecx, dword [ebp - 0x168]
push ecx
push 0
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00404d50
mov dword [ebp - 0xf8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x108], xmm0
mov dword [ebp - 0xf4], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x108], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xf8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x1a0]
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 6
call fcn.00541a00
mov ecx, dword [ebp - 0xf4]
mov byte [ebp - 0x199], al
mov byte [ebp - 4], 5
cmp ecx, 0x10
jb 0x4a585d
mov edx, dword [ebp - 0x108]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a5853
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61c9
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x4a58b6
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a58ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61c9
push ecx
push edx
call fcn.0059b718
add esp, 8
cmp byte [ebp - 0x199], 0
je 0x4a5c99
push edi
lea eax, [ebp - 0x138]
push str.userdata_save_d
push eax
call fcn.004f8210
mov esi, eax
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 7
push eax
call fcn.004e5800
add esp, 0x10
push esi
push eax
push dword [ebp - 0x1a4]
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 8
call fcn.004a2020
lea eax, [ebp - 0x120]
mov byte [ebp - 4], 9
push eax
call fcn.004edca0
mov ecx, dword [ebp - 0x10c]
add esp, 4
mov byte [ebp - 4], 8
cmp ecx, 0x10
jb 0x4a5952
mov edx, dword [ebp - 0x120]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a5948
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61c9
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0xf
mov byte [ebp - 0x120], 0
mov byte [ebp - 4], 7
cmp ecx, 0x10
jb 0x4a59ab
mov edx, dword [ebp - 0x108]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a59a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61c9
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x4a5a04
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a59fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61c9
push ecx
push edx
call fcn.0059b718
add esp, 8
push edi
lea eax, [ebp - 0x150]
push 0x5dc93c
push eax
call fcn.004f8210
mov esi, eax
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 0xa
push eax
call fcn.004e5800
add esp, 0x10
push esi
push eax
push dword [ebp - 0x1a4]
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0xb
call fcn.004a2020
cmp dword [ebp - 0x10c], 0x10
lea eax, [ebp - 0x198]
push edi
push str.userdatauser_d.ghtr
lea esi, [ebp - 0x120]
mov byte [ebp - 4], 0xc
cmovae esi, dword [ebp - 0x120]
push eax
call fcn.004f8210
add esp, 0xc
cmp dword [ebp - 0x154], 0x10
lea ecx, [ebp - 0x168]
push dword [ebp - 0x158]
cmovae ecx, dword [ebp - 0x168]
push ecx
push 0
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.00404d50
mov dword [ebp - 0xf8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x108], xmm0
mov dword [ebp - 0xf4], 0
movups xmm0, xmmword [eax]
push 0
push esi
movups xmmword [ebp - 0x108], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xf8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x108]
cmp dword [ebp - 0xf4], 0x10
cmovae eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp - 0xf4]
cmp ecx, 0x10
jb 0x4a5b35
mov edx, dword [ebp - 0x108]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a5b2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61c9
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0x184]
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
mov byte [ebp - 4], 0xc
cmp ecx, 0x10
jb 0x4a5b8e
mov edx, dword [ebp - 0x198]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a5b84
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61c9
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x184], 0xf
mov byte [ebp - 0x198], 0
mov byte [ebp - 4], 0xb
cmp ecx, 0x10
jb 0x4a5be7
mov edx, dword [ebp - 0x120]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a5bdd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61c9
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0xf
mov byte [ebp - 0x120], 0
mov byte [ebp - 4], 0xa
cmp ecx, 0x10
jb 0x4a5c40
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a5c36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61c9
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x4a5c99
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a5c8f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61c9
push ecx
push edx
call fcn.0059b718
add esp, 8
inc edi
cmp edi, 5
jle 0x4a5780
mov ecx, dword [ebp - 0x154]
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x4a5ce1
mov edx, dword [ebp - 0x168]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a5cd7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61d3
push ecx
push edx
call fcn.0059b718
add esp, 8
mov esi, 1
nop word [eax + eax]
cmp dword [ebp - 0xdc], 0x10
lea eax, [ebp - 0x150]
push esi
push str.Th_d
lea edi, [ebp - 0xf0]
cmovae edi, dword [ebp - 0xf0]
push eax
call fcn.004f8210
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4a5d21
mov eax, dword [eax]
push edi
push 0
push eax
push str.Music
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x1a0]
cmp eax, 1
sete al
mov byte [ecx + esi + 0x785], al
mov ecx, dword [ebp - 0x13c]
cmp ecx, 0x10
jb 0x4a5d7d
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a5d73
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61c9
push ecx
push edx
call fcn.0059b718
add esp, 8
inc esi
cmp esi, 0x11
jl 0x4a5cf0
mov esi, 1
nop dword [eax]
cmp dword [ebp - 0xdc], 0x10
lea eax, [ebp - 0x150]
push esi
push str.Th_d
lea edi, [ebp - 0xf0]
mov dword [ebp - 0x1a4], esi
cmovae edi, dword [ebp - 0xf0]
push eax
call fcn.004f8210
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4a5dc7
mov eax, dword [eax]
push edi
push 0
push eax
push str.Achievement
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x1a0]
cmp eax, 1
sete al
mov byte [ecx + esi + 0x795], al
mov ecx, dword [ebp - 0x13c]
cmp ecx, 0x10
jb 0x4a5e23
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a5e19
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61c9
push ecx
push edx
call fcn.0059b718
add esp, 8
inc esi
cmp dword [ebp - 0x1a4], 0xf
jl 0x4a5d90
xor esi, esi
nop dword [eax]
nop word [eax + eax]
cmp dword [ebp - 0xdc], 0x10
lea eax, [ebp - 0x150]
push esi
push str.Th_d
lea edi, [ebp - 0xf0]
cmovae edi, dword [ebp - 0xf0]
push eax
call fcn.004f8210
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4a5e71
mov eax, dword [eax]
push edi
push 0
push eax
push 0x5dc978
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x1a0]
cmp eax, 1
mov ecx, dword [ebp - 0x13c]
sete al
mov byte [edx + esi + 0x7a5], al
cmp ecx, 0x10
jb 0x4a5ed3
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a5ec3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61c9
push ecx
push edx
call fcn.0059b718
mov edx, dword [ebp - 0x1a0]
add esp, 8
inc esi
cmp esi, 4
jl 0x4a5e40
mov dword [edx + 0x7b0], 0xffffffff
mov esi, 1
mov dword [edx + 0x7ac], 0
mov byte [edx + 0x7b5], 1
nop dword [eax]
cmp dword [ebp - 0xdc], 0x10
lea eax, [ebp - 0x150]
push esi
push str.Th_d
lea edi, [ebp - 0xf0]
cmovae edi, dword [ebp - 0xf0]
push eax
call fcn.004f8210
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4a5f31
mov eax, dword [eax]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push eax
push str.Chapter
call edi
mov ecx, dword [ebp - 0x1a0]
cmp eax, 1
sete al
mov byte [ecx + esi + 0x7b5], al
mov ecx, dword [ebp - 0x13c]
cmp ecx, 0x10
jb 0x4a5f8f
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a5f85
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61c9
push ecx
push edx
call fcn.0059b718
add esp, 8
inc esi
cmp esi, 8
jl 0x4a5f00
cmp dword [ebp - 0xdc], 0x10
lea eax, [ebp - 0xf0]
cmovae eax, dword [ebp - 0xf0]
push eax
push 0
push str.PlayTime
push str.MAIN
call edi
mov esi, dword [ebp - 0x1a0]
cmp dword [ebp - 0xdc], 0x10
mov dword [esi + 0x7c4], eax
lea eax, [ebp - 0xf0]
cmovae eax, dword [ebp - 0xf0]
push eax
push 0
push str.LastOpenSave
push str.MAIN
call edi
cmp dword [ebp - 0xdc], 0x10
mov dword [esi + 0x7d0], eax
lea eax, [ebp - 0xf0]
cmovae eax, dword [ebp - 0xf0]
push eax
push 0
push str.UbOpen
push str.MAIN
call edi
push dword [esi + 0x7d0]
cmp eax, 1
push str.userdata_save_dSaveInfor.ghtr
sete al
mov byte [esi + 0x7b4], al
lea eax, [ebp - 0x150]
push eax
call fcn.004f8210
mov esi, eax
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 0xe
push eax
call fcn.004e5800
add esp, 0x10
push esi
push eax
push dword [ebp - 0x1a4]
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0xf
call fcn.004a2020
cmp dword [ebp - 0x10c], 0x10
lea eax, [ebp - 0x120]
cmovae eax, dword [ebp - 0x120]
push eax
push 0
push 0x5dc9d0
push str.SAVE
call edi
mov ecx, dword [ebp - 0x1a0]
cmp eax, 1
sete al
mov byte [ecx + 0x7c2], al
mov ecx, dword [ebp - 0x10c]
cmp ecx, 0x10
jb 0x4a60d2
mov edx, dword [ebp - 0x120]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a60c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61d8
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0xf
mov byte [ebp - 0x120], 0
cmp ecx, 0x10
jb 0x4a6127
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a611d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61d8
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
cmp ecx, 0x10
jb 0x4a6178
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a616e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61d8
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0xdc]
cmp ecx, 0x10
jb 0x4a61ae
mov edx, dword [ebp - 0xf0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a61a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61dd
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059b734
mov esp, ebp
pop ebp
ret
call fcn.005a17d1
call fcn.005a17d1
call fcn.005a17d1
call fcn.005a17d1
call fcn.005a17d1
int3