Function at 0x4270b0
Capabilities:
Accept command line arguments
Check mutex on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x4a62e4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0x298]
mov dword [ebp - 0x298], 8
push eax
mov dword [ebp - 0x294], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
push dword [ebp + 8]
mov ecx, 0x4a8864
push 0
call fcn.00423e50
lea ecx, [ebp - 0x28d]
call fcn.00425f00
push 0
push 0
push str.win11check
call fcn.00423fb0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00450d40
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.LdsWin11Assistant.log
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0042ffb0
push dword [0x4a50e4]
push str.win11assistant
push 1
call fcn.0041acf0
mov ecx, eax
call fcn.00444470
call fcn.0040bd70
mov ecx, eax
test ecx, ecx
je 0x427b47
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x288]
push 0x6e
mov dword [ebp - 0x288], eax
call fcn.0041bd40
mov eax, dword [ebp - 0x288]
mov ecx, 0x4844b0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4271de
test dx, dx
je 0x4271da
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4271de
add eax, 4
add ecx, 4
test dx, dx
jne 0x4271b8
xor eax, eax
jmp 0x4271e3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4271f9
push 7
push str.ludashi
lea ecx, [ebp - 0x288]
call fcn.0040c6c0
push ebx
push esi
lea eax, [ebp - 0x288]
push edi
push eax
call fcn.0041acf0
mov ecx, eax
call fcn.004444d0
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42736e
push 0x47
push str.d:_buildlib_commonwin11_update_assistant_srcwin11installenvcheck.cpp
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], 0xf
mov byte [ebp - 0x254], al
call fcn.0040e510
push 3
push 0x482dd8
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.0040e510
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x330]
push 0x9e
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00405aa0
mov esi, eax
push str.current_channel_pid:
push esi
call fcn.00403950
mov ecx, dword [ebp - 0x288]
mov edx, 0x482c68
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.00403950
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x330]
call fcn.00406fb0
mov edx, dword [ebp - 0x210]
cmp edx, 0x10
jb 0x427319
mov ecx, dword [ebp - 0x224]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42730f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427b51
push edx
push ecx
call fcn.00442ea6
add esp, 8
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
cmp edx, 0x10
jb 0x42736e
mov ecx, dword [ebp - 0x254]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x427364
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427b51
push edx
push ecx
call fcn.00442ea6
add esp, 8
push 0
push 0
push 1
push 0
push 0x486a14
call fcn.0041acf0
mov ecx, eax
call fcn.00444490
xor eax, eax
mov dword [ebp - 0x294], 0
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
call fcn.00438ca0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x214], 0
mov ecx, edx
mov dword [ebp - 0x210], 7
xor eax, eax
mov word [ebp - 0x224], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4273e3
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x224]
call fcn.0040e600
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x284]
call fcn.004394d0
mov edx, dword [ebp - 0x210]
cmp edx, 8
jb 0x427451
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x427447
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427b56
push edx
push ecx
call fcn.00442ea6
add esp, 8
xor eax, eax
mov dword [ebp - 0x214], 0
push 9
push str.inst_path
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
call fcn.0040e600
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x284]
call fcn.004392f0
mov edx, dword [ebp - 0x228]
mov esi, eax
cmp edx, 8
jb 0x4274f2
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4274e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427b5b
push edx
push ecx
call fcn.00442ea6
add esp, 8
xor eax, eax
mov dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
call fcn.00438da0
or ebx, 0xffffffff
test esi, esi
je 0x427619
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4275f4
push 0x47
push str.d:_buildlib_commonwin11_update_assistant_srcwin11installenvcheck.cpp
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], 0xf
mov byte [ebp - 0x23c], al
call fcn.0040e510
push 3
push 0x482dd8
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.0040e510
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x330]
push 0xa5
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00405aa0
mov esi, eax
push str.current_is_update_mode
push esi
call fcn.00403950
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x330]
call fcn.00406fb0
lea ecx, [ebp - 0x224]
call fcn.00406570
lea ecx, [ebp - 0x23c]
call fcn.00406570
lea eax, [ebp - 0x254]
push eax
call fcn.00425740
add esp, 4
lea ecx, [ebp - 0x254]
call fcn.004065c0
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x427a47
mov esi, dword [str.Win11CheckMutex]
call fcn.0040bd70
mov ecx, eax
test ecx, ecx
je 0x427b60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28c], eax
test esi, esi
je 0x427671
test esi, 0xffff0000
jne 0x427659
movzx eax, si
lea ecx, [ebp - 0x28c]
push eax
call fcn.0041bd40
jmp 0x427680
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427660
sub ecx, edx
sar ecx, 1
jmp 0x427673
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x28c]
call fcn.0040c6c0
push 1
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov esi, dword [ebp - 0x28c]
lea eax, [ebp - 0x220]
push esi
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x230]
push 1
push eax
mov dword [ebp - 0x230], 0xc
mov dword [ebp - 0x228], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
je 0x4276f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4276f4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42770b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x427989
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x427857
push 0x47
push str.d:_buildlib_commonwin11_update_assistant_srcwin11installenvcheck.cpp
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], 0xf
mov byte [ebp - 0x23c], al
call fcn.0040e510
push 3
push 0x482dd8
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.0040e510
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x330]
push 0xad
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00405aa0
mov esi, eax
push str.CheckInstance_Exist
push esi
call fcn.00406dd0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x330]
call fcn.00406fb0
mov edx, dword [ebp - 0x210]
cmp edx, 0x10
jb 0x427802
mov ecx, dword [ebp - 0x224]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4277f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427b6a
push edx
push ecx
call fcn.00442ea6
add esp, 8
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
cmp edx, 0x10
jb 0x427857
mov ecx, dword [ebp - 0x23c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42784d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427b6a
push edx
push ecx
call fcn.00442ea6
add esp, 8
push 0
push 0x4844b0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x427989
push 0
push 0xbb8
push 2
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x230], 0x3e9
push ecx
push eax
push 0x4a
push eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x427973
push 0x47
push str.d:_buildlib_commonwin11_update_assistant_srcwin11installenvcheck.cpp
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], 0xf
mov byte [ebp - 0x23c], al
call fcn.0040e510
push 3
push 0x482dd8
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.0040e510
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x330]
push 0xb1
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00405aa0
mov esi, eax
push str.SendCommand_kCopydataMsgShowWnd
push esi
call fcn.00403950
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x330]
call fcn.00406fb0
lea ecx, [ebp - 0x224]
call fcn.00406570
lea ecx, [ebp - 0x23c]
call fcn.00406570
lea ecx, [ebp - 0x254]
call fcn.004065c0
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x427a47
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00425420
mov ecx, dword [0x4a8434]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x294], eax
test ecx, ecx
jne 0x4279f5
push 0x4a5094
call esi
cmp dword [0x4a8434], 0
jne 0x4279e4
push 4
call fcn.00430db0
add esp, 4
test eax, eax
je 0x4279d6
mov ecx, eax
call fcn.004443e0
mov ecx, eax
jmp 0x4279d8
xor ecx, ecx
xchg dword [ebp - 0x28c], eax
mov dword [0x4a8434], ecx
push 0x4a5094
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x4a8434]
push 0
push 0
push 0
push 0
push str.close
call fcn.00444490
mov edx, dword [ebp - 0x240]
cmp edx, 8
jb 0x427a47
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x427a3d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427b6f
push edx
push ecx
call fcn.00442ea6
add esp, 8
mov edi, dword [0x4a83b0]
add edi, 0x10
push edi
call esi
mov esi, dword [0x4a889c]
test esi, esi
je 0x427aa5
cmp dword [esi + 4], 0
jle 0x427a73
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x4a889c]
test esi, esi
je 0x427aa5
mov eax, dword [esi]
test eax, eax
je 0x427a8c
push eax
call fcn.00453fd0
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00442ea6
add esp, 8
push edi
mov dword [0x4a889c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x4a8898]
test esi, esi
je 0x427afe
mov eax, dword [esi]
test eax, eax
je 0x427ad5
push eax
call fcn.00453fd0
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x427aec
push eax
call fcn.00453fd0
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.00442ea6
add esp, 8
mov ecx, 0x4a8864
call fcn.00426220
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00430420
mov edx, dword [ebp - 0x288]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
pop edi
pop esi
test ebx, ebx
pop ebx
jg 0x427b31
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x294]
xor ecx, ebp
call fcn.00443153
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00407850
call fcn.00453ee9
call fcn.00453ee9
call fcn.00453ee9
push 0x80004005
call fcn.00407850
call fcn.00453ee9
call fcn.00453ee9
int3