Function at 0x401e86
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40c4a6
mov eax, dword fs:[0]
push eax
sub esp, 0xaf8
push ebx
push esi
push edi
mov eax, dword [0x41402c]
xor eax, esp
push eax
lea eax, [esp + 0xb08]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
xor esi, esi
mov dword [esp + 0x10], esi
call fcn.00401b3b
push 0x40e0b0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0xc0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401f36
mov eax, dword [0x414104]
cmp eax, 0x414104
je 0x401f16
test byte [eax + 0x1c], 1
je 0x401f16
cmp byte [eax + 0x19], 2
jb 0x401f16
push 0x40de70
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0040148c
add esp, 0x10
mov eax, dword [edi + 0xc0]
cmp eax, esi
je 0x402300
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xc0], esi
jmp 0x402300
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, esi
je 0x401f82
mov ecx, dword [0x414104]
cmp ecx, 0x414104
je 0x402300
test byte [ecx + 0x1c], 1
je 0x402300
cmp byte [ecx + 0x19], 2
jb 0x402300
push eax
push 0x40de70
push 0xb
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.00401b81
add esp, 0x14
jmp 0x402300
mov ecx, edi
call fcn.00402318
test eax, eax
je 0x402300
mov ecx, edi
call fcn.004026f4
test eax, eax
jne 0x402300
mov eax, edi
call fcn.004029dd
test eax, eax
je 0x402300
mov eax, edi
call fcn.00402aee
mov esi, eax
mov eax, dword [0x414104]
mov ebx, 0x414104
cmp eax, ebx
je 0x401fed
test byte [eax + 0x1c], 1
je 0x401fed
cmp byte [eax + 0x19], 4
jb 0x401fed
push esi
push 0x40de70
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00401b81
mov eax, dword [0x414104]
add esp, 0x14
mov ecx, esi
sub ecx, 0
je 0x40218f
dec ecx
je 0x402048
dec ecx
jne 0x402300
mov esi, dword [edi + 0x20]
lea eax, [esp + 0x7c]
push eax
call fcn.00407872
lea eax, [esp + 0x7c]
mov dword [esp + 0xb10], 2
mov ecx, eax
mov dword [edi + 0x20], eax
call sub.mfc90u.dll_CPropertySheet::DoModal
mov eax, edi
call fcn.00402af5
or dword [esp + 0xb10], 0xffffffff
lea ecx, [esp + 0x7c]
mov dword [edi + 0x20], esi
call fcn.00407998
jmp 0x402300
call fcn.00402ba7
mov ebx, dword [edi + 0xd0]
mov eax, dword [0x414104]
cmp eax, 0x414104
je 0x402081
test byte [eax + 0x1c], 1
je 0x402081
cmp byte [eax + 0x19], 4
jb 0x402081
push ebx
push 0x40de70
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00401b81
add esp, 0x14
call fcn.00402b61
and dword [esp + 0x14], 0
test ebx, ebx
jle 0x4022f4
mov eax, dword [esp + 0x14]
lea ecx, [edi + 0xc8]
call fcn.00402f6d
mov edi, eax
test edi, edi
je 0x402178
mov eax, dword [0x414104]
cmp eax, 0x414104
je 0x40210f
test byte [eax + 0x1c], 1
je 0x40210f
cmp byte [eax + 0x19], 4
jb 0x40210f
mov eax, edi
call fcn.004054ec
add eax, 4
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00401a9c
mov esi, eax
mov dword [esp + 0xb10], 1
or dword [esp + 0x10], 2
cmp byte [esi + 0x24], 0
jne 0x4020f6
call fcn.00401af5
mov ecx, dword [0x414104]
mov eax, dword [esi + 0x1c]
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.00401ba4
add esp, 0xc
or dword [esp + 0xb10], 0xffffffff
test byte [esp + 0x10], 2
je 0x40213e
and dword [esp + 0x10], 0xfffffffd
cmp dword [esp + 0x40], 0
je 0x402134
push dword [esp + 0x40]
call sub.mfc90u.dll_delete__
pop ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov eax, edi
call fcn.004056dd
cmp eax, 2
jne 0x402171
mov eax, dword [edi]
push 0
push 0
mov ecx, edi
call dword [eax + 0x10]
test eax, eax
jne 0x402171
push 5
pop ecx
mov eax, edi
call fcn.004056d9
mov ecx, edi
call fcn.004056e1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
inc dword [esp + 0x14]
cmp dword [esp + 0x14], ebx
mov edi, dword [esp + 0x18]
jl 0x402093
jmp 0x4022f4
mov esi, dword [edi + 0xd0]
mov dword [esp + 0x20], esi
cmp eax, ebx
je 0x4021bf
test byte [eax + 0x1c], 1
je 0x4021bf
cmp byte [eax + 0x19], 4
jb 0x4021bf
push esi
push 0x40de70
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00401b81
add esp, 0x14
call fcn.00402b61
xor eax, eax
mov dword [esp + 0x14], eax
test esi, esi
jle 0x4022f4
add edi, 0xc8
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x1c]
call fcn.00402f6d
mov edi, eax
test edi, edi
je 0x4022dd
mov eax, dword [0x414104]
mov ebx, 0x414104
cmp eax, ebx
je 0x402251
test byte [eax + 0x1c], 1
je 0x402251
cmp byte [eax + 0x19], 4
jb 0x402251
mov eax, edi
call fcn.004054ec
add eax, 4
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00401a9c
mov esi, eax
and dword [esp + 0xb10], 0
or dword [esp + 0x10], 1
cmp byte [esi + 0x24], 0
jne 0x402238
call fcn.00401af5
mov ecx, dword [0x414104]
mov eax, dword [esi + 0x1c]
push 0xe
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.00401ba4
add esp, 0xc
or dword [esp + 0xb10], 0xffffffff
test byte [esp + 0x10], 1
je 0x402280
and dword [esp + 0x10], 0xfffffffe
cmp dword [esp + 0x6c], 0
je 0x402276
push dword [esp + 0x6c]
call sub.mfc90u.dll_delete__
pop ecx
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
jne 0x4022b1
mov eax, edi
call fcn.004054ec
test eax, eax
je 0x4022a8
cmp dword [eax + 0xeb8], 1
je 0x4022a8
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x4022dd
mov ecx, dword [0x414104]
cmp ecx, ebx
je 0x4022dd
test byte [ecx + 0x1c], 1
je 0x4022dd
cmp byte [ecx + 0x19], 2
jb 0x4022dd
push eax
push 0x40de70
push 0xf
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.00401b81
add esp, 0x14
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jl 0x4021dc
mov edi, dword [esp + 0x18]
call fcn.00402b29
mov eax, edi
call fcn.00402af5
xor eax, eax
mov ecx, dword [esp + 0xb08]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret