Function at 0x412ca0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43248b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x445010]
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 edi, dword [sym.imp.commutil.dll_void___cdecl_Logger::LogW_int__wchar_t_const___wchar_t_const__]
push str.schedule_task_xp
push str.GxxTaskScheduler
push 1
call edi
add esp, 0xc
mov dword [ebp - 0x8c], 0
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], 0
push eax
lea eax, [ebp - 0x8c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412f03
cmp dword [ebp - 0x8c], eax
je 0x412f03
call dword [sym.imp.commutil.dll_class_boost::filesystem::path_const____cdecl_fshelper::PathHelper::getAppFolder_void_]
xor ecx, ecx
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], 0
call fcn.0040e200
push str.Garena.exe
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call fcn.0040e0f0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
call fcn.0042c0d0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00410540
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ebx, eax
lea eax, [ebp - 0x28]
add esp, 0xc
cmp eax, ebx
je 0x412dd7
cmp dword [ebp - 0x14], 8
jb 0x412dba
push dword [ebp - 0x28]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040df90
cmp dword [ebp - 0x5c], 8
jb 0x412de5
push dword [ebp - 0x70]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x412e07
push dword [ebp - 0x40]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x412e2f
push dword [ebp - 0x88]
call esi
add esp, 4
push str.__silentlaunch
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.004137c0
add esp, 4
push str.__gxxsvclaunch
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.004138b0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x2c], 8
jb 0x412e6a
push dword [ebp - 0x40]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x48]
cmovae ecx, dword [ebp - 0x58]
mov dword [ebp - 0x30], 0
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.gxx_speed_launcher
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x412ec0
push eax
push str.set_reg_valerr_d
push str.GxxTaskScheduler
push 3
call edi
add esp, 0x10
push str.schedule_task_complete
push str.GxxTaskScheduler
push 1
call edi
add esp, 0xc
cmp dword [ebp - 0x44], 8
jb 0x412edf
push dword [ebp - 0x58]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x412f15
push dword [ebp - 0x28]
call esi
add esp, 4
jmp 0x412f15
push eax
push str.create_reg_keyerr_d
push str.GxxTaskScheduler
push 3
call edi
add esp, 0x10
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.004304e8
mov esp, ebp
pop ebp
ret