Function at 0x40c710
Capabilities:
Accept command line arguments
Check mutex on windows
Create process on windows
Create thread
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd554
mov eax, dword fs:[0]
push eax
sub esp, 0x58c
mov eax, dword [0x64dff0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
push 0x401f00
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x4021b0
call fcn.005aa3a1
add esp, 4
push str._kakaogame_update_
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
jne 0x40c799
push eax
push eax
push esi
push 0x40c660
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40cd77
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40cd45
cmp eax, 0xb7
je 0x40cd45
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov dword [ebp - 0x224], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x224]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x40cd77
cmp dword [ebp - 0x224], 2
jne 0x40c886
mov eax, dword [eax + 4]
mov ecx, str.starappplayer:__check_
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c82a
test dx, dx
je 0x40c826
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c82a
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c804
xor eax, eax
jmp 0x40c82f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40c886
push 0xd0
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.005a7a20
add esp, 0xc
lea ecx, [ebp - 0x32c]
push 0
push 0xb3
call fcn.0045ffe3
mov dword [ebp - method.CDummyDlg.virtual_0], vtable.CDummyDlg.0
lea ecx, [ebp - 0x32c]
mov dword [ebp - 4], 0
call fcn.0046c01f
lea ecx, [ebp - 0x32c]
call fcn.00407730
jmp 0x40cd77
push str._kakaogame_launcher_
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x40cd77
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40c9d9
cmp eax, 0xb7
je 0x40c9d9
mov eax, dword [ebp - 0x220]
push dword [eax]
call fcn.0040c530
test al, al
jne 0x40c8da
mov eax, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call eax
push esi
call edi
jmp 0x40cd77
push 0
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 1
push eax
mov eax, dword [ebp - 0x21c]
add eax, 0xcc
mov dword [ebp - 0x240], 0
push eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
jne 0x40c8ca
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 8
push eax
mov dword [ebp - 0x230], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [ebp - 0x21c]
call fcn.004702d7
push 0
call fcn.004716ca
add esp, 4
push 0x5e6eb0
call fcn.0047a22d
push 0x258
lea eax, [ebp - 0x584]
push 0
push eax
call fcn.005a7a20
add esp, 8
lea ecx, [ebp - 0x584]
call fcn.0040f9f0
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x584]
mov eax, dword [ebp - 0x21c]
push dword [ebp - 0x224]
push dword [ebp - 0x220]
mov dword [eax + 0x20], ecx
call fcn.00410380
lea ecx, [ebp - 0x584]
call fcn.0046c01f
call fcn.0047d75f
mov eax, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call eax
push esi
call edi
lea ecx, [ebp - 0x584]
call fcn.0040cda0
mov eax, 1
jmp 0x40cd79
mov eax, dword [ebp - 0x224]
cmp eax, 2
je 0x40cc72
cmp eax, 1
jne 0x40c8ca
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005a7a20
add esp, 0xc
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x21c]
call fcn.00405bf0
push 0
push 0x1c
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00405970
push 0x61b530
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x58c]
push eax
call fcn.0040d830
push str.Kakao
push eax
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push eax
call fcn.0040d830
push 0x61b530
push eax
lea eax, [ebp - 0x598]
mov byte [ebp - 4], 3
push eax
call fcn.0040d830
push 0x61b444
push eax
lea eax, [ebp - 0x594]
mov byte [ebp - 4], 4
push eax
call fcn.0040d830
push 0x61b530
push eax
lea eax, [ebp - 0x590]
mov byte [ebp - 4], 5
push eax
call fcn.0040d830
add esp, 0x3c
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call fcn.00403f70
lea ecx, [ebp - 0x590]
call fcn.00404030
lea ecx, [ebp - 0x594]
call fcn.00404030
lea ecx, [ebp - 0x598]
call fcn.00404030
lea ecx, [ebp - 0x228]
call fcn.00404030
lea ecx, [ebp - 0x58c]
mov byte [ebp - 4], 1
call fcn.00404030
push 0x61b534
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0
call fcn.00406cf0
xorps xmm0, xmm0
mov byte [ebp - 4], 7
movups xmmword [ebp - 0x25c], xmm0
movq qword [ebp - 0x24c], xmm0
lea ecx, [ebp - 0x25c]
call fcn.00470cbb
push str.server_type.ini
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x58c]
push eax
call fcn.0040d830
add esp, 0xc
push 0
push 0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x25c]
push dword [eax]
call fcn.004710be
lea ecx, [ebp - 0x58c]
mov byte [ebp - 4], 8
mov esi, eax
call fcn.00404030
test esi, esi
je 0x40cb9c
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x25c]
call fcn.0047124b
lea ecx, [ebp - 0x220]
call fcn.0040d300
mov ecx, eax
call fcn.0040d250
lea ecx, [ebp - 0x220]
call fcn.0040d1f0
lea eax, [ebp - 0x220]
push eax
push 0x61c4e4
call fcn.0040d190
add esp, 8
test al, al
je 0x40cbe4
push 1
push 0x61b534
push 0x61b534
push str.http:__beta.starplay.game_
jmp 0x40cc3f
lea eax, [ebp - 0x220]
push eax
push 0x61c528
call fcn.0040d190
add esp, 8
test al, al
je 0x40cc0f
push 1
push 0x61b534
push 0x61b534
push str.http:__sandbox.starplay.game_
jmp 0x40cc3f
lea eax, [ebp - 0x220]
push eax
push 0x61c574
call fcn.0040d190
add esp, 8
push 1
push 0x61b534
push 0x61b534
test al, al
je 0x40cc3a
push str.http:__alpha.starplay.game_
jmp 0x40cc3f
push str.https:__starplay.game_
push 0x61c194
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x25c]
call fcn.00470cf0
lea ecx, [ebp - 0x220]
call fcn.00404030
lea ecx, [ebp - 0x21c]
call fcn.00404030
jmp 0x40cd77
xorps xmm0, xmm0
movq qword [ebp - 0x22c], xmm0
mov dword [ebp - method.CPipeSender.virtual_0], vtable.CPipeSender.0
mov dword [ebp - 0x228], 0xffffffff
push 0x61c5e8
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0xa
call fcn.00406cf0
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x21c]
cmp eax, 0xffffffff
mov dword [ebp - 0x228], eax
setne byte [ebp - 0x585]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ccf4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x585], 0
je 0x40cd2d
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x58c]
push dword [eax + 4]
call fcn.0040d0f0
push dword [eax]
lea eax, [ebp - 0x22c]
push eax
call fcn.00438ff0
add esp, 8
lea ecx, [ebp - 0x58c]
call fcn.00404030
mov eax, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call eax
push esi
call edi
lea ecx, [ebp - 0x22c]
call fcn.00438fd0
jmp 0x40cd77
push 0
push 0
push esi
push 0x40c660
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a3521
mov esp, ebp
pop ebp
ret