Function at 0x45f090
Capabilities:
Check mutex on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x5f3008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x616724]
push edi
push str.OYAZIVIEWER_INIT_MUTEX
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 0x20834], eax
test eax, eax
jne 0x45f127
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x7d0
mov esi, eax
call fcn.00560858
add esp, 4
mov edi, eax
push esi
push 0x844
push 0x5ada04
push 0x5aa1dc
push 0x1f4
push edi
call fcn.00406c50
add esp, 0x18
push 0x30
push 0x591508
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call fcn.00560853
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push 0
push 2
push dword [esi + 0x20838]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x810], edi
test edi, edi
jne 0x45f1a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x7d0
mov edi, eax
call fcn.00560858
add esp, 4
mov ebx, eax
push edi
push 0x845
push str.qQ_tg
push 0x5aa1dc
push 0x1f4
push ebx
call fcn.00406c50
add esp, 0x18
push 0x30
push 0x591508
push ebx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call fcn.00560853
add esp, 4
jmp 0x45f35e
movzx eax, word [esi + 0x7570]
cmp ax, 0x32
jge 0x45f1ca
dec word [edi]
movsx eax, word [esi + 0x7570]
imul eax, eax, 0x10b0
mov dword [eax + edi + 8], 0
jmp 0x45f1de
mov ecx, 0x378
cmp ax, cx
jne 0x45f1de
mov dword [edi + 0x34268], 0
cmp word [edi], 0
jne 0x45f21a
lea eax, [ebp - 0x408]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x591508
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x808]
call fcn.0040bb30
xor eax, eax
lea ebx, [edi + 8]
mov word [esi + 0x75b2], ax
xor edx, edx
or eax, 0xffffffff
mov dword [ebp - 0x80c], edx
mov word [esi + 0x75b4], ax
xor eax, eax
nop word [eax + eax]
cmp dword [ebx], 0
movzx ecx, ax
mov eax, ecx
je 0x45f32b
lea edi, [ebx + 0x8b0]
lea eax, [edi + 0x400]
push eax
movsx eax, cx
imul eax, eax, 0x80c
push 0x200
add eax, 0x75c4
add eax, esi
push eax
call fcn.00565fee
movsx eax, word [esi + 0x75b2]
add esp, 0xc
imul eax, eax, 0x80c
push edi
push 0x200
add eax, 0x79c4
add eax, esi
push eax
call fcn.00565fee
movsx eax, word [esi + 0x75b2]
add esp, 0xc
mov edx, dword [ebp - 0x80c]
imul eax, eax, 0x80c
mov word [eax + esi + 0x75c2], dx
movsx eax, word [esi + 0x75b2]
imul ecx, eax, 0x80c
mov eax, dword [ebx]
mov dword [ecx + esi + 0x75b8], eax
movsx eax, word [esi + 0x75b2]
imul ecx, eax, 0x80c
mov al, byte [ebx + 0x8aa]
mov byte [ecx + esi + 0x75c0], al
movsx eax, word [esi + 0x75b2]
imul ecx, eax, 0x80c
mov eax, dword [ebx + 0x8ac]
mov dword [ecx + esi + 0x75bc], eax
movsx eax, word [esi + 0x7570]
cmp edx, eax
movzx eax, word [esi + 0x75b2]
jne 0x45f31a
mov word [esi + 0x75b4], ax
mov edi, dword [ebp - 0x810]
inc eax
mov word [esi + 0x75b2], ax
movzx eax, ax
movzx eax, ax
mov ecx, eax
cmp ax, word [edi]
jge 0x45f34b
inc edx
add ebx, 0x10b0
mov dword [ebp - 0x80c], edx
cmp edx, 0x32
jl 0x45f240
mov eax, dword [edi + 0x34268]
push edi
mov dword [esi + 0x20810], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 0x20834]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056060a
mov esp, ebp
pop ebp
ret