Function at 0x401eb0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
push 0x10
push str.10000
push 0xefdb
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
mov esi, 0x4120ac
xor ebx, ebx
mov ebp, dword [esp + 0x24]
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401eff
cmp cl, bl
je 0x401efb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401eff
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401edb
xor eax, eax
jmp 0x401f04
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40218b
mov esi, 0x4120a8
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401f37
cmp cl, bl
je 0x401f33
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401f37
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401f13
xor eax, eax
jmp 0x401f3c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40218b
push 0x412098
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401f6e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcA]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push edi
push ebx
push 0x415aa0
mov dword [0x415b10], 0x412088
mov dword [0x415a98], 0x415aa0
mov dword [0x415aa0], 0x84
mov dword [0x415b04], 0x300
call fcn.00402230
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xc
mov dword [0x415b24], eax
mov dword [0x415b28], ebx
call fcn.00405f70
add esp, 4
cmp eax, ebx
je 0x401ff7
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x401ff9
xor eax, eax
cmp eax, ebx
mov dword [0x415b28], eax
je 0x402008
mov dword [0x415b2c], ebx
mov ecx, dword [esp + 0x28]
push ecx
push ebp
call fcn.00401a60
mov edx, dword [0x415a98]
add esp, 8
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x415b2c]
cmp eax, ebx
je 0x402044
cmp dword [eax + 4], ebx
jle 0x402044
mov eax, dword [eax]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x415b2c]
mov esi, eax
cmp esi, ebx
je 0x40205a
mov ecx, esi
call fcn.00402550
push esi
call fcn.004056b6
add esp, 4
mov edx, dword [0x415a98]
mov dword [0x415b2c], ebx
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x415b28]
cmp esi, ebx
je 0x4020aa
mov eax, dword [esi]
cmp eax, ebx
je 0x40208b
push eax
call fcn.0040641a
add esp, 4
mov dword [esi], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40209e
push eax
call fcn.0040641a
add esp, 4
mov dword [esi + 4], ebx
push esi
mov dword [esi + 8], ebx
call fcn.004056b6
add esp, 4
mov eax, 0x415aa0
test eax, eax
je 0x40216e
mov esi, dword [0x415ab0]
cmp esi, ebx
je 0x4020f2
cmp dword [esi], ebx
je 0x4020f2
mov edi, 0x64
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x4020d7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
mov dword [esi + 0x10], ebx
call dword [esi + 0x20]
cmp dword [0x415aa0], edi
jne 0x4020eb
add esi, 0x1c
jmp 0x4020ee
add esi, 0x24
cmp dword [esi], ebx
jne 0x4020ca
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x415abc
call esi
push 0x415ad4
call esi
push 0x415aec
call esi
mov esi, dword [0x415b20]
cmp esi, ebx
je 0x40212f
mov edx, dword [esi + 4]
push edx
call dword [esi]
mov edi, dword [esi + 8]
push esi
call fcn.004056b6
add esp, 4
cmp edi, ebx
mov esi, edi
jne 0x402117
cmp dword [0x415ab8], ebx
je 0x40216e
cmp byte [0x415b0c], bl
je 0x40216e
mov eax, dword [0x415b18]
mov edi, dword [sym.imp.KERNEL32.dll_HeapDestroy]
cmp eax, ebx
je 0x402165
xor esi, esi
mov eax, dword [0x415b18]
mov ecx, dword [eax + esi*4]
push ecx
call edi
mov eax, dword [0x415b14]
inc esi
cmp esi, eax
jbe 0x402150
mov edx, dword [0x415ab8]
push edx
call edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10
push str.10000
call fcn.00405e0a
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x10