Function at 0x404fe0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb30
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x418], eax
mov eax, 0x533110
call fcn.00524684
mov dword [ebp - 0x3f8], 1
lea edx, [ebp - 0xc]
lea eax, [ebp - 0xc]
call fcn.0052f058
inc dword [ebp - 0x3f8]
xor edx, edx
mov word [ebp - 0x404], 8
mov word [ebp - 0x404], 0x14
mov dword [ebp - 0x10], edx
xor ecx, ecx
inc dword [ebp - 0x3f8]
xor eax, eax
mov word [ebp - 0x404], 8
mov word [ebp - 0x404], 0x20
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x429]
inc dword [ebp - 0x3f8]
mov word [ebp - 0x404], 8
mov word [ebp - 0x404], 0x2c
mov dword [ebp - 0x160], eax
inc dword [ebp - 0x3f8]
inc dword [ebp - 0x3f8]
xor edx, edx
mov word [ebp - 0x404], 8
mov dword [ebp - 0x428], edx
push 1
push 0
push ecx
call fcn.00524368
mov word [ebp - 0x404], 0x38
xor eax, eax
xor edx, edx
mov dword [ebp - 0x170], eax
add esp, 0xc
inc dword [ebp - 0x3f8]
lea eax, [ebp - 0x429]
mov word [ebp - 0x404], 8
mov word [ebp - 0x404], 0x44
mov dword [ebp - 0x174], edx
lea edx, [ebp - 0x429]
inc dword [ebp - 0x3f8]
mov word [ebp - 0x404], 8
or byte [ebp - 0x429], 1
call fcn.0040922c
mov ecx, dword [0x55ad00]
mov eax, dword [ecx]
call fcn.00402f50
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x418]
add eax, 0x3c
call fcn.0052f364
mov word [ebp - 0x404], 0x50
mov word [ebp - 0x404], 0x5c
xor edx, edx
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x178], edx
mov eax, 0x3f0
inc dword [ebp - 0x3f8]
mov edx, dword [ebp - 0xc]
call fcn.0041cce8
lea edx, [ebp - 0x178]
lea eax, [ebp - 0x10]
call fcn.0052f364
dec dword [ebp - 0x3f8]
lea eax, [ebp - 0x178]
mov edx, 2
call fcn.0052f334
push 2
push 0
lea ecx, [ebp - 0x436]
push ecx
call fcn.00524368
add esp, 0xc
lea eax, [ebp - 0x436]
or byte [ebp - 0x435], 8
mov cx, word [eax]
mov edx, dword [0x55ad00]
mov eax, dword [edx]
mov edx, dword [ebp - 0x10]
call fcn.00402ad0
push 0x20
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x494058]
call fcn.00498e10
mov ecx, dword [ebp - 0x418]
mov dword [ecx], eax
mov eax, dword [ebp - 0x418]
cmp dword [eax], 0
mov word [ebp - 0x404], 8
jmp 0x4052e6
mov word [ebp - 0x404], 0x80
xor eax, eax
mov dword [ebp - 0x184], eax
lea ecx, [ebp - 0x184]
inc dword [ebp - 0x3f8]
mov dl, 0x22
mov eax, dword [ebp - 0xc]
call fcn.004a35bc
lea edx, [ebp - 0x184]
lea eax, [ebp - 0x14]
call fcn.0052f364
dec dword [ebp - 0x3f8]
lea eax, [ebp - 0x184]
mov edx, 2
call fcn.0052f334
mov word [ebp - 0x404], 0x8c
xor ecx, ecx
lea edx, [ebp - 0x188]
mov dword [ebp - 0x188], ecx
lea eax, [ebp - 0x14]
inc dword [ebp - 0x3f8]
call fcn.0052f634
lea ecx, [ebp - 0x188]
push ecx
mov edx, 0x532130
lea eax, [ebp - 0x18c]
call fcn.0052f020
inc dword [ebp - 0x3f8]
xor eax, eax
mov dword [ebp - 0x190], eax
lea edx, [ebp - 0x18c]
inc dword [ebp - 0x3f8]
lea ecx, [ebp - 0x190]
pop eax
call fcn.0052f38c
lea edx, [ebp - 0x190]
lea eax, [ebp - 0x14]
call fcn.0052f364
dec dword [ebp - 0x3f8]
lea eax, [ebp - 0x190]
mov edx, 2
call fcn.0052f334
dec dword [ebp - 0x3f8]
lea eax, [ebp - 0x18c]
mov edx, 2
call fcn.0052f334
dec dword [ebp - 0x3f8]
lea eax, [ebp - 0x188]
mov edx, 2
call fcn.0052f334
mov word [ebp - 0x404], 0x98
xor ecx, ecx
mov dword [ebp - 0x194], ecx
lea edx, [ebp - 0x194]
inc dword [ebp - 0x3f8]
mov eax, dword [ebp - 0xc]
call fcn.004a4158
lea edx, [ebp - 0x194]
lea eax, [ebp - 0xc]
call fcn.0052f364
dec dword [ebp - 0x3f8]
lea eax, [ebp - 0x194]
mov edx, 2
call fcn.0052f334
mov word [ebp - 0x404], 0xa4
xor ecx, ecx
lea edx, [ebp - 0x198]
mov dword [ebp - 0x198], ecx
mov eax, 0x426
inc dword [ebp - 0x3f8]
call fcn.0041cc78
lea edx, [ebp - 0x198]
lea eax, [ebp - 0x10]
call fcn.0052f364
dec dword [ebp - 0x3f8]
lea eax, [ebp - 0x198]
mov edx, 2
call fcn.0052f334
push 2
push 0