Function at 0x446820
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x5ef2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0xa34]
push esi
call fcn.004462b0
lea ecx, [ebp - 0xa34]
call fcn.00440120
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
cmp word [ebp - 0x20c], ax
jne 0x44688c
xor ecx, ecx
jmp 0x4468a4
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x446895
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00423770
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00446660
add esp, 8
cmp dword [ebp - 0x214], 0
jne 0x446997
push edi
push 1
push 0xffffffffffffffff
push 0x584034
lea ecx, [ebp - 0x23c]
call fcn.004467a0
push 1
push 0xffffffffffffffff
push 0x5d3620
lea ecx, [ebp - 0x23c]
mov edi, eax
call fcn.004467a0
push 1
push 0xffffffffffffffff
push 0x5d3620
lea ecx, [ebp - 0x23c]
mov esi, eax
call fcn.004467a0
sub edi, esi
lea ecx, [ebp - 0x23c]
dec edi
inc eax
push edi
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00423c70
mov esi, eax
lea eax, [ebp - 0x224]
pop edi
cmp eax, esi
je 0x446980
cmp dword [ebp - 0x210], 8
jb 0x446957
push dword [ebp - 0x224]
call fcn.0053ce38
add esp, 4
xor eax, eax
mov dword [ebp - 0x210], 7
push esi
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov word [ebp - 0x224], ax
call fcn.00424aa0
cmp dword [ebp - 0x240], 8
jb 0x446997
push dword [ebp - 0x254]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x446a75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x446a75
push ebx
call fcn.0044d481
lea eax, [ebp - 0x2d8]
push eax
call fcn.0044994d
add esp, 8
mov ecx, eax
call fcn.00447c90
push eax
call fcn.0044d785
add esp, 4
lea ecx, [ebp - 0x2d8]
call fcn.00447670
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0xa34]
call fcn.0043e960
cmp dword [eax + 0x14], 8
jb 0x446a19
mov eax, dword [eax]
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0
push 0x96c80000
push eax
push 0
lea ecx, [ebp - 0xa34]
call fcn.00446ce6
cmp dword [ebp - 0x240], 8
jb 0x446a5b
push dword [ebp - 0x254]
call fcn.0053ce38
add esp, 4
lea ecx, [ebp - 0xa34]
call fcn.00446b85
lea ecx, [ebp - 0xa34]
call fcn.00447222
xor esi, esi
jmp 0x446ae5
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0xa34]
call fcn.0043e960
cmp dword [eax + 0x14], 8
jb 0x446a8f
mov eax, dword [eax]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
cmp dword [ebp - 0x240], 8
mov esi, eax
jb 0x446ab1
push dword [ebp - 0x254]
call fcn.0053ce38
add esp, 4
xor eax, eax
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
test esi, esi
je 0x446ae2
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
or esi, 0xffffffff
cmp dword [ebp - 0x210], 8
jb 0x446afc
push dword [ebp - 0x224]
call fcn.0053ce38
add esp, 4
xor eax, eax
mov dword [ebp - 0x210], 7
cmp dword [ebp - 0x228], 8
mov dword [ebp - 0x214], 0
mov word [ebp - 0x224], ax
jb 0x446b30
push dword [ebp - 0x23c]
call fcn.0053ce38
add esp, 4
xor eax, eax
mov dword [ebp - 0x228], 7
lea ecx, [ebp - 0xa34]
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
call fcn.00446440
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d5c4
mov esp, ebp
pop ebp
ret 0x10