Function at 0x458647
Capabilities:
Accept command line arguments
Acquire debug privileges
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1210]
mov eax, 0x1210
call fcn.00476c90
push 0xffffffffffffffff
push 0x4b242c
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x120c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Initial_setup_information_r_n
lea eax, [ebp - 0x14]
push 0x4f7cd0
push eax
call fcn.00403a6b
push dword [eax]
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00404d91
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add esp, 0x10
add ecx, 0xfffffff0
call fcn.00402870
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Command_Line:__s
call fcn.00404d91
push str.SetupTemplate_version_:_13.0.0.1451_Base_Revision_2654851
call fcn.00404d91
add esp, 0xc
call fcn.00456226
call fcn.00401295
cmp eax, esi
je 0x4586ec
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx]
lea ecx, [ebp + 0x624]
call fcn.0044ee26
xor edi, edi
lea eax, [ebp + 0x624]
mov ebx, 0x4f7c38
inc edi
push eax
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.00439db6
lea ecx, [ebp - 0xd]
call fcn.00453d57
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push str.SeDebugPrivilege
mov byte [ebp - 4], 2
call edi
push eax
lea ecx, [ebp - 0xd]
call fcn.00455e0e
push 1
push str.SeRestorePrivilege
call edi
push eax
lea ecx, [ebp - 0xd]
call fcn.00455e0e
lea ecx, [ebp + 0x64c]
call fcn.0044d5c2
mov edi, eax
cmp edi, esi
jne 0x45879b
call fcn.00457600
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 1
call fcn.00453d5a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x624]
call fcn.0044e895
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120c]
xor ecx, ebp
call fcn.004755ea
add ebp, 0x1210
leave
ret
lea eax, [ebp + 0x64c]
lea ecx, [ebp + 0x624]
mov dword [0x4f7c88], eax
call fcn.0044d5e2
push esi
push esi
push 0xbc
call fcn.00402d9c
mov ecx, eax
call fcn.00402e2d
lea edx, [ebp - 0x1c]
mov ecx, edi
mov dword [ebp - 0x1c], esi
call fcn.00457cb5
test eax, eax
jne 0x458845
push esi
push esi
push 0x75
call fcn.00402d9c
mov ecx, eax
call fcn.00402e2d
push esi
push esi
push 0xe17
lea ecx, [ebp + 0x64c]
call fcn.0044dc93
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00457600
mov ecx, edi
call fcn.0045f93b
mov ebx, eax
cmp ebx, esi
je 0x458830
mov ecx, edi
call fcn.0045f45e
mov ecx, eax
call fcn.0043cc96
mov eax, dword [eax]
mov ecx, dword [ebx]
push 1
push eax
push ebx
call dword [ecx + 0x84]
cmp dword [ebp - 0x1c], esi
je 0x45875b
mov ecx, edi
call fcn.0045f96b
jmp 0x45875b
mov ecx, edi
call fcn.0045f429
test eax, eax
je 0x4588ed
xor eax, eax
push 0x206
mov word [ebp + 0x1004], ax
lea eax, [ebp + 0x1006]
push esi
push eax
call fcn.00475570
add esp, 0xc
push 0x104
lea eax, [ebp + 0x1004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x1004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.entclient360entu.dll
lea eax, [ebp + 0x1004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x1004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4588ed
lea eax, [ebp + 0x1004]
push eax
call fcn.00431007
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x4588ed
push str.CheckEnv
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4588ed
push esi
call eax
cmp eax, 1
jne 0x45875b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, edi
call fcn.0045f5c3
test eax, eax
je 0x4589b0
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.004619ab
push str.parent
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00402530
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
lea ecx, [ebp - 0x20]
push eax
mov byte [ebp - 4], 4
call fcn.00403bfe
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
mov ecx, edi
call fcn.0045f5c3
test eax, eax
je 0x458996
push dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.004619ab
push str.grandpa
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00402530
mov eax, dword [ebp - 0x24]
push dword [eax - 0xc]
lea ecx, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 6
call fcn.00403bfe
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00402870
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00402870
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402870
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00402870
push esi
push esi
push 0xbd
call fcn.00402d9c
mov ecx, eax
call fcn.00402e2d
mov dword [ebp - 0x5c], 0x4c0944
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x5c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.0045672f
push esi
push esi
lea ecx, [ebp + 0x624]
call fcn.0045688f
test eax, eax
jne 0x458a45
push esi
push esi
push 0xe17
lea ecx, [ebp + 0x64c]
call fcn.0044dc93
call fcn.00457600
lea ecx, [ebp - 0x4c]
call fcn.0044d69b
lea ecx, [ebp - 0x58]
call fcn.0044d69b
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 1
call fcn.00453d5a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x624]
call fcn.0044e895
mov eax, esi
jmp 0x458778
mov ecx, edi
call fcn.0045f45e
mov ecx, eax
call fcn.0043cc1c
cmp dword [eax], esi
jne 0x458a74
mov ecx, edi
call fcn.0045f45e
mov ecx, eax
call fcn.0043cc20
test eax, eax
je 0x458a83
mov ecx, edi
call fcn.0045f429
test eax, eax
jne 0x458a83
push esi
push dword [ebp + 0x628]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x458ac3
push 5
push dword [ebp + 0x628]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 0x628]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x628]
call edi
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [ebp + 0x628]
call edi
lea ecx, [ebp - 0x5c]
call fcn.00456456
mov edi, eax
call fcn.00457600
push 0x4e20
call fcn.00455cd7
mov ecx, eax
call fcn.00455c10
push esi
mov ecx, ebx
call fcn.00439db6
mov ecx, ebx
call fcn.00456834
push esi
push str.SoftwareMicrosoftWindowsCurrentVersion360Clear
lea ecx, [ebp]
call fcn.0043cbce
push esi
push str.SoftwareMicrosoftWindowsCurrentVersion360JJX
lea ecx, [ebp + 0x20c]
mov byte [ebp - 4], 8
call fcn.0043cbce
push str.Software360Safe
lea ecx, [ebp + 0x418]
mov byte [ebp - 4], 9
call fcn.0043cbad
lea ecx, [ebp + 0x418]
call fcn.0043cba2
lea ecx, [ebp + 0x20c]
mov byte [ebp - 4], 8
call fcn.0043cba2
lea ecx, [ebp]
mov byte [ebp - 4], 7
call fcn.0043cba2
mov esi, edi
jmp 0x458a13