Function at 0x51c680
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d1c6
mov eax, dword fs:[0]
push eax
sub esp, 0x8a4
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x888], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x8a4], 0
mov dword [ebp - 0x8a0], 0
mov dword [ebp - 0x89c], 0
mov dword [ebp - 0x8b0], 0
mov dword [ebp - 0x8ac], 0
mov dword [ebp - 0x8a8], 0
mov byte [ebp - 4], 6
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51c717
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51c72c
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51c730
mov ecx, edx
call esi
lea ebx, [eax + 0x10]
mov dword [ebp - 0x88c], ebx
mov byte [ebp - 4], 7
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51c759
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51c76e
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51c772
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x860], eax
mov byte [ebp - 4], 8
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51c79b
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51c7b0
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51c7b4
mov ecx, edx
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x898], esi
mov byte [ebp - 4], 9
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51c7dd
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov edi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51c7f2
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51c7f6
mov ecx, edx
call edi
add eax, 0x10
mov dword [ebp - 0x87c], eax
mov byte [ebp - 4], 0xa
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51c81f
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov edi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51c834
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51c838
mov ecx, edx
call edi
add eax, 0x10
mov dword [ebp - 0x894], eax
mov eax, dword [ebp - 0x888]
mov ecx, eax
push 0xbb8
mov byte [ebp - 4], 0xb
push 6
mov dword [eax + 0x400], 0xbb8
call fcn.0050fd60
mov eax, dword [0x59fb74]
cmp dword [eax - 0xc], 0
jne 0x51c894
push 0x20
push str.SoftwareTencentMobileGamePCUI
lea ecx, [ebp - 0x87c]
call fcn.00402d50
push 0x27
push str.SoftwareTencentMobileGamePCAppMarket
lea ecx, [ebp - 0x894]
call fcn.00402d50
jmp 0x51c8c0
push eax
lea eax, [ebp - 0x87c]
push str.SoftwareTencent_sUI
push eax
call fcn.004023f0
push dword [0x59fb74]
lea eax, [ebp - 0x894]
push str.SoftwareTencent_sAppMarket
push eax
call fcn.004023f0
add esp, 0x18
mov edi, dword [ebp - 0x87c]
lea eax, [ebp - 0x864]
push eax
push 0x2001f
push 0
push edi
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x864], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x51dab2
mov eax, dword [ebp - 0x864]
push 0x208
mov dword [ebp - 0x8a4], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x8a0], 0
call fcn.0049e130
add esp, 0xc
mov dword [ebp - 0x86c], 0x208
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x870]
push eax
push 0
push str.InstallPath
push dword [ebp - 0x8a4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x51dab2
mov eax, dword [ebp - 0x870]
cmp eax, 1
je 0x51c96c
cmp eax, 2
jne 0x51dab2
mov eax, dword [ebp - 0x86c]
test eax, eax
je 0x51c990
test al, 1
jne 0x51dab2
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x51c999
jmp 0x51dab2
xor eax, eax
mov word [ebp - 0x218], ax
push 0x57087c
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x88c]
push 0x5701ac
push eax
call fcn.004023f0
add esp, 0x10
mov dword [ebp - 0x86c], 0
lea eax, [ebp - 0x86c]
push eax
push 0x2001f
push 0
push dword [ebp - 0x894]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x51daac
mov ebx, dword [ebp - 0x86c]
push 0x208
push eax
mov dword [ebp - 0x8ac], eax
lea eax, [ebp - 0x420]
push eax
mov dword [ebp - 0x8b0], ebx
call fcn.0049e130
add esp, 0xc
mov dword [ebp - 0x86c], 0x208
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x870]
push eax
push 0
push 0x5707c4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x51daac
mov eax, dword [ebp - 0x870]
cmp eax, 1
je 0x51ca5a
cmp eax, 2
jne 0x51daac
mov eax, dword [ebp - 0x86c]
test eax, eax
je 0x51ca7e
test al, 1
jne 0x51daac
shr eax, 1
cmp word [ebp + eax*2 - 0x422], 0
je 0x51ca87
jmp 0x51daac
xor eax, eax
mov word [ebp - 0x420], ax
push 0x5708bc
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x898]
push 0x5707dc
push eax
call fcn.004023f0
add esp, 0xc
mov dword [ebp - 0x870], esp
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x884], esp
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x51cac7
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi - 4], 0
lea eax, [esi - 4]
jl 0x51cadd
cmp ecx, dword [esi - 0x10]
jne 0x51cadd
lea ebx, [esi - 0x10]
lock inc dword [eax]
jmp 0x51cb15
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
jne 0x51caf1
call fcn.00402c20
mov eax, dword [esi - 0xc]
lea ecx, [ebx + 0x10]
mov dword [ebx + 4], eax
mov edx, dword [esi - 0xc]
lea eax, [edx*2 + 2]
push eax
push esi
lea edx, [edx*2 + 2]
call fcn.004c7670
add esp, 8
mov ecx, dword [ebp - 0x870]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xc
push 0x57054c
call fcn.00401ff0
mov ebx, dword [ebp - 0x888]
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.005145e0
push 0x20a
lea eax, [ebp - 0x62c]
push 0
push eax
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x62c]
push 0x104
push eax
push 0x90
push dword [ebx + 0x3f0]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x890]
call fcn.00401ff0
mov byte [ebp - 4], 0xd
mov eax, dword [0x59fadc]
mov dword [ebp - 0x870], 1
cmp eax, 1
jne 0x51cd2b
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51cbbf
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51cbd4
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51cbd8
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x86c], eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x860]
cmp dword [eax - 0xc], 0
je 0x51cc03
push 1
push 0x570284
lea ecx, [ebp - 0x860]
call fcn.00402320
push dword [0x59fb18]
lea eax, [ebp - 0x86c]
push 0x570900
push eax
call fcn.004023f0
mov esi, dword [ebp - 0x86c]
lea ecx, [ebp - 0x860]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.00402320
mov eax, dword [ebp - 0x860]
cmp dword [eax - 0xc], 0
je 0x51cc50
push 1
push 0x5708fc
lea ecx, [ebp - 0x860]
call fcn.00402320
push 0xe
push 0x5708dc
lea ecx, [ebp - 0x860]
call fcn.00402320
mov dword [ebp - 0x870], 2
add esi, 0xfffffff0
mov byte [ebp - 4], 0xd
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x51cc95
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x51d7b4
call edx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x890]
cmp dword [eax - 0xc], 0
je 0x51d804
push 0x570c2c
lea ecx, [ebp - 0x880]
call fcn.00401ff0
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 0x1d
push ecx
mov edx, eax
lea ecx, [ebp - 0x884]
call fcn.00401e60
add esp, 4
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x860]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00402320
mov byte [ebp - 4], 0x1d
or eax, 0xffffffff
mov edx, dword [ebp - 0x884]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51d7cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d7c9
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x51d7cb
test eax, eax
je 0x51cd41
cmp eax, 0x2710
je 0x51cd41
cmp eax, 0x1388
jne 0x51cc95
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51cd5d
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51cd72
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51cd76
mov ecx, edx
call esi
lea ebx, [eax + 0x10]
mov dword [ebp - 0x878], ebx
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x86c]
call fcn.00401ff0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x884]
call fcn.00401ff0
mov esi, dword [ebp - 0x888]
mov byte [ebp - 4], 0x11
add esi, 0x64
je 0x51cdbf
add esi, 0xffffffdc
jmp 0x51cdc1
xor esi, esi
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x24]
push 0x79
call dword [eax + 0x38]
test eax, eax
jne 0x51cdfe
mov eax, dword [esi + 0x114]
lea ecx, [esi + 0x114]
push 0x79
call dword [eax + 0x38]
test eax, eax
jne 0x51cdfe
mov eax, dword [esi + 0x204]
lea ecx, [esi + 0x204]
push 0x79
call dword [eax + 0x38]
test eax, eax
je 0x51d716
mov eax, dword [eax + 0x7c]
shr eax, 2
and eax, 1
je 0x51d716
cmp dword [0x59fbf8], 0
je 0x51d12f
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51ce36
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51ce4b
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51ce4f
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x868], eax
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x890]
cmp dword [eax - 0xc], 0
jne 0x51ce81
push dword [ebp + 0xc]
lea eax, [ebp - 0x868]
push 0x57096c
push eax
call fcn.004023f0
add esp, 0xc
jmp 0x51ce99
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x868]
push 0x57094c
push eax
call fcn.004023f0
add esp, 0x10
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51ceb5
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51ceca
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51cece
mov ecx, edx
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x864], esi
mov byte [ebp - 4], 0x13
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51cef7
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov edi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51cf0c
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51cf10
mov ecx, edx
call edi
lea edi, [eax + 0x10]
mov dword [ebp - 0x880], edi
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x86c]
cmp dword [eax - 0xc], 0
je 0x51cf47
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x864]
push 0x570920
push eax
call fcn.004023f0
mov esi, dword [ebp - 0x864]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x51cf7c
mov eax, dword [ebp - 0x884]
cmp dword [eax - 0xc], 0
je 0x51cf7c
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x864]
push 0x5709fc
push eax
call fcn.004023f0
mov esi, dword [ebp - 0x864]
add esp, 0x10
mov byte [ebp - 4], 0x13
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x51cfb1
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51cfaf
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x51cfb1
call edx
lea ecx, [esi - 0x10]
lea edi, [ebx - 0x10]
mov dword [ebp - 0x880], ecx
cmp ecx, edi
je 0x51cffb
cmp dword [edi + 0xc], 0
jl 0x51cfe6
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x51cfe6
call fcn.004021e0
mov ecx, edi
mov ebx, eax
call fcn.00402e90
add ebx, 0x10
mov dword [ebp - 0x878], ebx
jmp 0x51cffb
push dword [esi - 0xc]
lea ecx, [ebp - 0x878]
push esi
call fcn.00402d50
mov ebx, dword [ebp - 0x878]
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51d017
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov edi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d02c
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51d030
mov ecx, edx
call edi
add eax, 0x10
mov dword [ebp - 0x874], eax
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x874]
push dword [ebp + 0x10]
push 0x5709ec
push eax
call fcn.004023f0
add esp, 0xc
lea ecx, [ebp - 0x868]
push 0x12
push str.__from_DesktopLink
call fcn.00402320
mov edi, dword [ebp - 0x868]
mov ecx, dword [ebp - 0x88c]
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp - 0x874]
mov edx, esi
push edi
call fcn.004df0e0
add esp, 0xc
mov byte [ebp - 4], 0x13
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x51d0bc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d0ba
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x51d0bc
call edx
mov byte [ebp - 4], 0x12
or eax, 0xffffffff
mov ecx, dword [ebp - 0x880]
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x51d0f8
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d0f4
mov eax, dword [edx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call esi
jmp 0x51d0fe
mov ecx, edx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0x11
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x51d12f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d12d
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call esi
jmp 0x51d12f
call edx
cmp dword [0x59fbfc], 0
je 0x51d3a0
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51d158
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d16d
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51d171
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x864], eax
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x890]
cmp dword [eax - 0xc], 0
jne 0x51d1a3
push dword [ebp + 0xc]
lea eax, [ebp - 0x864]
push str._startpkg__s
push eax
call fcn.004023f0
add esp, 0xc
jmp 0x51d1bb
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x864]
push str._startpkg__s__s
push eax
call fcn.004023f0
add esp, 0x10
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51d1d7
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d1ec
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51d1f0
mov ecx, edx
call esi
lea edi, [eax + 0x10]
mov dword [ebp - 0x868], edi
push ebx
mov byte [ebp - 4], 0x17
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x51d248
lea ecx, [ebx - 0x10]
lea esi, [edi - 0x10]
cmp ecx, esi
je 0x51d26c
cmp dword [esi + 0xc], 0
jl 0x51d237
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x51d237
call fcn.004021e0
mov ecx, esi
mov edi, eax
call fcn.00402e90
add edi, 0x10
mov dword [ebp - 0x868], edi
jmp 0x51d26c
push dword [ebx - 0xc]
lea ecx, [ebp - 0x868]
push ebx
call fcn.00402d50
jmp 0x51d266
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x868]
push 0x570a5c
push eax
call fcn.004023f0
add esp, 0x10
mov edi, dword [ebp - 0x868]
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51d288
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d29d
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51d2a1
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x874], eax
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x874]
push dword [ebp + 0x10]
push 0x570a4c
push eax
call fcn.004023f0
add esp, 0xc
lea ecx, [ebp - 0x864]
push 0x11
push str.__from_QuickStart
call fcn.00402320
mov ebx, dword [ebp - 0x864]
mov edx, 0x570b34
mov esi, dword [ebp - 0x874]
mov ecx, dword [ebp - 0x88c]
push edi
push dword [ebp + 0x10]
push ebx
push esi
call fcn.004deac0
add esp, 0x10
mov byte [ebp - 4], 0x17
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x51d331
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d32f
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x51d331
call edx
or esi, 0xffffffff
mov byte [ebp - 4], 0x16
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x51d36a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d368
mov eax, dword [ecx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x51d370
call edx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0x11
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x51d3a0
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d39e
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x51d3a0
call edx
cmp dword [0x59fc00], 0
je 0x51d6cd
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51d3c9
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d3de
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51d3e2
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x874], eax
mov byte [ebp - 4], 0x19
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51d40b
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d420
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51d424
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x864], eax
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x86c]
push dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jne 0x51d484
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x874]
push str._sDownloader_sSetup.exe
push eax
call fcn.004023f0
mov eax, dword [0x59fb74]
add esp, 0x10
cmp dword [eax - 0xc], 0
jne 0x51d47c
lea eax, [ebp - 0x864]
push str._uninstall
push eax
call fcn.004023f0
add esp, 8
jmp 0x51d4b9
push eax
push str._uninstall__product_regkey__s
jmp 0x51d4aa
push eax
lea eax, [ebp - 0x874]
push str._sGF186TUninstall.exe
push eax
call fcn.004023f0
mov eax, dword [0x59fb74]
add esp, 0x10
cmp dword [eax - 0xc], 0
je 0x51d4b9
push eax
push str._product_regkey__s
lea eax, [ebp - 0x864]
push eax
call fcn.004023f0
add esp, 0xc
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51d4d5
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d4ea
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51d4ee
mov ecx, edx
call esi
lea edi, [eax + 0x10]
mov dword [ebp - 0x868], edi
mov byte [ebp - 4], 0x1b
mov esi, dword [ebp - 0x878]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x51d54c
lea ecx, [esi - 0x10]
lea ebx, [edi - 0x10]
cmp ecx, ebx
je 0x51d570
cmp dword [ebx + 0xc], 0
jl 0x51d53b
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x51d53b
call fcn.004021e0
mov ecx, ebx
mov edi, eax
call fcn.00402e90
add edi, 0x10
mov dword [ebp - 0x868], edi
jmp 0x51d570
push dword [esi - 0xc]
lea ecx, [ebp - 0x868]
push esi
call fcn.00402d50
jmp 0x51d56a
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x868]
push str._sIcons_sGame.Ico
push eax
call fcn.004023f0
add esp, 0x10
mov edi, dword [ebp - 0x868]
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51d58c
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d5a1
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x51d5a5
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x880], eax
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x880]
push dword [ebp + 0x10]
push str.Uninstall__s.lnk
push eax
call fcn.004023f0
mov esi, dword [ebp - 0x880]
mov edx, 0x570c30
mov ebx, dword [ebp - 0x874]
mov ecx, ebx
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x864]
push esi
call fcn.004deac0
add esp, 0x1c
mov byte [ebp - 4], 0x1b
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x51d623
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d621
mov eax, dword [ecx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call esi
jmp 0x51d629
call edx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0x1a
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x51d65a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d658
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call esi
jmp 0x51d65a
call edx
mov byte [ebp - 4], 0x19
or edi, 0xffffffff
mov ecx, dword [ebp - 0x864]
mov eax, edi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x51d69b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d697
mov eax, dword [edx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call esi
jmp 0x51d6a1
mov ecx, edx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0x11
add ebx, 0xfffffff0
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x51d6cd
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d712
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call esi
mov edi, dword [ebp - 0x87c]
mov ebx, dword [ebp - 0x878]
mov byte [ebp - 4], 0x10
or eax, 0xffffffff
mov ecx, dword [ebp - 0x884]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x51d74c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d748
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x51d74c
call edx
jmp 0x51d6cd
mov eax, dword [ebp - 0x860]
cmp dword [eax - 0xc], 0
je 0x51d734
push 1
push 0x5708d8
lea ecx, [ebp - 0x860]
call fcn.00402320
push 0xe
push str._nodesktopicon
lea ecx, [ebp - 0x860]
call fcn.00402320
jmp 0x51d6d9
mov ecx, edx
call esi
mov byte [ebp - 4], 0xf
or eax, 0xffffffff
mov ecx, dword [ebp - 0x86c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x51d789
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d785
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x51d789
mov ecx, edx
call esi
mov byte [ebp - 4], 0xd
add ebx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x51cc95
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51cc93
mov eax, dword [ecx + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call ebx
jmp 0x51cc9b
call esi
mov byte [ebp - 4], 0xd
or eax, 0xffffffff
mov ecx, dword [ebp - 0x880]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x51d804
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51d800
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x51d804
mov ecx, edx
call esi
mov ecx, dword [0x59fbb8]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x51d84a
jns 0x51d81d
push 0x80070057
call fcn.00401b40
cmp word [ecx], 0x20
je 0x51d83b
push 1
push 0x570c28
lea ecx, [ebp - 0x860]
call fcn.00402320
mov ecx, dword [0x59fbb8]
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x860]
call fcn.00402320
mov esi, dword [ebp - 0x860]
cmp dword [esi - 0xc], 0
jl 0x51d871
push str._engine
push esi
call fcn.0049d574
add esp, 8
test eax, eax
je 0x51d871
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x51d8c5
cmp dword [0x59fb8c], 0
je 0x51d89b
cmp dword [esi - 0xc], 0
je 0x51d892
push 1
push 0x570ca0
lea ecx, [ebp - 0x860]
call fcn.00402320
push 0xb
push 0x570c88
jmp 0x51d8ba
cmp dword [esi - 0xc], 0
je 0x51d8b3
push 1
push 0x570c84
lea ecx, [ebp - 0x860]
call fcn.00402320
push 0xb
push str._engine_vdi
lea ecx, [ebp - 0x860]
call fcn.00402320
mov ecx, dword [0x59fc08]
lea eax, [ebp - 0x884]
push eax
push dword [ebp - 0x860]
mov dword [ebp - 0x884], 0
cmp dword [ecx - 0xc], 0
jne 0x51d8fa
mov ecx, dword [ebp - 0x870]
mov edx, str.InstallApk
call fcn.004c7c30
jmp 0x51d904
mov edx, 0x570cac
call fcn.004c7770
add esp, 8
lea ecx, [ebp - 0x85c]
mov esi, eax
call fcn.00429390
mov ebx, dword [ebp - 0x888]
mov byte [ebp - 4], 0x1f
mov dword [ebp - 0x85c], 0x64
mov dword [ebp - 0x854], 9
mov eax, dword [ebx + 0x490]
mov dword [ebp - 0x7c4], eax
mov eax, dword [0x59fadc]
mov dword [ebp - 0x744], eax
mov eax, dword [ebx + 0x494]
mov dword [ebp - 0x740], eax
mov eax, dword [ebx + 0x498]
mov dword [ebp - 0x73c], eax
mov eax, dword [0x59fae0]
mov dword [ebp - 0x72c], eax
mov eax, dword [ebx + 0x4a0]
mov dword [ebp - 0x728], eax
lea eax, [ebx + 0x4c0]
push eax
mov dword [ebp - 0x858], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 0x724], eax
mov eax, dword [ebx + 0x478]
mov dword [ebp - 0x870], eax
test eax, eax
je 0x51d9fe
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51d9a6
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x51d9fe
lea ebx, [ecx + ecx]
mov eax, ebx
call fcn.0049bc00
mov esi, esp
test esi, esi
je 0x51d9f8
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push dword [ebp - 0x870]
mov byte [esi], 0
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 0x888]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x51da00
mov ebx, dword [ebp - 0x888]
xor esi, esi
cmp byte [esi], 0
jne 0x51da09
xor ecx, ecx
jmp 0x51da19
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51da10
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x7bc]
call fcn.00406560
push ecx
lea eax, [ebp - 0x85c]
push eax
call fcn.0044c609
mov ecx, eax
call fcn.0042af00
lea ecx, [ebp - 0x85c]
mov byte [ebp - 4], 0xd
call fcn.0042a2e0
mov ecx, ebx
call fcn.00510380
push 0x2710
push 0x2710
mov ecx, ebx
mov dword [ebx + 0x400], 0x2710
call fcn.0050fd60
mov byte [ebp - 4], 0xb
or eax, 0xffffffff
mov edx, dword [ebp - 0x890]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51daa6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51daa4
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x51daa6
call esi
mov esi, dword [ebp - 0x898]
mov ebx, dword [ebp - 0x88c]
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
mov ecx, dword [ebp - 0x894]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x51daff
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x870], edi
mov edi, dword [ebp - 0x87c]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51daf7
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x51daff
mov ecx, edx
call dword [ebp - 0x870]
mov byte [ebp - 4], 9
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x51db34
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51db32
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x51db34
call edx
or edi, 0xffffffff
mov byte [ebp - 4], 8
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x51db6b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51db69
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x51db6b
call edx
mov byte [ebp - 4], 7
mov eax, edi
mov ecx, dword [ebp - 0x860]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x51dba7
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51dba3
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x51dba7
mov ecx, edx
call esi
mov byte [ebp - 4], 6
add ebx, 0xfffffff0
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x51dbdd
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51dbdb
mov eax, dword [ecx + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call ebx
jmp 0x51dbe3
call edx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x8b0]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x51dbf6
push eax
call esi
mov eax, dword [ebp - 0x8a4]
test eax, eax
je 0x51dc03
push eax
call esi
mov byte [ebp - 4], 3
mov eax, edi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x51dc38
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51dc34
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x51dc38
mov ecx, edx
call esi
mov byte [ebp - 4], 2
mov eax, edi
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x51dc6d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51dc69
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x51dc6d
mov ecx, edx
call esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x51dca0
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51dc9c
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x51dca0
mov ecx, edx
call esi
lea ecx, [ebp + 0x14]
call fcn.00402ed0
lea ecx, [ebp + 0x18]
call fcn.00402ed0
lea esp, [ebp - 0x8c0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret 0x14