Function at 0x45d480
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Get common file path
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x509138
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5364d0]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x294]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2a4]
mov edi, ecx
cmp eax, 6
jne 0x45da32
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [0x565180], 1
je 0x45dcb7
call 0x4289d0
test eax, eax
je 0x45dcb7
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.main
call fcn.00401640
lea edx, [esp + 0x14]
xor esi, esi
push edx
mov ecx, 0x510ba4
mov dword [esp + 0x2a0], esi
call fcn.00401640
mov byte [esp + 0x29c], 1
cmp dword [0x565350], esi
je 0x45d543
lea eax, [esp + 0x14]
push eax
mov edi, 0x565380
call fcn.004256f0
mov edi, eax
lea eax, [esp + 0x18]
call fcn.00404930
mov byte [esp + 0x29c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d56d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x29c], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d593
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.cmenu_failed
call fcn.00401640
lea edx, [esp + 0x18]
mov ebx, 2
push edx
mov ecx, 0x510ba8
mov dword [esp + 0x2a0], ebx
call fcn.00401640
mov byte [esp + 0x29c], 3
cmp dword [0x565350], esi
je 0x45d5e7
lea eax, [esp + 0x18]
push eax
mov edi, 0x565380
call fcn.004256f0
mov edi, eax
lea eax, [esp + 0x14]
call fcn.00404930
mov byte [esp + 0x29c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d60d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x29c], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d633
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x565350
call fcn.004c9ff0
xor edi, edi
call fcn.00492130
cmp dword [eax + 0x12c], esi
je 0x45d790
push str.360ZipRepairMenuMutex
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [esp + 0x1c], ebx
cmp ebx, esi
je 0x45d678
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x45d781
lea esi, [esp + 0x24]
call fcn.0045dcf0
mov dword [esp + 0x24], vtable.C360zipDialogT_class_CMenuRepairDlgImpl__0__1__0_.0
mov ebx, 4
mov dword [esp + 0x29c], ebx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
mov edi, esi
call fcn.00474c40
mov esi, eax
dec esi
neg esi
lea ecx, [esp + 0x14]
sbb esi, esi
push ecx
mov ecx, str.main
inc esi
lea edi, [ebx - 3]
call fcn.00401640
lea edx, [esp + 0x18]
push edx
mov ecx, 0x510ba4
mov byte [esp + 0x2a0], 5
call fcn.00401640
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
mov eax, 0x565350
mov byte [esp + 0x2a0], 6
call fcn.004c9fd0
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x29c], bl
call fcn.004016f0
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.cmenu_fixpopup
call fcn.00401640
lea edx, [esp + 0x18]
push edx
mov ecx, 0x510ba8
mov byte [esp + 0x2a0], 7
call fcn.00401640
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
mov eax, 0x565350
mov byte [esp + 0x2a0], 8
call fcn.004c9fd0
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x29c], bl
call fcn.004016f0
push 0x565350
call fcn.004c9ff0
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x2a0], ebp
call fcn.00466490
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x45dcb7
call fcn.004177c0
test eax, eax
jne 0x45d8fa
call fcn.00428740
lea edx, [esp + 0x14]
push edx
mov ecx, str.main
call fcn.00401640
lea eax, [esp + 0x18]
push eax
mov ecx, 0x510ba4
mov dword [esp + 0x2a0], 9
call fcn.00401640
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
mov eax, 0x565350
mov byte [esp + 0x2a0], 0xa
call fcn.004c9fd0
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x29c], ebp
call fcn.004016f0
lea edx, [esp + 0x14]
push edx
mov ecx, str.cmenu_fix
call fcn.00401640
lea eax, [esp + 0x18]
push eax
mov ecx, 0x510ba8
mov dword [esp + 0x2a0], 0xb
call fcn.00401640
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
mov eax, 0x565350
mov byte [esp + 0x2a0], 0xc
call fcn.004c9fd0
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x29c], ebp
call fcn.004016f0
lea edx, [esp + 0x14]
push edx
test edi, edi
je 0x45d893
mov ecx, str.manual
call fcn.00401640
lea eax, [esp + 0x18]
push eax
mov ecx, 0x515e28
mov dword [esp + 0x2a0], 0xd
call fcn.00401640
mov byte [esp + 0x29c], 0xe
jmp 0x45d8bf
mov ecx, 0x515e2c
call fcn.00401640
lea eax, [esp + 0x18]
push eax
mov ecx, 0x515e28
mov dword [esp + 0x2a0], 0xf
call fcn.00401640
mov byte [esp + 0x29c], 0x10
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
mov eax, 0x565350
call fcn.004c9fd0
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x29c], ebp
call fcn.004016f0
push 0x565350
call fcn.004c9ff0
jmp 0x45dcb7
test edi, edi
je 0x45dcb7
mov esi, str._repaircontextmenu
call fcn.0047f7e0
lea edx, [esp + 0x14]
push edx
mov ecx, str.main
call fcn.00401640
lea eax, [esp + 0x18]
push eax
mov ecx, 0x510ba4
mov dword [esp + 0x2a0], 0x11
call fcn.00401640
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
mov eax, 0x565350
mov byte [esp + 0x2a0], 0x12
call fcn.004c9fd0
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x29c], ebp
call fcn.004016f0
lea edx, [esp + 0x14]
push edx
mov ecx, str.cmenu_fix
call fcn.00401640
lea eax, [esp + 0x18]
push eax
mov ecx, 0x510ba8
mov dword [esp + 0x2a0], 0x13
call fcn.00401640
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
mov eax, 0x565350
mov byte [esp + 0x2a0], 0x14
call fcn.004c9fd0
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x29c], ebp
call fcn.004016f0
lea edx, [esp + 0x14]
push edx
mov ecx, str.manual
call fcn.00401640
lea eax, [esp + 0x18]
push eax
mov ecx, 0x515e28
mov dword [esp + 0x2a0], 0x15
call fcn.00401640
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
mov eax, 0x565350
mov byte [esp + 0x2a0], 0x16
call fcn.004c9fd0
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x29c], ebp
call fcn.004016f0
push 0x565350
call fcn.004c9ff0
jmp 0x45dcb7
test eax, eax
jne 0x45da63
mov edx, dword [edi + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_KillTimer]
push edi
call fcn.0045dd70
cmp dword [0x565178], 0
jne 0x45dcb7
mov dword [0x565178], 1
jmp 0x45dcb7
cmp eax, 1
jne 0x45db4a
mov eax, dword [edi + 0x4ee8]
mov ebp, dword [eax]
mov esi, dword [edi + 0x4ed0]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
mov ebx, dword [edi + 0x4ee8]
mov eax, dword [edi + 0x4ed0]
test esi, esi
je 0x45da96
cmp esi, eax
je 0x45da9b
call fcn.004e48f7
cmp ebp, ebx
je 0x45dcb7
test esi, esi
jne 0x45db3b
call fcn.004e48f7
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x45dabc
call fcn.004e48f7
cmp dword [ebp + 0x30], 0
je 0x45db25
test esi, esi
jne 0x45db42
call fcn.004e48f7
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x45dad7
call fcn.004e48f7
cmp dword [ebp + 0x2c], 0
jne 0x45db25
test esi, esi
jne 0x45db46
call fcn.004e48f7
cmp ebp, dword [esi + 0x18]
jne 0x45daf0
call fcn.004e48f7
lea ecx, [ebp + 0x18]
call fcn.0044b6f0
test eax, eax
je 0x45db25
lea esi, [esp + 0x1c]
call fcn.00475c20
mov dword [eax + 0x20], 0
call fcn.00475c20
mov eax, dword [eax]
mov ecx, dword [edi + 4]
push 0
push eax
push 0x800a
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
lea esi, [esp + 0x1c]
call fcn.00415b90
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x45da82
mov eax, dword [esi]
jmp 0x45dab2
mov eax, dword [esi]
jmp 0x45dacd
mov esi, dword [esi]
jmp 0x45dae6
cmp eax, 3
jne 0x45db72
mov edx, dword [edi + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [edi + 4]
push 0
push 0
push 0x800b
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x45dcb7
mov ebx, 4
cmp eax, ebx
jne 0x45dc74
mov ecx, dword [edi + 4]
push ebx
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
lea ebp, [edi + 0x4c94]
mov ecx, ebp
call fcn.00486c30
lea esi, [esp + 0x14]
call fcn.004048a0
mov dword [esp + 0x29c], 0x17
mov edx, dword [ebp]
cmp dword [edx - 0xc], 0
jne 0x45dc51
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
push eax
mov ecx, str.lastdir
call fcn.00401640
mov ecx, esi
call fcn.0048eb30
test eax, eax
je 0x45dc51
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
je 0x45dc51
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x8e]
push edx
mov word [esp + 0x90], cx
call fcn.004e8fe0
mov ecx, dword [edi + 4]
add esp, 0xc
push 0
push 0x10
lea eax, [esp + 0x8c]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x88]
call fcn.004047e0
test eax, eax
je 0x45dc51
push esi
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov edx, dword [ebp]
push 0
push 1
add edi, 0x535c
push edi
mov ecx, eax
call fcn.00480d50
lea ecx, [esp + 0x14]
call fcn.004016f0
jmp 0x45dcb7
mov ebp, dword [ebp]
push 0
push 1
add edi, 0x535c
push edi
mov edx, ebp
xor ecx, ecx
call fcn.00480d50
test eax, eax
jge 0x45dc46
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 7
jne 0x45dc97
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, 0x136
call int.0041cd00
push eax
push edi
call fcn.0046c9c0
jmp 0x45dcb7
cmp eax, 8
jne 0x45dcb7
lea eax, [edi + 0x4a78]
call fcn.004c0a50
test eax, eax
jne 0x45dcb7
mov ecx, dword [edi + 4]
push 8
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
mov ecx, dword [esp + 0x294]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.004e3edb
add esp, 0x28c
ret 4