Function at 0x415a50
Capabilities:
Check mutex on windows
Create process on windows
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x694
mov eax, dword [0x44f214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push str.thunderstart_app_mutex
push 1
push 0
mov dword [ebp - 0x650], ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x658], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x415ad7
push str.ThunderStart_mutex_exists
push 0x9d
push str.ThunderStartCore::Initialize
push str.d:jenkinsworkspaceThunderPCThunderCpp_AP_Build_Pack_Thunder_thunder11_cppsrc_thunderThunderStartThunderStartCore.cpp
push 4
call fcn.004160e0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ba48
mov esp, ebp
pop ebp
ret 8
call fcn.00415950
mov ecx, eax
test ecx, ecx
je 0x416051
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x648]
push edi
mov dword [ebp - 0x648], eax
call fcn.00414f80
test al, al
jne 0x415b2d
test edi, edi
jne 0x415b0c
xor ecx, ecx
jmp 0x415b20
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415b11
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x648]
call fcn.00416920
mov esi, dword [ebp - 0x648]
cmp dword [esi - 4], 1
jle 0x415b4d
push dword [esi - 0xc]
lea ecx, [ebp - 0x648]
call fcn.00415890
mov esi, dword [ebp - 0x648]
mov ecx, esi
mov dword [ebp - 0x624], 0
xor eax, eax
mov dword [ebp - 0x620], 7
mov word [ebp - 0x634], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415b70
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x634]
call fcn.00416e80
cmp dword [ebp - 0x620], 8
lea eax, [ebp - 0x634]
cmovae eax, dword [ebp - 0x634]
push eax
push str.wstrCmdLine:__s
push 0xa5
push str.ThunderStartCore::Initialize
push str.d:jenkinsworkspaceThunderPCThunderCpp_AP_Build_Pack_Thunder_thunder11_cppsrc_thunderThunderStartThunderStartCore.cpp
push 4
call fcn.004160e0
add esp, 0x18
call fcn.00415950
mov ecx, eax
test ecx, ecx
je 0x416051
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x650]
add eax, 0x10
mov dword [ebp - 0x654], eax
lea eax, [ebp - 0x654]
push eax
push edi
call fcn.004151b0
test al, al
jne 0x415bff
mov eax, 0xaa
mov ecx, str.thunder_exists_post_command
jmp 0x415c12
call fcn.00418f50
test al, al
je 0x415c2f
mov eax, 0xb2
mov ecx, str.thunder_mutex_exists
push ecx
push eax
push str.ThunderStartCore::Initialize
push str.d:jenkinsworkspaceThunderPCThunderCpp_AP_Build_Pack_Thunder_thunder11_cppsrc_thunderThunderStartThunderStartCore.cpp
push 4
call fcn.004160e0
add esp, 0x14
xor bl, bl
jmp 0x415faa
mov eax, dword fs:[0x2c]
mov ecx, dword [0x450a08]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x450698]
cmp eax, dword [ecx + 4]
jg 0x41605b
mov ecx, 0x450670
call fcn.00417240
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0041d240
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.0041d240
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
add esp, 0xc
push 0x43d24c
push eax
lea eax, [ebp - 0x61c]
push eax
call edi
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0041d240
add esp, 0xc
lea eax, [ebp - 0x20c]
push str...Thunder.exe
push eax
lea eax, [ebp - 0x414]
push eax
call edi
cmp dword [ebp - 0x620], 8
lea eax, [ebp - 0x414]
mov dword [ebp - 0x684], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x634]
movlpd qword [ebp - 0x670], xmm0
cmovae eax, dword [ebp - 0x634]
mov dword [ebp - 0x680], eax
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x67c], eax
lea eax, [ebp - 0x694]
push eax
movlpd qword [ebp - 0x668], xmm0
movlpd qword [ebp - 0x660], xmm0
mov dword [ebp - 0x694], 0x3c
mov dword [ebp - 0x68c], 0
mov dword [ebp - 0x688], str.open
mov dword [ebp - 0x678], 5
mov dword [ebp - 0x674], 0
mov dword [ebp - 0x690], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x650], eax
cmp eax, 1
je 0x415dc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x650]
mov edi, eax
push str.bRet:__d
push 0xd6
push str.ThunderStartCore::Initialize
push str.d:jenkinsworkspaceThunderPCThunderCpp_AP_Build_Pack_Thunder_thunder11_cppsrc_thunderThunderStartThunderStartCore.cpp
push 4
call fcn.004160e0
push edi
push str.dwLastError:__d
push 0xd7
push str.ThunderStartCore::Initialize
push str.d:jenkinsworkspaceThunderPCThunderCpp_AP_Build_Pack_Thunder_thunder11_cppsrc_thunderThunderStartThunderStartCore.cpp
push 4
call fcn.004160e0
add esp, 0x30
mov eax, dword [ebp - 0x65c]
test eax, eax
je 0x415df3
push 0
push 0
push eax
push 0x416a50
push 0
push 0
call fcn.00423bc6
add esp, 0x18
test eax, eax
je 0x415df3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40
call fcn.0041b80f
add esp, 4
test eax, eax
je 0x415e12
mov ecx, eax
call fcn.004184a0
mov ecx, eax
mov dword [ebp - 0x648], eax
jmp 0x415e1a
xor ecx, ecx
mov dword [ebp - 0x648], ecx
movaps xmm0, xmmword [0x43d2c0]
lea edx, [ebp - 0x644]
push 0
push ecx
mov eax, esp
push 0x180
push 0x90000000
movups xmmword [ebp - 0x644], xmm0
push 0
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], edx
mov edi, dword [ecx]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push dword [ebp - 0x648]
call dword [edi + 0x10]
mov edi, dword [ebp - 0x648]
push 0
lea ecx, [edi + 4]
call fcn.00414dc0
mov dword [ebp - 0x64c], 0
lea ecx, [ebp - 0x64c]
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x14]
push 5
push dword [ebp - 0x64c]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x64c]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x416a30
push 0x7530
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, 1
xor edi, edi
mov dword [ebp - 0x648], edx
lea eax, [ebx + 0x1c]
test edx, edx
je 0x415ef5
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x415ef2
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 4]
inc edi
test eax, eax
lea eax, [ebx + 0x1c]
jne 0x415ec5
mov dword [ebp - 0x648], 0
lea eax, [ebx + 0x1c]
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
mov edx, dword [ebp - 0x648]
mov ecx, eax
lea eax, [ebx + 0x1c]
cmp ecx, 0xffffffff
je 0x415ec1
test ecx, ecx
je 0x415f88
mov eax, dword [ebx]
lea ecx, [ebx + 0x1c]
push ecx
mov ecx, ebx
call dword [eax]
test eax, eax
jne 0x415f38
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebx + 0x20]
cmp eax, 0x118
ja 0x415f50
je 0x415f72
cmp eax, 0xf
je 0x415f72
cmp eax, 0xa0
jmp 0x415f55
cmp eax, 0x200
je 0x415f72
mov ecx, 1
xor eax, eax
test ecx, ecx
mov edx, ecx
mov dword [ebp - 0x648], edx
cmove eax, edi
mov edi, eax
jmp 0x415ebe
mov edx, dword [ebp - 0x648]
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, edi
mov edi, eax
jmp 0x415ebe
call fcn.004160b0
mov ecx, eax
call fcn.00418400
mov edi, dword [ebp - 0x658]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov edx, dword [ebp - 0x654]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415fca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x620]
cmp edx, 8
jb 0x41600a
mov ecx, dword [ebp - 0x634]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416000
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41609b
push edx
push ecx
call fcn.0041b5ab
add esp, 8
xor eax, eax
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x620], 7
add esi, 0xfffffff0
mov word [ebp - 0x634], ax
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x41603c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ba48
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00412540
push 0x450698
call fcn.0041b4b2
add esp, 4
cmp dword [0x450698], 0xffffffff
jne 0x415c4f
mov ecx, 0x450670
call fcn.00416ff0
push 0x43bd20
call fcn.0041b7f5
push 0x450698
call fcn.0041b468
add esp, 8
jmp 0x415c4f
call fcn.00420285
int3