Function at 0x402260
Capabilities:
Check mutex on windows
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x459e61
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1494
call fcn.004431a0
mov eax, dword [0x4727f0]
xor eax, esp
mov dword [esp + 0x1490], eax
push ebx
push esi
push edi
mov eax, dword [0x4727f0]
xor eax, esp
push eax
lea eax, [esp + 0x14a8]
mov dword fs:[0], eax
lea eax, [esp + 0x30]
xor esi, esi
push eax
mov ebx, ecx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10000
call fcn.0041a861
add esp, 4
push 0x20000
mov dword [esp + 0x58], eax
call fcn.0041a861
add esp, 4
mov dword [esp + 0x58], eax
mov dword [esp + 0x14b0], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x14b0], 1
call fcn.004243c3
mov eax, dword [eax + 4]
push 0x20
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [eax + 0x48]
call fcn.0040df20
mov edi, dword [esp + 0x18]
cmp edi, esi
je 0x402491
mov ecx, dword [esp + 0x1c]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x402491
mov ebx, 8
cmp dword [edi + 0x34], ebx
jb 0x402355
mov edi, dword [edi + 0x20]
jmp 0x402358
add edi, 0x20
push edi
call fcn.0043de04
add esp, 4
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x200
lea edx, [esp + 0x10a0]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [esp + 0x18]
cmp edi, esi
je 0x4023aa
mov ecx, dword [esp + 0x1c]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4023b3
call fcn.0043dbb7
mov edi, dword [esp + 0x18]
cmp dword [edi + 0x18], ebx
jb 0x4023bd
mov edi, dword [edi + 4]
jmp 0x4023c0
add edi, 4
push esi
push edi
lea ecx, [esp + 0x10a4]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x18]
cmp edi, esi
je 0x4023fe
mov ecx, dword [esp + 0x1c]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x402407
call fcn.0043dbb7
mov edi, dword [esp + 0x18]
cmp dword [edi + 0x18], ebx
jb 0x402411
mov edi, dword [edi + 4]
jmp 0x402414
add edi, 4
push 1
push esi
push esi
push edi
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40244b
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
push ecx
call fcn.00402750
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call fcn.0041a866
add esp, 4
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x402477
push eax
call fcn.0041a866
add esp, 4
mov dword [esp + 0x54], esi
mov eax, dword [esp + 0x58]
cmp eax, esi
je 0x40259b
push eax
call fcn.0041a866
add esp, 4
jmp 0x40259b
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 8
mov dword [esp + 0x30], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, ebx
call fcn.00422ca6
push esi
call fcn.00425465
add esp, 4
push str.Loong_Launcher
mov ecx, ebx
call fcn.004259da
cmp dword [0x476ef0], esi
jne 0x402512
push esi
push 0x46321c
push str.File:_launcherlauncher_table.xml_could_not_found_
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x402508
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
push edx
call fcn.00402750
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call fcn.0041a866
add esp, 4
lea ecx, [esp + 0x30]
push ecx
jmp 0x402450
push str.Loong_launcher
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402558
mov ecx, dword [0x476eec]
mov ebx, str.Warning
call fcn.004187b0
mov ecx, dword [0x476eec]
push esi
push eax
mov ebx, str.AlreadyRunning
call fcn.004187b0
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x402589
lea edx, [esp + 0x5c]
push edx
call fcn.00402ee0
lea eax, [esp + 0x5c]
mov byte [esp + 0x14b0], 2
mov ecx, eax
mov dword [ebx + 0x20], eax
call fcn.00420c5b
lea ecx, [esp + 0x5c]
mov byte [esp + 0x14b0], 1
call fcn.004030d0
lea esi, [esp + 0x14]
call fcn.004025d0
lea esi, [esp + 0x30]
call fcn.0040de50
xor eax, eax
mov ecx, dword [esp + 0x14a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1490]
xor ecx, esp
call fcn.0043d963
mov esp, ebp
pop ebp
ret