Function at 0x4396d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472709
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x485c44]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x130], ecx
push str.BDA_MUTEX
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x439724
xor al, al
jmp 0x439b7d
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x130]
add eax, 0x74
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.00434470
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
jmp 0x43978c
lea ecx, [ebp - 0x18]
call fcn.0042cf70
mov ecx, dword [ebp - 0x130]
add ecx, 0x74
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb4]
push ecx
mov edx, dword [ebp - 0xb0]
push edx
lea ecx, [ebp - 0x94]
call fcn.00434470
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041b600
movzx ecx, al
neg ecx
sbb ecx, ecx
add ecx, 1
movzx edx, cl
test edx, edx
je 0x439b53
lea ecx, [ebp - 0x18]
call fcn.004344d0
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x439b4e
mov ecx, dword [ebp - 0x1c]
call fcn.0042cda0
movzx ecx, al
test ecx, ecx
je 0x439b4e
mov ecx, dword [ebp - 0x1c]
add ecx, 8
call fcn.0043a340
movzx edx, al
test edx, edx
je 0x439b4e
push 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.0040d8a0
mov eax, dword [0x4764d8]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
add ecx, 0xb4
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040da60
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x1c]
add edx, 0x484
mov dword [ebp - 0xf4], edx
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xf0], ecx
mov edx, dword [ebp - 0xf4]
push edx
mov eax, dword [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00434470
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
jmp 0x4398b5
lea ecx, [ebp - 0x44]
call fcn.0042cf70
mov eax, dword [ebp - 0x1c]
add eax, 0x484
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0xfc]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.00434470
lea edx, [ebp - 0xa4]
push edx
lea ecx, [ebp - 0x44]
call fcn.0041b600
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
movzx ecx, al
test ecx, ecx
je 0x43997a
lea ecx, [ebp - 0x44]
call fcn.004344d0
mov edx, dword [eax]
movzx eax, byte [edx + 0x10]
test eax, eax
je 0x439975
lea ecx, [ebp - 0x44]
call fcn.004344d0
mov ecx, dword [eax]
movzx edx, byte [ecx + 0x11]
test edx, edx
je 0x439975
xor eax, eax
cmp dword [ebp - 0x28], 0
sete al
movzx ecx, al
test ecx, ecx
jne 0x43994b
push 0x20
push 1
lea ecx, [ebp - 0x3c]
call fcn.00414b10
lea ecx, [ebp - 0x44]
call fcn.004344d0
mov edx, dword [eax]
add edx, 0x14
mov dword [ebp - 0x110], edx
mov eax, dword [0x4764d8]
push eax
push 0
mov ecx, dword [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040f260
jmp 0x4398ad
push 0
mov edx, dword [ebp - 0x1c]
add edx, 0x1d0
push edx
call fcn.0042db50
mov ecx, eax
call fcn.0042dd30
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x24], 8
jb 0x4399aa
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x134], eax
jmp 0x4399b3
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x134], ecx
lea edx, [ebp - 0x48]
push edx
push 0
push 0
push 0
mov ecx, dword [ebp - 0x1c]
add ecx, 8
call fcn.00418a30
mov edx, dword [ebp - 0x134]
mov ecx, eax
call fcn.00411440
movzx eax, al
test eax, eax
je 0x439a02
push 0
mov ecx, dword [ebp - 0x1c]
add ecx, 0x1ec
push ecx
call fcn.0042db50
mov ecx, eax
call fcn.0042dd30
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x439afe
xor eax, eax
mov word [ebp - 0x68], ax
xor ecx, ecx
mov dword [ebp - 0x66], ecx
mov dword [ebp - 0x62], ecx
mov dword [ebp - 0x5e], ecx
mov dword [ebp - 0x5a], ecx
mov dword [ebp - 0x56], ecx
mov dword [ebp - 0x52], ecx
mov dword [ebp - 0x4e], ecx
mov word [ebp - 0x4a], cx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x118], edx
push 0xa
push 0x10
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call fcn.0045a76f
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 0x84]
call fcn.0040d8a0
mov edx, dword [0x4764d8]
push edx
push 0
mov eax, dword [ebp - 0x1c]
add eax, 0x208
push eax
lea ecx, [ebp - 0x84]
call fcn.0040da60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x138]
add edx, 2
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp - 0x138]
mov cx, word [eax]
mov word [ebp - 0x13e], cx
add dword [ebp - 0x138], 2
cmp word [ebp - 0x13e], 0
jne 0x439a8b
mov edx, dword [ebp - 0x138]
sub edx, dword [ebp - 0x13c]
sar edx, 1
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x144]
push eax
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0040ec70
push 0
lea edx, [ebp - 0x84]
push edx
call fcn.0042db50
mov ecx, eax
call fcn.0042dd30
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x84]
call fcn.0040d8a0
push 0
mov eax, dword [ebp - 0x1c]
add eax, 0x7c
push eax
call fcn.0042db50
mov ecx, eax
call fcn.0042dd30
push 0
mov ecx, dword [ebp - 0x1c]
add ecx, 0x98
push ecx
call fcn.0042db50
mov ecx, eax
call fcn.0042dd30
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0040fcb0
mov ecx, eax
call fcn.0040fd30
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040d8a0
jmp 0x439784
mov eax, dword [ebp - 0x130]
add eax, 0x74
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x12c]
mov eax, dword [ecx + 0x10]
sub eax, dword [edx + 0xc]
sar eax, 2
cmp eax, dword [ebp - 0x10]
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00458357
mov esp, ebp
pop ebp
ret