Function at 0x40f570
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x440576
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
mov dword [esp + 0x10], 0
call fcn.0043bc70
add esp, 4
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x124], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0xc]
push ecx
push str.SOFTWARETencentQQBattleZoneSYS
push SysStringLen
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40f613
lea edx, [esp + 0xc]
push edx
push str.SOFTWARETencentQQBattleZoneSYS
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40f637
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
mov eax, dword [eax - 8]
push eax
push ecx
push 1
push 0
push str.HallDirectory
push edx
call edi
mov eax, dword [esp + 0xc]
push eax
call ebp
lea ecx, [esp + 0xc]
push ecx
push str.SOFTWARETencentQQBattleZoneSYS
push 0x80000001
call esi
test eax, eax
je 0x40f665
lea edx, [esp + 0xc]
push edx
push str.SOFTWARETencentQQBattleZoneSYS
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40f689
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
mov eax, dword [eax - 8]
push eax
push ecx
push 1
push 0
push str.HallDirectory
push edx
call edi
mov eax, dword [esp + 0xc]
push eax
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
push 0x400
push 0x400
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0xc]
push ecx
push str.SOFTWARETencentQQBattleZoneInstall
push SysStringLen
call esi
test eax, eax
je 0x40f6ef
lea edx, [esp + 0xc]
push edx
push str.SOFTWARETencentQQBattleZoneInstall
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40f70f
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x14]
push 1
push 0
push str.ExePath
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call ebp
lea edx, [esp + 0xc]
push edx
push str.SOFTWARETencentQQBattleZoneInstall
push 0x80000001
call esi
test eax, eax
je 0x40f73d
lea eax, [esp + 0xc]
push eax
push str.SOFTWARETencentQQBattleZoneInstall
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40f75d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push 1
push 0
push str.ExePath
push ecx
call edi
mov edx, dword [esp + 0xc]
push edx
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x11c
ret