Function at 0x405fb0
Capabilities:
Check mutex on windows
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55136c
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x5bb270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
lea esi, [ebx + 0x2c]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
push 0x114
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0x14]
push 0
push esi
mov dword [ebp - 0x438], eax
call fcn.00537c80
add esp, 0xc
mov dword [esi], 0x114
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
lea ecx, [ebx + 0x150]
call fcn.00403ad0
test eax, eax
je 0x406115
cmp dword [ebx + 0x3c], 2
mov edi, 0x643
jne 0x40604b
mov ecx, ebx
call fcn.00406520
test eax, eax
jne 0x40604b
lea edi, [eax + 5]
mov eax, dword [ebp + 0x18]
cmp eax, 2
je 0x40605c
cmp eax, 3
jne 0x406107
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x406107
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00537c80
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00537c80
add esp, 0x18
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0x3f2
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x218]
push 0x104
push eax
mov eax, dword [sym.imp.USER32.dll_LoadStringW]
cmp edi, 5
jne 0x4060dd
push 0x3f7
jmp 0x4060e2
push 0x3f3
push esi
call eax
push esi
push 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.00405920
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, ebx
call fcn.00407c40
mov eax, edi
jmp 0x4064ab
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebx + 0x150]
call fcn.00403940
mov esi, eax
lea eax, [ebp - 0x434]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebx + 0x150]
call fcn.00403940
mov ecx, dword [esi]
mov esi, dword [ebp - 0x43c]
push dword [ecx - 0xc]
push dword [eax]
push esi
call fcn.00538806
mov edx, dword [ebp - 0x434]
add esp, 0xc
test eax, eax
sete byte [ebp - 0x421]
add edx, 0xfffffff0
or edi, 0xffffffff
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x406183
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
mov ecx, edi
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4061a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x421], 0
je 0x40620e
lea eax, [ebp - 0x428]
lea esi, [ebx + 0x150]
push eax
mov ecx, esi
call fcn.004039a0
push dword [eax]
lea eax, [ebx + 0xc]
mov dword [ebp - 4], 1
push dword [ebp - 0x42c]
push 0x561e78
push eax
call fcn.00405ee0
mov edx, dword [ebp - 0x428]
add esp, 0x10
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40627d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40627d
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00537c80
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0053725b
add esp, 0x18
lea eax, [ebp - 0x218]
push str..exe
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x406277
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x42c]
lea eax, [ebx + 0xc]
push str._s_s.DLL
push eax
call fcn.00405ee0
add esp, 0x10
lea esi, [ebx + 0x150]
mov eax, dword [ebp + 0x18]
cmp eax, 2
jne 0x4063c5
lea eax, [ebp - 0x428]
mov ecx, esi
push eax
call fcn.00403890
push dword [eax]
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 0x430], eax
mov edx, edi
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
mov dword [ebp - 0x434], eax
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062d6
mov ecx, dword [eax]
push dword [ebp - 0x434]
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x430], 0
je 0x4063ce
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x434], esi
test esi, esi
je 0x4063a8
lea ecx, [ebp - 0x42c]
call fcn.00401c40
push 0x7d0
mov dword [ebp - 4], 2
call fcn.00411f21
test eax, eax
je 0x40632d
push 0x7d0
push eax
lea ecx, [ebp - 0x42c]
call fcn.00404220
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00537c80
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0x3f6
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x420]
push 0
push esi
push eax
push 0
call fcn.00405920
add esp, 0x14
push dword [ebp - 0x434]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4063a8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, ebx
call fcn.00407c40
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x652
jmp 0x4064ab
cmp eax, 3
jne 0x40648a
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x428], eax
mov dword [ebx + 0x148], eax
test eax, eax
je 0x406511
call fcn.0041334f
mov ecx, dword [ebp - 0x428]
mov dword [eax + 0xc], ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.004038e0
push dword [ebp - 0x430]
mov dword [ebp - 4], 3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 0x144], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4064c9
cmp dword [ebx + 0x144], 0
je 0x4064c9
cmp dword [ebx + 0x3c], 2
jne 0x406475
mov ecx, ebx
call fcn.00406520
test eax, eax
jne 0x406475
push 2
push ecx
push esp
mov ecx, esi
call fcn.004037d0
push 0
mov ecx, ebx
call fcn.00407a30
mov ecx, ebx
call fcn.00407c40
mov ebx, 5
jmp 0x4064e9
lea ecx, [ebp - 0x430]
mov dword [ebp - 4], 0xffffffff
call fcn.00401e70
mov eax, dword [ebp + 0x18]
push dword [ebp - 0x42c]
lea ecx, [ebx + 0x10]
mov dword [ebx + 0x14], eax
call fcn.004020a0
push dword [ebp - 0x438]
lea ecx, [ebx + 4]
call fcn.004020a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053787e
mov esp, ebp
pop ebp
ret 0x14
push 1
push ecx
push esp
mov ecx, esi
call fcn.004037d0
push 0
mov ecx, ebx
call fcn.00407a30
mov ecx, ebx
call fcn.00407c40
mov ebx, 0x652
mov esi, dword [ebp - 0x430]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40650d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x4064ab
mov ecx, ebx
call fcn.00407c40
mov eax, 0x643
jmp 0x4064ab