Function at 0x104fa1e
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1063194]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
cmp esi, ebx
mov dword [ebp - 0x23c], ebx
lea edi, [ebp - 0x238]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x220], ebx
stosd dword es:[edi], eax
je 0x104fc83
cmp dword [ebp + 0xc], 4
je 0x104fa93
cmp dword [ebp + 0xc], 3
je 0x104fa93
cmp dword [ebp + 0xc], 2
jne 0x104fc83
cmp ecx, ebx
je 0x104fc83
cmp dword [0x1065908], ebx
mov dword [ecx], ebx
jne 0x104fab2
call fcn.0104f22d
cmp eax, ebx
jne 0x104fc86
lea eax, [ebp - 0x214]
push eax
push esi
lea edi, [ebp - 0x218]
call fcn.0104f6eb
test eax, eax
jne 0x104fad0
push 0x6e
jmp 0x104fc85
push 0x10139c4
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0101506d
test eax, eax
jl 0x104fac9
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010150e8
test eax, eax
jl 0x104fac9
lea eax, [esi - 1]
sub eax, dword [ebp - 0x210]
push eax
push dword [ebp - 0x21c]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0104f038
test eax, eax
jl 0x104fac9
lea ecx, [ebp - 0x23c]
call fcn.0104ef10
cmp eax, ebx
jne 0x104fc86
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [ebp - 0x210], eax
jne 0x104fb88
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp - 0x23c]
mov edi, eax
call fcn.01051d3f
push dword [ebp - 0x214]
call fcn.010215c9
push dword [ebp - 0x218]
call fcn.010215c9
pop ecx
pop ecx
mov eax, edi
jmp 0x104fc86
lea esi, [ebp - 0x23c]
call fcn.01051d3f
push 0x3e8
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp - 0x214]
cmp eax, ebx
mov ebx, dword [ebp - 0x218]
je 0x104fbce
cmp eax, 0x80
je 0x104fbce
cmp eax, 0x102
jne 0x104fc5d
push 0x20
pop esi
jmp 0x104fc65
push ebx
push edi
call fcn.0104f840
push 2
pop esi
cmp eax, esi
jne 0x104fc1a
cmp dword [ebp + 0xc], 3
je 0x104fc4d
push ebx
push edi
call fcn.0104f8f1
test eax, eax
jne 0x104fc35
xor esi, esi
mov dword [ebp - 0x220], 1
push dword [ebp - 0x210]
push ebx
push edi
push dword [ebp - 0x21c]
call fcn.0104ed45
test eax, eax
je 0x104fc3a
mov ecx, dword [ebp - 0x224]
mov dword [ecx], eax
jmp 0x104fc71
mov ecx, 0xb7
cmp eax, ecx
jne 0x104fc35
cmp dword [ebp + 0xc], esi
jne 0x104fc31
push ebx
push edi
call fcn.0104f9c7
jmp 0x104fbe2
mov esi, ecx
jmp 0x104fbf9
push 0x6e
pop esi
jmp 0x104fc4d
cmp dword [ebp - 0x220], 0
push 0xe
pop esi
je 0x104fc4d
push ebx
push edi
call fcn.0104f9c7
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x104fc65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.010215c9
push ebx
call fcn.010215c9
pop ecx
pop ecx
mov eax, esi
jmp 0x104fc86
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102177f
leave
ret 0xc