Function at 0x40ad20
Capabilities:
Accept command line arguments
Acquire debug privileges
Get common file path
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x484
mov eax, dword [0x4e7744]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push esi
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x28
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40adc5
lea eax, [esp + 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40adbf
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x30], 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40adc5
push dword [esp + 8]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push 0xc
push str.explorer.exe
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 7
call fcn.00409f70
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040b560
mov edx, dword [esp + 0x50]
add esp, 0xc
cmp edx, 8
jb 0x40ae52
mov ecx, dword [esp + 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ae48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b3bf
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
je 0x40ae79
push dword [eax]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x4e85f0
push 0xc
push eax
call esi
test eax, eax
jne 0x40ae83
mov dword [0x4e85f0], 0
push ebp
push edi
lea ecx, [esp + 0x20]
call fcn.00402420
push 0x4c93ac
push 0
call fcn.004b218f
xor eax, eax
mov dword [esp + 0x1c], 0
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov ebx, 0x7530
mov dword [esp + 0x30], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], 7
mov dword [esp + 0x68], 7
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebp, eax
test ebp, ebp
je 0x40b2f0
cmp dword [esp + 0x14], 2
jl 0x40b2f0
mov edx, dword [ebp + 4]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40af03
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.00409f70
cmp dword [esp + 0x34], 8
lea esi, [esp + 0x20]
mov edi, dword [esp + 0x20]
cmovae esi, edi
mov dword [esp + 0x18], edi
cmp dword [esp + 0x30], 6
jne 0x40b00a
mov ecx, str.__stop
mov edx, 6
sub esi, ecx
jmp 0x40af50
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x40b00a
add ecx, 2
sub edx, 1
jne 0x40af50
mov edi, dword [esp + 0x14]
mov esi, 2
cmp edi, esi
jle 0x40afcb
mov eax, dword [ebp + esi*4]
mov ecx, str._timeout
jmp 0x40af80
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40afa6
test dx, dx
je 0x40afa2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40afa6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40af80
xor eax, eax
jmp 0x40afab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40afc2
push dword [ebp + esi*4 + 4]
inc esi
call fcn.004af94c
mov edi, dword [esp + 0x18]
add esp, 4
mov ebx, eax
inc esi
cmp esi, edi
jl 0x40af72
mov dword [esp + 0x10], ebx
xor esi, esi
xor edi, edi
test ebx, ebx
js 0x40b2f6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ecx]
push 1
call fcn.0040c180
add esp, 4
test eax, eax
je 0x40b2f6
push 0x3e8
call ebx
add edi, 0x3e8
cmp edi, dword [esp + 0x10]
jle 0x40afe0
jmp 0x40b2f6
lea eax, [esp + 0x20]
push str.__force_stop
push eax
call fcn.004013a0
add esp, 8
test al, al
je 0x40b03b
xor esi, esi
push esi
call fcn.0040b750
add esp, 4
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b2f6
lea eax, [esp + 0x20]
push str.__uninstall
push eax
call fcn.004013a0
add esp, 8
test al, al
je 0x40b076
push dword [ebp + 8]
lea ecx, [esp + 0x54]
call fcn.00402700
xor esi, esi
call fcn.00406d50
lea eax, [esp + 0x50]
push eax
call fcn.00407870
add esp, 4
jmp 0x40b2f6
lea eax, [esp + 0x20]
push str.__restart_explorer
push eax
call fcn.004013a0
add esp, 8
test al, al
je 0x40b098
xor esi, esi
call fcn.004073e0
jmp 0x40b2f6
lea eax, [esp + 0x20]
push str.__admin_remove_shortcuts
push eax
call fcn.004013a0
add esp, 8
test al, al
je 0x40b0bf
xor esi, esi
call fcn.004064a0
call fcn.00405030
jmp 0x40b2f6
lea eax, [esp + 0x20]
push str.__portable_remove_shortcuts
push eax
call fcn.004013a0
add esp, 8
test al, al
je 0x40b224
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0x288]
push eax
xor esi, esi
push esi
push dword [0x4e85f0]
push 2
push esi
call edi
test eax, eax
jne 0x40b2f6
lea eax, [esp + 0x80]
push eax
push esi
push dword [0x4e85f0]
push 0x10
push esi
call edi
test eax, eax
jne 0x40b2f6
lea ecx, [esp + 0x80]
mov dword [esp + 0x68], esi
mov dword [esp + 0x78], esi
lea edx, [ecx + 2]
mov dword [esp + 0x7c], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b133
sub ecx, edx
lea eax, [esp + 0x80]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x70]
call fcn.00409f70
lea ecx, [esp + 0x288]
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], esi
lea edx, [ecx + 2]
mov dword [esp + 0x4c], 7
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b170
sub ecx, edx
lea eax, [esp + 0x288]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.00409f70
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004069d0
mov edx, dword [esp + 0x54]
add esp, 8
cmp edx, 8
jb 0x40b1df
mov ecx, dword [esp + 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b1d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b3c4
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov edx, dword [esp + 0x7c]
cmp edx, 8
jb 0x40b2f6
mov ecx, dword [esp + 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b215
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b3c4
push edx
push ecx
call fcn.004aa4d8
add esp, 8
jmp 0x40b2f6
lea eax, [esp + 0x20]
push str.__remove_all_users_empty_folders
push eax
call fcn.004013a0
add esp, 8
test al, al
je 0x40b246
xor esi, esi
call fcn.00405f80
jmp 0x40b2f6
lea eax, [esp + 0x20]
push str.__admin_upgrade_startup_shortcut
push eax
call fcn.004013a0
add esp, 8
test al, al
je 0x40b268
xor esi, esi
call fcn.004029b0
jmp 0x40b2f6
lea eax, [esp + 0x20]
push str.__admin_remove_syncroots
push eax
call fcn.004013a0
add esp, 8
test al, al
je 0x40b287
xor esi, esi
call fcn.00405870
jmp 0x40b2f6
lea eax, [esp + 0x20]
push str.__portable_remove_syncroots
push eax
call fcn.004013a0
add esp, 8
test al, al
jne 0x40b2f0
lea eax, [esp + 0x20]
push str.__migrate_cloud_station_backup
push eax
call fcn.004013a0
add esp, 8
test al, al
jne 0x40b2d2
lea eax, [esp + 0x20]
push str.__uninstall_cloud_station_backup
push eax
call fcn.004013a0
add esp, 8
xor esi, esi
test al, al
je 0x40b31b
call fcn.004080a0
jmp 0x40b2f6
push 0
call fcn.0040b750
add esp, 4
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00404460
mov esi, eax
jmp 0x40b2f6
xor esi, esi
test ebp, ebp
je 0x40b2fd
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x4e85f0]
test eax, eax
je 0x40b317
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4e85f0], 0
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x64]
cmp edx, 8
jb 0x40b357
mov ecx, dword [esp + 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b34d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b3c9
push edx
push ecx
call fcn.004aa4d8
add esp, 8
xor eax, eax
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x64], 7
cmp eax, 8
jb 0x40b3a2
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40b398
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b3c9
push ecx
push edi
call fcn.004aa4d8
add esp, 8
mov ecx, dword [esp + 0x490]
mov eax, esi
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.004aa4f4
add esp, 0x484
ret 0x10
call fcn.004aeecf
call fcn.004aeecf
call fcn.004aeecf
int3