Function at 0x1000aa30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2050
call fcn.10013ac0
mov eax, dword [0x10041280]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10043614], 0
jne 0x1000aa61
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x10043614], eax
push 0xffffffffffffffff
mov eax, dword [0x10043614]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx ecx, byte [0x10042410]
test ecx, ecx
je 0x1000aae9
push str.is_MTK_device_
push 0x1003d8a4
push 0x21a
push 0x1003d8b4
call fcn.10009640
add esp, 0x10
movzx edx, byte [0x10043618]
test edx, edx
je 0x1000aac6
push str.is_V6_tool_
push 0x1003d8d4
push 0x21d
push 0x1003d8e4
call fcn.10009640
add esp, 0x10
mov dword [ebp + 0x10], 0x30
jmp 0x1000aae9
push str.is_V5_tool_
push 0x1003d904
push 0x222
push 0x1003d914
call fcn.10009640
add esp, 0x10
mov dword [ebp + 0x10], 0x20
push str.RAW_data_HEX:
push 0x1003d938
push 0x228
push 0x1003d948
call fcn.10009640
add esp, 0x10
mov dword [ebp - 0x2048], 0
mov byte [ebp - 0x2004], 0
push 0xfff
push 0
lea eax, [ebp - 0x2003]
push eax
call fcn.10015040
add esp, 0xc
mov dword [ebp - 0x2048], 0
jmp 0x1000ab47
mov ecx, dword [ebp - 0x2048]
add ecx, 1
mov dword [ebp - 0x2048], ecx
mov edx, dword [ebp - 0x2048]
cmp edx, dword [ebp + 0x10]
jae 0x1000ab7c
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x2048]
movzx ecx, byte [eax]
push ecx
push 0x1003d95c
mov edx, dword [ebp - 0x2048]
lea eax, [ebp + edx*2 - 0x2004]
push eax
call fcn.1000e80b
add esp, 0xc
jmp 0x1000ab38
lea ecx, [ebp - 0x2004]
push ecx
push 0x1003d964
push 0x22f
push 0x1003d974
call fcn.10009640
add esp, 0x10
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
call fcn.1000a320
cmp dword [0x10042414], 0xffffffff
jne 0x1000abc4
call fcn.10009f90
mov dword [0x10042414], eax
cmp dword [0x10042414], 0xffffffff
jne 0x1000abfe
push 0x1003d988
push 0x1003d9a0
push 0x239
push 0x1003d9b0
call fcn.10009640
add esp, 0x10
mov ecx, dword [0x10043614]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
or eax, 0xffffffff
jmp 0x1000af8f
mov edx, dword [ebp + 0x10]
push edx
push str.SLA_Challenge_input_lenght__d
push 0x1003d9e4
push 0x23f
push 0x1003d9f4
call fcn.10009640
add esp, 0x14
lea ecx, [ebp - 0x201c]
call fcn.10002bf0
movzx eax, byte [0x10042410]
test eax, eax
je 0x1000ad2e
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2034]
push edx
call fcn.10009e10
add esp, 8
push eax
lea ecx, [ebp - 0x201c]
call fcn.10002cb0
lea ecx, [ebp - 0x2034]
call fcn.10002d60
lea ecx, [ebp - 0x201c]
call fcn.10002f10
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
push eax
push str.mtk_SLA_Challenge_lenght___d_token_HEX:
push 0x1003da34
push 0x245
push 0x1003da44
call fcn.10009640
add esp, 0x14
mov dword [ebp - 0x2044], 0
mov byte [ebp - 0x1004], 0
push 0xfff
push 0
lea ecx, [ebp - 0x1003]
push ecx
call fcn.10015040
add esp, 0xc
mov dword [ebp - 0x2044], 0
jmp 0x1000acd2
mov edx, dword [ebp - 0x2044]
add edx, 1
mov dword [ebp - 0x2044], edx
mov eax, dword [ebp - 0x2044]
cmp eax, dword [ebp + 0x10]
jae 0x1000ad10
mov ecx, dword [ebp - 0x2044]
push ecx
lea ecx, [ebp - 0x201c]
call fcn.10002ed0
movzx edx, byte [eax]
push edx
push 0x1003da58
mov eax, dword [ebp - 0x2044]
lea ecx, [ebp + eax*2 - 0x1004]
push ecx
call fcn.1000e80b
add esp, 0xc
jmp 0x1000acc3
lea edx, [ebp - 0x1004]
push edx
push 0x1003da60
push 0x24d
push 0x1003da70
call fcn.10009640
add esp, 0x10
mov dword [ebp - 0x2038], 0xfffffffe
mov dword [ebp - 0x2040], 0
mov dword [ebp - 0x203c], 0
mov dword [ebp - 0x204c], 0
push 4
lea eax, [ebp - 0x204c]
push eax
push 0x10042414
call fcn.1000a0a0
add esp, 0xc
test eax, eax
jne 0x1000ad75
jmp 0x1000af09
mov ecx, dword [ebp - 0x2038]
sub ecx, 1
mov dword [ebp - 0x2038], ecx
push 4
lea edx, [ebp + 0x10]
push edx
push 0x10042414
call fcn.1000a0a0
add esp, 0xc
test eax, eax
jne 0x1000ada0
jmp 0x1000af09
mov eax, dword [ebp - 0x2038]
sub eax, 1
mov dword [ebp - 0x2038], eax
movzx ecx, byte [0x10042410]
test ecx, ecx
je 0x1000adf9
lea ecx, [ebp - 0x201c]
call fcn.10002f10
push eax
lea ecx, [ebp - 0x201c]
call fcn.10002ef0
push eax
push 0x10042414
call fcn.1000a0a0
add esp, 0xc
test eax, eax
jne 0x1000ade8
jmp 0x1000af09
mov edx, dword [ebp - 0x2038]
sub edx, 1
mov dword [ebp - 0x2038], edx
jmp 0x1000ae26
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x10042414
call fcn.1000a0a0
add esp, 0xc
test eax, eax
jne 0x1000ae17
jmp 0x1000af09
mov edx, dword [ebp - 0x2038]
sub edx, 1
mov dword [ebp - 0x2038], edx
push 4
lea eax, [ebp - 0x2040]
push eax
push 0x10042414
call fcn.1000a020
add esp, 0xc
movzx ecx, al
test ecx, ecx
jne 0x1000ae48
jmp 0x1000af09
mov edx, dword [ebp - 0x2038]
sub edx, 1
mov dword [ebp - 0x2038], edx
cmp dword [ebp - 0x2040], 0
jne 0x1000ae65
jmp 0x1000af09
mov eax, dword [ebp - 0x2038]
sub eax, 1
mov dword [ebp - 0x2038], eax
mov ecx, dword [ebp - 0x2040]
push ecx
call fcn.1000dc3e
add esp, 4
mov dword [ebp - 0x203c], eax
cmp dword [ebp - 0x203c], 0
jne 0x1000ae94
jmp 0x1000af09
mov edx, dword [ebp - 0x2038]
sub edx, 1
mov dword [ebp - 0x2038], edx
mov eax, dword [ebp - 0x2040]
push eax
mov ecx, dword [ebp - 0x203c]
push ecx
push 0x10042414
call fcn.1000a020
add esp, 0xc
movzx edx, al
test edx, edx
jne 0x1000aec7
jmp 0x1000af09
mov eax, dword [ebp - 0x2038]
sub eax, 1
mov dword [ebp - 0x2038], eax
movzx ecx, byte [0x10042410]
test ecx, ecx
je 0x1000aef7
mov edx, dword [ebp - 0x2040]
push edx
mov eax, dword [ebp - 0x203c]
push eax
call fcn.10009bc0
add esp, 8
mov dword [ebp - 0x2038], 0
xor ecx, ecx
jne 0x1000ad4c
mov edx, dword [ebp - 0x2038]
push edx
push 0x1003da84
push 0x1003daa0
push 0x273
push 0x1003dab0
call fcn.10009640
add esp, 0x14
cmp dword [ebp - 0x2038], 0
je 0x1000af4f
cmp dword [ebp - 0x203c], 0
je 0x1000af4d
mov eax, dword [ebp - 0x203c]
push eax
call fcn.1000c4dd
add esp, 4
jmp 0x1000af65
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x2040]
mov dword [ecx], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x203c]
mov dword [eax], ecx
mov edx, dword [0x10043614]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x2038]
mov dword [ebp - 0x2050], eax
lea ecx, [ebp - 0x201c]
call fcn.10002d60
mov eax, dword [ebp - 0x2050]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c244
mov esp, ebp
pop ebp
ret 0x14