Function at 0x406cc0
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x6d8
mov eax, dword [0x42c00c]
xor eax, esp
mov dword [esp + 0x6d4], eax
push esi
mov esi, dword [ebp + 0x10]
xorps xmm0, xmm0
push edi
mov edi, dword [ebp + 8]
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x24], edi
push 8
movups xmmword [ecx], xmm0
push str.wWinMain
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00405f50
push 0
lea ecx, [esp + 0xc0]
call fcn.00406440
push edi
push str.hInstance__d_
call fcn.00406710
push esi
push edi
push str.hInstance__d___lpCmdLine__s_
call fcn.00406710
add esp, 0x14
push 0x429398
call fcn.00406710
add esp, 4
push str.Main_Thread___UI_Thread
call fcn.00406710
add esp, 4
lea ecx, [esp + 0x70]
call fcn.00405310
lea ecx, [esp + 0x10]
call fcn.004050f0
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x406d69
mov esi, dword [esi]
cmp dword [esp + 0x84], 8
lea ecx, [esp + 0x70]
push 0x103
cmovae ecx, dword [esp + 0x74]
push ecx
push 0x42db90
call fcn.0040eff8
add esp, 0xc
xor eax, eax
mov word [0x42dd96], ax
push 0x103
push esi
push 0x42d988
call fcn.0040eff8
add esp, 0xc
xor eax, eax
mov word [0x42db8e], ax
push 0x42d988
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x4287c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 8], eax
test esi, esi
je 0x406df5
push str.MiniDumpWriteDump
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406df0
push 0x403f40
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push esi
call dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
cmp ecx, 8
jb 0x406e31
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406e27
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407315
push ecx
push edx
call fcn.0040895b
add esp, 8
xor eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
mov dword [0x42ddd8], edi
call fcn.00408020
test al, al
je 0x406e69
push str.SelfUpdate_return_true
call fcn.00406710
add esp, 4
jmp 0x407299
xorps xmm0, xmm0
mov dword [esp + 0x50], 0
xor eax, eax
movaps xmmword [esp + 0x40], xmm0
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], 7
mov word [esp + 0x40], ax
call fcn.004050f0
mov esi, eax
lea eax, [esp + 0x40]
cmp eax, esi
je 0x406f0e
mov ecx, dword [esp + 0x54]
cmp ecx, 8
jb 0x406ed7
mov edx, dword [esp + 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406ecd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40731a
push ecx
push edx
call fcn.0040895b
add esp, 8
mov dword [esp + 0x50], 0
xor eax, eax
mov dword [esp + 0x54], 7
mov word [esp + 0x40], ax
movups xmm0, xmmword [esi]
movups xmmword [esp + 0x40], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [esp + 0x50], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [esp + 0x3c]
cmp ecx, 8
jb 0x406f4a
mov edx, dword [esp + 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406f40
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40731a
push ecx
push edx
call fcn.0040895b
add esp, 8
xor eax, eax
mov dword [esp + 0x38], 0
push str.Skin.ini
lea ecx, [esp + 0x44]
mov dword [esp + 0x40], 7
mov word [esp + 0x2c], ax
call fcn.00405ab0
cmp dword [esp + 0x54], 8
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
push str.ini_file:__s
call fcn.00406710
add esp, 8
mov dword [esp + 0x68], vtable.CIni.0
cmp dword [esp + 0x54], 8
lea eax, [esp + 0x40]
mov dword [esp + 0x6c], 0
cmovae eax, dword [esp + 0x40]
test eax, eax
je 0x406fba
push eax
call fcn.0040ef99
add esp, 4
mov dword [esp + 0x6c], eax
sub esp, 0x10
lea ecx, [esp + 0x78]
call fcn.00403dc0
mov ecx, dword [esp + 0x6c]
mov esi, eax
mov dword [esp + 0x68], vtable.CIni.0
test ecx, ecx
je 0x406fe1
push ecx
call fcn.00408cbd
add esp, 4
mov ecx, dword [esp + 0x54]
cmp ecx, 8
jb 0x40701d
mov edx, dword [esp + 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407013
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40731f
push ecx
push edx
call fcn.0040895b
add esp, 8
push esi
push str._GamepadMagicbox_Wnd_
xor eax, eax
mov dword [esp + 0x58], 0
push str._s_Skin_d
mov word [esp + 0x4c], ax
lea eax, [esp + 0xcc]
push 0x104
push eax
mov dword [esp + 0x68], 7
call fcn.004042a0
add esp, 0x14
lea eax, [esp + 0xc0]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407100
push esi
push str._GamepadMagicbox_Class_
push str._s_Skin_d
lea eax, [esp + 0x4dc]
push 0x104
push eax
call fcn.004042a0
add esp, 0x14
lea eax, [esp + 0x2c8]
push esi
push str.GamepadMaicBox
push str._s_Skin_d
push 0x104
push eax
call fcn.004042a0
add esp, 0x14
lea eax, [esp + 0x2c8]
push eax
lea eax, [esp + 0x4d4]
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4070e3
push 0
push 0
push 0x9001
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
test edi, edi
je 0x4070ee
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.ERROR_ALREADY_EXISTS
call fcn.00406710
add esp, 4
jmp 0x407299
push 0x42ddac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x42dd98], 0
jne 0x407171
push 0x14
call fcn.0040892b
mov esi, eax
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0
mov dword [esi + 0xc], 0
push 1
mov dword [esi + 0x10], 0
push 0
mov dword [esi], vtable.CThread.0
push 0
mov byte [esi + 4], 1
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x10], eax
mov dword [esi], vtable.CDeleteLogFileCenter.0
mov dword [0x42dd98], esi
push 0x42ddac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x42dd98]
push str.call_pCDeleteLogFileCenter__Start____launch_thread...
call fcn.00406710
mov eax, dword [esi + 8]
add esp, 4
test eax, eax
je 0x4071a6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4071e9
mov eax, dword [esi + 8]
test eax, eax
je 0x4071bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
lea eax, [esi + 0xc]
mov byte [esi + 4], 0
push eax
push 0
push esi
push 0x4063a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
jne 0x4071e0
mov byte [esi + 4], 1
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0xc]
call fcn.00407330
mov ecx, dword [esp + 0xc]
call fcn.00407600
test eax, eax
jne 0x407211
push str.InitInstance_return_false
call fcn.00406710
add esp, 4
jmp 0x407299
push str.TesterWndRun_Before
call fcn.00406710
add esp, 4
call dword [0x42dda0]
push str.TesterWndRun_After
call fcn.00406710
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x8c]
add esp, 4
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x407280
nop dword [eax + eax]
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x94]
push eax
call esi
test eax, eax
jne 0x407250
mov eax, dword [0x42ddd4]
test eax, eax
je 0x40728e
push eax
call dword [esp + 0xc]
test edi, edi
je 0x407299
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x84]
cmp ecx, 8
jb 0x4072d4
mov edx, dword [esp + 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4072ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407324
push ecx
push edx
call fcn.0040895b
add esp, 8
xor eax, eax
mov dword [esp + 0x80], 0
lea ecx, [esp + 0xa4]
mov dword [esp + 0x84], 7
mov word [esp + 0x70], ax
call fcn.004065d0
mov ecx, dword [esp + 0x6dc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0040891d
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040e6af
call fcn.0040e6af
call fcn.0040e6af
call fcn.0040e6af
int3