Function at 0x4e02f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592a7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x52c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ecx
mov esi, ecx
mov eax, esp
mov dword [ebp - 0x14], esp
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x28], esi
mov dword [eax], 0x7d0
call fcn.0048e5d0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0050a4d0
mov edx, dword [ebp - 0x10]
push 0x104
lea ecx, [ebp - 0x538]
push ecx
push str.SSDir
push edx
call fcn.0050a330
add esp, 0x14
test eax, eax
jne 0x4e036e
lea eax, [ebp - 0x260]
push eax
mov ecx, esi
call fcn.004dd7f0
jmp 0x4e0399
lea eax, [ebp - 0x538]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4e0377
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x538]
push ecx
lea ecx, [ebp - 0x260]
call fcn.00405e50
mov eax, dword [ebp - 0x10]
push 0x104
lea edx, [ebp - 0x538]
push edx
push str.ReportDir
push eax
call fcn.0050a330
add esp, 0x10
test eax, eax
jne 0x4e03ca
lea ecx, [ebp - 0x25c]
push ecx
mov ecx, esi
call fcn.004dd860
jmp 0x4e03f5
lea eax, [ebp - 0x538]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4e03d3
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x538]
push edx
lea ecx, [ebp - 0x25c]
call fcn.00405e50
mov ecx, dword [ebp - 0x10]
push 0x104
lea eax, [ebp - 0x538]
push eax
push str.LogsDir
push ecx
call fcn.0050a330
add esp, 0x10
test eax, eax
jne 0x4e0426
lea edx, [ebp - 0x258]
push edx
mov ecx, esi
call fcn.004dd8d0
jmp 0x4e04a2
mov edx, 0x59c2bc
lea ecx, [ebp - 0x538]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4e0457
cmp ax, bx
je 0x4e0453
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4e0457
add ecx, 4
add edx, 4
cmp ax, bx
jne 0x4e0431
xor eax, eax
jmp 0x4e045c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4e0470
lea eax, [ebp - 0x258]
push eax
mov ecx, esi
call fcn.004dd8d0
jmp 0x4e04a2
lea eax, [ebp - 0x538]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4e0480
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x538]
push ecx
lea ecx, [ebp - 0x258]
call fcn.00405e50
xor eax, eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x24]
xor edx, edx
push eax
mov word [ebp - 0x24], dx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push str.AutoGenerateHours
push edx
call fcn.0050a210
add esp, 0xc
test eax, eax
jne 0x4e04e5
mov eax, 1
mov word [ebp - 0x1c], ax
jmp 0x4e04ed
mov cx, word [ebp - 0x14]
mov word [ebp - 0x1c], cx
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push str.AutoGenerateMins
push eax
call fcn.0050a210
add esp, 0xc
test eax, eax
jne 0x4e050e
xor ecx, ecx
mov word [ebp - 0x1a], cx
jmp 0x4e0516
mov dx, word [ebp - 0x14]
mov word [ebp - 0x1a], dx
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push 0x5a5bb0
push ecx
call fcn.0050a210
add esp, 0xc
test eax, eax
jne 0x4e0537
xor edx, edx
mov word [ebp - 0x18], dx
jmp 0x4e053f
mov ax, word [ebp - 0x14]
mov word [ebp - 0x18], ax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x330]
call fcn.004189a0
cmp eax, 1
jne 0x4e0766
mov ecx, dword [ebp - 0x258]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp - 0x10]
inc ecx
push ecx
push eax
push str.SSDir
push edx
call fcn.0050a3e0
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
mov eax, dword [ebp - 0x10]
push str.ReportDir
push eax
call fcn.0050a3e0
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
mov ecx, dword [ebp - 0x10]
push eax
push str.LogsDir
push ecx
call fcn.0050a3e0
movzx edx, word [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
push edx
push str.AutoGenerateHours
push eax
call fcn.0050a260
movzx ecx, word [ebp - 0x1a]
mov edx, dword [ebp - 0x10]
push ecx
push str.AutoGenerateMins
push edx
call fcn.0050a260
movzx eax, word [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
add esp, 0x48
push eax
push 0x5a5bb0
push ecx
call fcn.0050a260
mov edx, dword [ebp - 0x10]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
call fcn.005096c0
mov esi, eax
mov eax, dword [ebp - 0xfc]
cmp eax, 0x12c
jle 0x4e061f
mov dword [ebp - 0xfc], 0x12c
jmp 0x4e0629
cmp eax, ebx
jge 0x4e0629
mov dword [ebp - 0xfc], ebx
push 0x17
xor eax, eax
mov edi, 7
push 0x5a3288
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x60], ax
call fcn.00407db0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xfc]
push ecx
lea edx, [ebp - 0x60]
push edx
push 1
mov ecx, esi
call fcn.00509190
mov byte [ebp - 4], 0
mov ebx, 8
cmp dword [ebp - 0x4c], ebx
jb 0x4e067b
mov eax, dword [ebp - 0x60]
push eax
call fcn.00553d26
add esp, 4
xor ecx, ecx
xor eax, eax
push 0x14
mov word [ebp - 0x60], cx
xor edx, edx
push str.StaffcopCheckUpdates
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], dx
call fcn.00407db0
mov byte [ebp - 4], 2
xor eax, eax
cmp dword [ebp - 0xf8], 1
lea ecx, [ebp - 0x44]
setne al
push eax
push ecx
push 1
mov ecx, esi
call fcn.00509190
mov byte [ebp - 4], 0
cmp dword [ebp - 0x30], ebx
jb 0x4e06d7
mov edx, dword [ebp - 0x44]
push edx
call fcn.00553d26
add esp, 4
xor eax, eax
push eax
push str.RefreshThreadWindowClass
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [ebp - 0xfc]
push 0
push ecx
push 0x8000
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x5a4f98
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
cmp eax, 0xb7
sete dl
mov edi, edx
test esi, esi
je 0x4e073f
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call ebx
push 0x5a4f28
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call ebx
test edi, edi
jne 0x4e0766
mov ecx, dword [ebp - 0x28]
call fcn.004739b0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x330]
call fcn.0048e7f0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10