Function at 0x45db90
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x5f3008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [0x616724]
xor esi, esi
mov dword [ebp - 0x810], eax
xor bl, bl
xor eax, eax
mov dword [ebp - 0x814], edi
push str.OYAZIVIEWER_INIT_MUTEX
push eax
push 0x1f0001
mov dword [ebp - 0x820], esi
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x82c], eax
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [edi + 0x20834], eax
test eax, eax
jne 0x45dc19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push 0x7d0
call fcn.00560858
add esp, 4
push ebx
push 0x83a
push 0x5ada04
jmp 0x45e6eb
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x5b2b10
push 0x4c468
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x20838], eax
lea eax, [edi + 0x1800]
push eax
lea eax, [ebp - 0x40c]
push 0x200
push eax
call fcn.00565fee
add esp, 0xc
lea ecx, [ebp - 0x40c]
call fcn.0040d890
cmp eax, 1
jne 0x45dcb8
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
cmp word [ebp + eax*2 - 0x40c], 0x2f
lea ecx, [eax - 1]
cmovne ecx, eax
test ecx, ecx
js 0x45dcb8
nop dword [eax]
movzx eax, word [ebp + ecx*2 - 0x40c]
cmp eax, 0x2f
je 0x45dcb8
cmp eax, 0x2e
je 0x45dcb8
cmp eax, 0x23
je 0x45dcae
sub ecx, 1
jns 0x45dc90
jmp 0x45dcb8
xor eax, eax
mov word [ebp + ecx*2 - 0x40c], ax
cmp dword [edi + 0x20838], esi
jne 0x45dcd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov esi, 0x7d1
jmp 0x45e69d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
cmp eax, 0xb7
movzx ecx, bl
mov edx, 1
push 2
push dword [edi + 0x20838]
cmovne ecx, edx
mov dword [ebp - 0x824], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x45dd21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi + 0x20834]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x45e755
mov edx, dword [ebp - 0x824]
test dl, dl
jne 0x45e1e1
cmp word [ebx], si
je 0x45e1e1
mov edx, edi
xor eax, eax
mov ecx, 0x378
mov word [edx + 0x75b2], ax
cmp word [edx + 0x7570], cx
jne 0x45dda6
mov eax, dword [ebx + 0x34268]
test eax, eax
je 0x45dd79
mov dword [ebp - 0x818], eax
mov esi, 0x7d2
mov word [edx + 0x7570], cx
mov word [edx + 0x75b4], cx
jmp 0x45e5f5
mov ecx, dword [ebp - 0x810]
xor edi, edi
mov dword [ebx + 0x34268], ecx
mov eax, 0x378
xor ecx, ecx
mov word [edx + 0x75b4], ax
mov dword [ebp - 0x824], edi
mov dword [ebp - 0x81c], ecx
jmp 0x45de66
xor eax, eax
lea edi, [ebx + 0x8b8]
mov dword [ebp - 0x81c], eax
cmp dword [edi - 0x8b0], 0
je 0x45ddfa
lea ecx, [ebp - 0x40c]
mov eax, edi
mov si, word [eax]
cmp si, word [ecx]
jne 0x45ddeb
test si, si
je 0x45dde7
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x45ddeb
add eax, 4
add ecx, 4
test si, si
jne 0x45ddc5
xor eax, eax
jmp 0x45ddf0
sbb eax, eax
or eax, 1
test eax, eax
je 0x45de25
mov eax, dword [ebp - 0x81c]
inc eax
add edi, 0x10b0
mov dword [ebp - 0x81c], eax
cmp eax, 0x32
jl 0x45ddb4
xor edi, edi
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x824], edi
mov eax, 0x378
mov dword [ebp - 0x81c], ecx
jmp 0x45de66
imul eax, dword [ebp - 0x81c], 0x10b0
mov esi, 0x7d2
mov ecx, dword [eax + ebx + 8]
mov eax, 0x384
mov dword [ebp - 0x818], ecx
mov word [edx + 0x7570], ax
mov word [edx + 0x75b4], ax
jmp 0x45e5f5
mov esi, dword [ebp - 0x820]
test si, si
jne 0x45e061
cmp dword [ecx + ebx + 8], 0
lea esi, [ecx + ebx]
jne 0x45e061
cmp word [edx + 0x1800], 0
je 0x45e061
cmp word [edx + 0x7570], ax
je 0x45e061
inc dword [ebx + 4]
lea edi, [esi + 0x8b8]
inc word [ebx]
mov eax, dword [ebp - 0x810]
mov dword [esi + 8], eax
mov ax, word [edx + 0x3400]
mov word [esi + 0x8b0], ax
mov byte [esi + 0x8b2], 0
mov eax, dword [ebx + 4]
mov dword [esi + 0x8b4], eax
lea eax, [ebp - 0x40c]
push eax
push 0x200
push edi
call fcn.00565fee
mov eax, dword [ebp - 0x814]
add esp, 0xc
add eax, 0x3402
add esi, 0xcb8
push eax
push 0x200
push esi
call fcn.00565fee
add esp, 0xc
push esi
mov esi, dword [ebp - 0x814]
push 0x200
movsx eax, word [esi + 0x75b2]
imul eax, eax, 0x80c
add eax, 0x75c4
add eax, esi
push eax
call fcn.00565fee
movsx eax, word [esi + 0x75b2]
add esp, 0xc
imul eax, eax, 0x80c
add esi, 0x79c4
push edi
push 0x200
add eax, esi
push eax
call fcn.00565fee
mov edx, dword [ebp - 0x814]
add esp, 0xc
mov eax, dword [ebp - 0x824]
mov esi, dword [ebp - 0x81c]
movzx ecx, ax
add esi, ebx
movsx eax, word [edx + 0x75b2]
imul eax, eax, 0x80c
mov dword [ebp - 0x830], ecx
lea edi, [esi + 0x10]
mov word [eax + edx + 0x75c2], cx
movsx eax, word [edx + 0x75b2]
imul ecx, eax, 0x80c
mov eax, dword [esi + 8]
mov dword [ecx + edx + 0x75b8], eax
movsx eax, word [edx + 0x75b2]
imul ecx, eax, 0x80c
mov al, byte [esi + 0x8b2]
mov byte [ecx + edx + 0x75c0], al
movsx eax, word [edx + 0x75b2]
imul ecx, eax, 0x80c
mov eax, dword [esi + 0x8b4]
mov dword [ecx + edx + 0x75bc], eax
movzx eax, word [edx + 0x75b2]
movzx ecx, word [edx + 0x7570]
mov word [edx + 0x75b4], ax
inc eax
mov word [edx + 0x75b2], ax
cmp cx, 0x32
jge 0x45e029
movsx eax, cx
mov ecx, 0x228
imul esi, eax, 0x10b0
mov dword [ebp - 0x820], 1
add esi, 0x10
add esi, ebx
rep movsd dword es:[edi], dword [esi]
movsx eax, word [edx + 0x7570]
lea edi, [edx + 0x4c28]
imul esi, eax, 0x10b0
add esi, 0x10
add esi, ebx
jmp 0x45e039
lea esi, [edx + 0x4c28]
mov dword [ebp - 0x820], 2
mov eax, dword [ebp - 0x830]
mov ecx, 0x228
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x81c]
mov edi, dword [ebp - 0x824]
mov word [edx + 0x7570], ax
lea esi, [ecx + ebx]
jmp 0x45e13d
mov eax, dword [ecx + ebx + 8]
lea esi, [ecx + ebx]
test eax, eax
je 0x45e162
lea eax, [esi + 0xcb8]
push eax
movsx eax, word [edx + 0x75b2]
add edx, 0x75c4
imul eax, eax, 0x80c
push 0x200
add eax, edx
push eax
call fcn.00565fee
mov ecx, dword [ebp - 0x814]
lea eax, [esi + 0x8b8]
add esp, 0xc
push eax
movsx eax, word [ecx + 0x75b2]
add ecx, 0x79c4
imul eax, eax, 0x80c
push 0x200
add eax, ecx
push eax
call fcn.00565fee
mov edx, dword [ebp - 0x814]
add esp, 0xc
movsx eax, word [edx + 0x75b2]
imul eax, eax, 0x80c
mov word [eax + edx + 0x75c2], di
movsx eax, word [edx + 0x75b2]
imul ecx, eax, 0x80c
mov eax, dword [esi + 8]
mov dword [ecx + edx + 0x75b8], eax
movsx eax, word [edx + 0x75b2]
imul ecx, eax, 0x80c
mov al, byte [esi + 0x8b2]
mov byte [ecx + edx + 0x75c0], al
movsx eax, word [edx + 0x75b2]
imul ecx, eax, 0x80c
mov eax, dword [esi + 0x8b4]
mov dword [ecx + edx + 0x75bc], eax
inc word [edx + 0x75b2]
mov ecx, dword [ebp - 0x81c]
mov eax, dword [esi + 8]
test eax, eax
je 0x45e162
mov esi, dword [esi + 0x8b4]
cmp dword [ebp - 0x82c], esi
jge 0x45e162
mov dword [ebp - 0x82c], esi
mov esi, eax
mov dword [ebp - 0x828], esi
jmp 0x45e168
mov esi, dword [ebp - 0x828]
add ecx, 0x10b0
inc edi
mov dword [ebp - 0x824], edi
mov eax, 0x378
mov dword [ebp - 0x81c], ecx
cmp ecx, 0x34260
jl 0x45de60
mov ecx, eax
cmp word [edx + 0x7570], cx
je 0x45e5ef
cmp word [edx + 0x1800], 0
jne 0x45e5ef
mov eax, 0x3e5
mov dword [ebp - 0x818], esi
test esi, esi
mov word [edx + 0x7570], ax
mov esi, dword [ebp - 0x820]
mov word [edx + 0x75b4], ax
jne 0x45e5f5
mov eax, dword [ebx + 0x34268]
mov dword [ebp - 0x818], eax
jmp 0x45e5f5
mov ecx, 0x378
lea eax, [ebx + 8]
cmp word [edi + 0x7570], cx
jne 0x45e373
xor ecx, ecx
mov dword [ebx + 4], esi
mov word [ebx], cx
mov ecx, 0x32
mov dword [eax], esi
lea eax, [eax + 0x10b0]
sub ecx, 1
jne 0x45e203
mov eax, dword [ebp - 0x810]
mov dword [ebx + 0x34268], eax
test dl, dl
je 0x45e32f
xor eax, eax
mov byte [ebx + 0x367a4], cl
mov dword [ebx + 0x3426c], esi
lea ecx, [ebx + 0x4524c]
mov dword [ebx + 0x34270], esi
lea edx, [ebx + 0x45224]
mov dword [ebx + 0x367a0], esi
mov word [ebx + 0x367a6], ax
mov dword [ebx + 0x367a8], eax
mov word [ebx + 0x367ac], ax
mov dword [ebx + 0x4520e], eax
mov word [ebx + 0x45212], ax
nop dword [eax + eax]
mov byte [ebx + eax + 0x45218], 0
lea edx, [edx + 4]
xor esi, esi
mov dword [edx - 4], 0
inc eax
mov word [ecx], si
lea ecx, [ecx + 0x802]
cmp eax, 0xa
jl 0x45e270
xor eax, eax
lea edx, [ebx + 0x4a424]
lea esi, [ebx + 0x4a298]
lea ecx, [ebx + 0x4a280]
nop word [eax + eax]
mov byte [ebx + eax + 0x4a260], 0
lea ecx, [ecx + 4]
xor edi, edi
mov dword [ecx - 0x1c], 0
mov dword [ecx - 4], 0
lea edx, [edx + 2]
mov word [esi], di
lea esi, [esi + 0x42]
inc eax
mov word [edx - 2], di
cmp eax, 6
jl 0x45e2b0
xor eax, eax
lea edx, [ebx + 0x4c45c]
lea esi, [ebx + 0x4a454]
lea ecx, [ebx + 0x4a444]
mov byte [ebx + eax + 0x4a430], 0
lea ecx, [ecx + 4]
xor edi, edi
mov dword [ecx - 0x14], 0
mov dword [ecx - 4], 0
lea edx, [edx + 2]
mov word [esi], di
lea esi, [esi + 0x802]
inc eax
mov word [edx - 2], di
mov edi, dword [ebp - 0x814]
cmp eax, 4
jl 0x45e2f2
mov eax, dword [ebp - 0x810]
mov dword [edi + 0x20810], eax
xor ecx, ecx
mov word [edi + 0x75b2], cx
mov eax, dword [ebx + 0x3426c]
mov dword [edi + 0x20814], eax
mov eax, dword [ebx + 0x367a0]
mov dword [edi + 0x2081c], eax
mov eax, dword [ebx + 0x34270]
mov dword [edi + 0x20818], eax
mov eax, 0x378
mov word [edi + 0x75b4], ax
jmp 0x45e5c7
mov ecx, 1
mov dword [ebx + 4], 1
mov word [ebx], cx
mov edx, 0x32
mov ecx, eax
nop dword [eax]
mov dword [ecx], esi
lea ecx, [ecx + 0x10b0]
sub edx, 1
jne 0x45e390
mov ecx, dword [ebp - 0x810]
lea esi, [edi + 0x4c28]
mov dword [eax], ecx
mov ecx, 0x228
mov ax, word [edi + 0x3400]
lea edi, [ebx + 0x10]
mov word [ebx + 0x8b0], ax
mov byte [ebx + 0x8b2], dl
mov eax, dword [ebx + 4]
mov dword [ebx + 0x8b4], eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebx + 0x8b8]
push 0x200
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00565fee
mov edi, dword [ebp - 0x814]
add esp, 0xc
lea eax, [edi + 0x3402]
push eax
lea eax, [ebx + 0xcb8]
push 0x200
push eax
call fcn.00565fee
add esp, 0xc
cmp byte [ebp - 0x824], 0
je 0x45e539
xor eax, eax
mov dword [ebx + 0x34268], 0
mov dword [ebx + 0x3426c], 0
lea ecx, [ebx + 0x4524c]
mov dword [ebx + 0x34270], 0
lea edx, [ebx + 0x45224]
mov dword [ebx + 0x367a0], 0
mov byte [ebx + 0x367a4], 0
mov word [ebx + 0x367a6], ax
mov dword [ebx + 0x367a8], eax
mov word [ebx + 0x367ac], ax
mov dword [ebx + 0x4520e], eax
mov word [ebx + 0x45212], ax
nop dword [eax]
mov byte [ebx + eax + 0x45218], 0
lea edx, [edx + 4]
xor esi, esi
mov dword [edx - 4], 0
inc eax
mov word [ecx], si
lea ecx, [ecx + 0x802]
cmp eax, 0xa
jl 0x45e480
xor eax, eax
lea edx, [ebx + 0x4a424]
lea esi, [ebx + 0x4a298]
lea ecx, [ebx + 0x4a280]
nop word [eax + eax]
mov byte [ebx + eax + 0x4a260], 0
lea ecx, [ecx + 4]
xor edi, edi
mov dword [ecx - 0x1c], 0
mov dword [ecx - 4], 0
lea edx, [edx + 2]
mov word [esi], di
lea esi, [esi + 0x42]
inc eax
mov word [edx - 2], di
cmp eax, 6
jl 0x45e4c0
xor eax, eax
lea edx, [ebx + 0x4c45c]
lea esi, [ebx + 0x4a454]
lea ecx, [ebx + 0x4a444]
mov byte [ebx + eax + 0x4a430], 0
lea ecx, [ecx + 4]
xor edi, edi
mov dword [ecx - 0x14], 0
mov dword [ecx - 4], 0
lea edx, [edx + 2]
mov word [esi], di
lea esi, [esi + 0x802]
inc eax
mov word [edx - 2], di
mov edi, dword [ebp - 0x814]
cmp eax, 4
jl 0x45e502
xor eax, eax
mov word [edi + 0x7570], ax
mov eax, dword [ebx + 0x34268]
mov dword [edi + 0x20810], eax
mov eax, dword [ebx + 0x3426c]
mov dword [edi + 0x20814], eax
mov eax, dword [ebx + 0x34270]
mov dword [edi + 0x20818], eax
mov eax, dword [ebx + 0x367a0]
mov dword [edi + 0x2081c], eax
lea eax, [edi + 0x3402]
push eax
lea eax, [edi + 0x75c4]
mov dword [edi + 0x75b2], 1
push 0x200
push eax
call fcn.00565fee
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
lea eax, [edi + 0x79c4]
push 0x200
push eax
call fcn.00565fee
add esp, 0xc
xor eax, eax
mov word [edi + 0x75c2], ax
mov eax, dword [ebp - 0x810]
mov dword [edi + 0x75b8], eax
push 0x20a8
lea eax, [edi + 0x54c8]
push eax
lea eax, [ebx + 0x34274]
push eax
call fcn.00563820
mov edx, dword [ebp - 0x814]
add esp, 0xc
mov esi, 1
jmp 0x45e5f5
mov esi, dword [ebp - 0x820]
mov eax, dword [ebx + 0x34268]
mov dword [edx + 0x20810], eax
mov eax, dword [ebx + 0x3426c]
mov dword [edx + 0x20814], eax
mov eax, dword [ebx + 0x34270]
mov dword [edx + 0x20818], eax
mov eax, dword [ebx + 0x367a0]
mov dword [edx + 0x2081c], eax
mov al, byte [ebx + 0x367a4]
mov byte [edx + 0x20847], al
test al, al
je 0x45e683
mov eax, dword [ebx + 0x367a8]
mov dword [edx + 0x20848], eax
movzx eax, word [ebx + 0x367a6]
mov word [edx + 0x2084c], ax
test ax, ax
jne 0x45e668
lea eax, [ebx + 0x367ac]
push 0xea6a
push eax
lea eax, [edx + 0x2084e]
jmp 0x45e67a
lea eax, [ebx + 0x45218]
push 0x7250
push eax
lea eax, [edx + 0x2f2b8]
push eax
call fcn.00563820
add esp, 0xc
push ebx
mov byte [ebx + 0x367a4], 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [ebp - 0x830]
mov edi, dword [ebp - 0x814]
push dword [edi + 0x20834]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
movzx eax, si
mov ecx, 0x7d3
cmp ax, cx
jg 0x45e74b
je 0x45dbfc
test ax, ax
je 0x45e725
mov ecx, 0x7d1
cmp ax, cx
jne 0x45e772
push 0x7d0
call fcn.00560858
add esp, 4
push ebx
push 0x839
push 0x5b2b30
push 0x5aa1dc
mov esi, eax
push 0x1f4
push esi
call fcn.00406c50
mov ebx, dword [ebp - 0x810]
add esp, 0x18
push 0x30
push 0x591508
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call fcn.00560853
add esp, 4
mov ecx, 0x378
jmp 0x45e77d
mov ecx, 0x378
cmp word [edi + 0x7570], cx
je 0x45e777
cmp word [edi + 0x1800], 0
mov ebx, dword [ebp - 0x810]
je 0x45e77d
mov esi, dword [ebp - 0x828]
jmp 0x45e783
mov ecx, 0x7d4
cmp ax, cx
jne 0x45e772
push 0x7d0
call fcn.00560858
add esp, 4
push ebx
push 0x83b
push str.qQ_tg
jmp 0x45e6eb
mov ecx, 0x378
mov ebx, dword [ebp - 0x810]
mov esi, dword [ebp - 0x818]
cmp word [edi + 0x3402], 0
lea eax, [edi + 0x3402]
jne 0x45e7a7
cmp word [edi + 0x7570], cx
mov eax, 0x5b2b90
mov edx, 0x5b2b6c
cmove eax, edx
push 0x591508
push eax
push str._s____s
lea eax, [ebp - 0x80c]
push 0x200
push eax
call fcn.00406c50
add esp, 0x14
lea eax, [ebp - 0x80c]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056060a
mov esp, ebp
pop ebp
ret 4