Function at 0x405c20
Capabilities:
Check mutex on windows
Create thread
Get common file path

Disassembly:
sub esp, 0x130
mov eax, dword [0x41f3b8]
push ebx
push ebp
push esi
push edi
push str.Riched20.dll
mov dword [esp + 0x140], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x14], eax
xor eax, eax
mov ecx, 0x7d
mov edi, 0x459468
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14c]
mov edx, 0x459468
sub edx, eax
xor ebx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x405c63
mov edi, dword [esp + 0x144]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x420130
push 0x67
push edi
call esi
push 0x64
push 0x4a1c90
push 0x6d
push edi
call esi
push 0x420130
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, eax
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405ccb
push ebx
push str.Error
push 0x41a818
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x405ef6
cmp dword [0x41d5e8], ebx
jne 0x405d1c
mov eax, dword [str.SOFTWARETriglow_PicturesPristonTale]
push str.PATH
push eax
push 0x80000002
call fcn.004077c0
add esp, 0xc
test eax, eax
jne 0x405d1c
lea ecx, [esp + 0x38]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [str.SOFTWARETriglow_PicturesPristonTale]
lea edx, [esp + 0x38]
push edx
push str.PATH
push eax
push 0x80000002
call fcn.00407880
add esp, 0x10
call fcn.00403b90
mov ecx, dword [esp + 0x150]
push ecx
push edi
mov dword [0x4a1cf8], eax
mov dword [0x459464], ebx
call fcn.00405a50
add esp, 8
test eax, eax
je 0x405d62
call fcn.00404df0
test eax, eax
jne 0x405d69
mov edx, dword [0x41fcb4]
push ebx
push 0x41a80c
push 0x41a7f4
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x405ef6
call fcn.00405880
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov eax, 0x4a1b50
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405d80
sub eax, edx
mov dword [esp + 0x18], eax
jne 0x405d97
cmp byte [0x4a1b50], bl
je 0x405df8
mov eax, dword [0x420194]
mov ecx, dword [0x41fcb4]
push ebx
push eax
push ebx
push ecx
push ebx
push ebx
push ebx
push ebx
push 0x40000000
push ebx
push str.POPUP
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [0x41ff30], eax
je 0x405de0
push 0x459660
push ebx
push ebx
push 0x402f20
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4a1f4c], eax
jmp 0x405df8
mov edx, dword [0x41fcb4]
push ebx
push str.Error
push str.Browser_not_create
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
mov esi, eax
push ebx
lea eax, [esp + 0x28]
push eax
call edi
test eax, eax
je 0x405ed3
mov ebp, 1
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push esi
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x405e4b
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [0x4a1e00], ebx
jne 0x405ebd
mov eax, dword [0x459464]
sub eax, ebx
je 0x405eb1
dec eax
je 0x405e8c
dec eax
jne 0x405ebd
cmp dword [0x4596e8], ebx
mov dword [0x440350], ebx
jne 0x405ebd
mov ecx, 0x4a1f54
call fcn.00402d90
mov eax, dword [0x4a1cfc]
call fcn.004030e0
mov dword [0x4596e8], ebp
jmp 0x405ebd
cmp dword [0x440350], ebx
mov dword [0x4596e8], ebx
jne 0x405ebd
mov ecx, 0x4a1fb0
call fcn.00406470
call fcn.00402f50
mov dword [0x440350], ebp
jmp 0x405ebd
mov dword [0x440350], ebx
mov dword [0x4596e8], ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
call edi
test eax, eax
jne 0x405e20
mov ebp, dword [esp + 0x10]
call dword [sym.imp.ole32.dll_OleUninitialize]
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
call fcn.004119a1
add esp, 0x130
ret 0x10