Function at 0x408c10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c10f
mov eax, dword fs:[0]
push eax
mov eax, 0x16cc
call fcn.0042cec0
mov eax, dword [0x4be5b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x16cc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x16c8], eax
call fcn.0045f500
test eax, eax
je 0x409284
mov ecx, dword [eax]
push eax
call dword [ecx + 0x68]
test eax, eax
jne 0x408c7f
push str.DownloadAndInstallPushApps_pfnGetLuaExplainNULL_n
call fcn.0044e890
add esp, 4
jmp 0x409284
call eax
mov esi, eax
mov dword [ebp - 0x16d4], esi
test esi, esi
jne 0x408c9f
push str.DownloadAndInstallPushApps_pLuaExplainNULL_n
call fcn.0044e890
add esp, 4
jmp 0x409284
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
test eax, eax
jne 0x408cbd
push str.DownloadAndInstallPushApps_pfnGetLuaExplain_Init_failed__n
call fcn.0044e890
add esp, 4
jmp 0x40927d
push dword [ebp - 0x16c8]
lea eax, [ebp - 0x14a0]
push dword [ebp - 0x16cc]
push edi
push eax
call fcn.00409800
add esp, 0x10
mov ecx, dword [ebp - 0x1490]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x408d50
inc ecx
lea eax, [ebp - 0x14a0]
cmp dword [ebp - 0x148c], 0x10
push ecx
cmovae eax, dword [ebp - 0x14a0]
push eax
push 3
push str.lua_push
push str.SOFTWARELDSGameMaster
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub esp, 0x18
lea eax, [ebp - 0x14a0]
mov ecx, esp
push eax
call fcn.00404110
lea eax, [ebp - 0x14b8]
push eax
call fcn.004086c0
add esp, 0x1c
cmp dword [ebp - 0x14a8], 0
mov byte [ebp - 4], 1
jne 0x408d67
lea ecx, [ebp - 0x14b8]
call fcn.004044b0
lea ecx, [ebp - 0x14a0]
mov dword [ebp - 4], 0xffffffff
call fcn.004044b0
jmp 0x40927d
push 0x10
push 0x10
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [0x4c2634]
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x40], xmm0
call fcn.00435d0a
push 0x10
push 0x10
lea eax, [ebp - 0x30]
push eax
push dword [0x4c262c]
call fcn.00435d0a
push 0x10
push 0x10
lea eax, [ebp - 0x40]
push eax
push dword [0x4c2630]
call fcn.00435d0a
add esp, 0x30
lea ecx, [ebp - 0x1488]
push str._envExplain____r_n
call fcn.00403df0
push 0x48461f
lea ecx, [ebp - 0x1484]
mov byte [ebp - 4], 2
call fcn.00403df0
push str._envExplain.strEnv__inst____r_n
lea ecx, [ebp - 0x1480]
mov byte [ebp - 4], 3
call fcn.00403df0
push 0x48461f
lea ecx, [ebp - 0x147c]
mov byte [ebp - 4], 4
call fcn.00403df0
lea eax, [ebp - 0x16cc]
mov byte [ebp - 4], 5
push eax
call fcn.0040b660
push 0xfde9
push dword [eax]
lea ecx, [ebp - 0x15bc]
mov byte [ebp - 4], 6
call fcn.00404020
mov esi, dword [eax]
lea ecx, [ebp - 0x1478]
push str._envExplain.strPid___s____r_n
mov byte [ebp - 4], 7
call fcn.00403df0
push esi
lea ecx, [ebp - 0x1474]
mov byte [ebp - 4], 8
call fcn.00403df0
mov eax, dword [ebp - 0x15bc]
lea ecx, [ebp - 0x15b8]
cmp eax, ecx
je 0x408e63
push eax
call fcn.0043442e
add esp, 4
mov edx, dword [ebp - 0x16cc]
or edi, 0xffffffff
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408e87
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x16c8]
push eax
call fcn.0040bcd0
push 0xfde9
push dword [eax]
lea ecx, [ebp - 0x16c0]
mov byte [ebp - 4], 0xc
call fcn.00404020
mov esi, dword [eax]
lea ecx, [ebp - 0x1470]
push str._envExplain.strSubPid___s____r_n
mov byte [ebp - 4], 0xd
call fcn.00403df0
push esi
lea ecx, [ebp - 0x146c]
mov byte [ebp - 4], 0xe
call fcn.00403df0
mov eax, dword [ebp - 0x16c0]
lea ecx, [ebp - 0x16bc]
cmp eax, ecx
je 0x408ee8
push eax
call fcn.0043442e
add esp, 4
mov edx, dword [ebp - 0x16c8]
mov eax, edi
mov byte [ebp - 4], 0x11
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408f09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x16cc]
push eax
call fcn.0040a550
push 0xfde9
push dword [eax]
lea ecx, [ebp - 0x15bc]
mov byte [ebp - 4], 0x12
call fcn.00404020
mov esi, dword [eax]
lea ecx, [ebp - 0x1468]
push str._envExplain.strFrom___s____r_n
mov byte [ebp - 4], 0x13
call fcn.00403df0
push esi
lea ecx, [ebp - 0x1464]
mov byte [ebp - 4], 0x14
call fcn.00403df0
mov eax, dword [ebp - 0x15bc]
lea ecx, [ebp - 0x15b8]
cmp eax, ecx
je 0x408f6a
push eax
call fcn.0043442e
add esp, 4
mov edx, dword [ebp - 0x16cc]
mov eax, edi
mov byte [ebp - 4], 0x17
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408f8b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x16c8]
push eax
call fcn.004554b0
add esp, 4
push 0xfde9
push dword [eax]
lea ecx, [ebp - 0x16c0]
mov byte [ebp - 4], 0x18
call fcn.00404020
mov esi, dword [eax]
lea ecx, [ebp - 0x1460]
push str._envExplain.strAppVer___s____r_n
mov byte [ebp - 4], 0x19
call fcn.00403df0
push esi
lea ecx, [ebp - 0x145c]
mov byte [ebp - 4], 0x1a
call fcn.00403df0
mov eax, dword [ebp - 0x16c0]
lea ecx, [ebp - 0x16bc]
cmp eax, ecx
je 0x408fef
push eax
call fcn.0043442e
add esp, 4
mov edx, dword [ebp - 0x16c8]
mov byte [ebp - 4], 0x1d
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40900e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str._envExplain.ludashi___s____r_n
lea ecx, [ebp - 0x1458]
call fcn.00403df0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x1e
push eax
lea ecx, [ebp - 0x1454]
call fcn.00403df0
push str._envExplain.bizhi___s____r_n
lea ecx, [ebp - 0x1450]
mov byte [ebp - 4], 0x1f
call fcn.00403df0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x20
push eax
lea ecx, [ebp - 0x144c]
call fcn.00403df0
push str._envExplain.mgame___s____r_n
lea ecx, [ebp - 0x1448]
mov byte [ebp - 4], 0x21
call fcn.00403df0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x22
push eax
lea ecx, [ebp - 0x1444]
call fcn.00403df0
push 0x400
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 0x23
push 0
push eax
call fcn.00432c40
add esp, 0xc
mov dword [ebp - 0x16c4], 9
xor edi, edi
lea esi, [ebp - 0x1484]
nop dword [eax + eax]
push dword [esi]
mov eax, 0x3ff
push dword [esi - 4]
sub eax, edi
push eax
lea eax, [ebp - 0x440]
add eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
test eax, eax
js 0x4090d5
add edi, eax
add esi, 8
sub dword [ebp - 0x16c4], 1
jne 0x4090b0
push 0x800
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.00432c40
mov esi, dword [ebp - 0x16d4]
lea ecx, [ebp - 0x16d0]
add esp, 0xc
mov dword [ebp - 0x16d0], 0x7ff
mov eax, dword [esi]
push ecx
lea ecx, [ebp - 0xc40]
push ecx
push 1
lea ecx, [ebp - 0x440]
push ecx
mov ecx, esi
call dword [eax + 8]
push 0x404500
push 9
push 8
lea eax, [ebp - 0x1488]
mov byte [ebp - 4], 1
push eax
call fcn.0042ca33
push 0
lea eax, [ebp - 0x16c4]
mov dword [ebp - 0x16c4], 0
push eax
push 0
push 0xf023f
push 0
push 0
push 0
push str.SOFTWARELDSGameMasterpush
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push dword [ebp - 0x16c4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x800
lea eax, [ebp - 0x1440]
push 0
push eax
call fcn.00432c40
add esp, 0xc
mov dword [ebp - 0x16d8], 0x7ff
cmp dword [ebp - 0x14a4], 0x10
lea eax, [ebp - 0x16d8]
mov edx, dword [esi]
lea ecx, [ebp - 0x14b8]
cmovae ecx, dword [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x1440]
push eax
mov eax, dword [ebp - 0x14a8]
inc eax
push eax
push ecx
mov ecx, esi
call dword [edx + 8]
mov edx, dword [ebp - 0x14a4]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x40920a
mov ecx, dword [ebp - 0x14b8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409200
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4092a4
push edx
push ecx
call fcn.0042c4b6
add esp, 8
mov edx, dword [ebp - 0x148c]
mov dword [ebp - 0x14a8], 0
mov dword [ebp - 0x14a4], 0xf
mov byte [ebp - 0x14b8], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x409262
mov ecx, dword [ebp - 0x14a0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409258
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4092a9
push edx
push ecx
call fcn.0042c4b6
add esp, 8
mov dword [ebp - 0x1490], 0
mov dword [ebp - 0x148c], 0xf
mov byte [ebp - 0x14a0], 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, 1
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.0042c75e
mov esp, ebp
pop ebp
ret
call fcn.0043463e
call fcn.0043463e
int3