Function at 0x402fc0
Capabilities:
Check mutex on windows
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40fb61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push str.StormPlayer_Mutex_238724adhsDWEE987sdfdf
mov edi, ecx
push ebx
push ebx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403016
mov ecx, edi
call fcn.00403470
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4031de
cmp esi, ebx
je 0x4031de
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x71]
mov byte [esp + 0x70], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
lea eax, [esp + 0x74]
push 0x23
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0x70]
push str.Stormconfig.xml
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
mov dword [esp + 0x280], ebx
push edx
mov dword [esp + 0x14], ebx
call fcn.00401350
add esp, 4
test eax, eax
je 0x403138
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x70]
push eax
push ecx
call fcn.00401490
add esp, 8
test eax, eax
je 0x403138
push str.curtheme
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [esp + 0x18]
mov ebp, eax
push 0x5c
mov eax, dword [edx + 0xe0]
lea edi, [edx + 0xe0]
mov ecx, edi
mov esi, dword [eax - 8]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea ecx, [esp + 0x14]
dec esi
push esi
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::Right
mov edx, dword [esp + 0x10]
push ecx
mov eax, esp
mov byte [esp + 0x284], 1
mov dword [esp + 0x1c], esp
mov dword [eax], edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4030f6
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea ecx, [esp + 0x18]
mov byte [esp + 0x284], 1
call fcn.00401330
push eax
push ebp
push str.._config_option_theme
call fcn.00401d10
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x80]
push edx
push eax
call fcn.004018f0
add esp, 0x18
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], bl
call sub.MFC42.DLL_CString::CString
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x30]
mov byte [esp + 0x174], bl
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edi, [esp + 0x175]
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x174]
mov dword [esp + 0x24], ecx
push 0x104
mov dword [esp + 0x2c], ecx
mov ecx, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], 0x44
stosb byte es:[edi], al
call fcn.00401ae0
add esp, 8
lea eax, [esp + 0x174]
push str.Storm.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x190]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x280], 0xffffffff
cmp eax, ebx
je 0x4031de
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x278]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x274
ret