Function at 0x100787a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10145812
mov eax, dword fs:[0]
push eax
sub esp, 0xb34
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], edx
mov dword [ebp - 0xa58], ecx
push str.LoginAgent::OOBESetPassword
lea ecx, [ebp - 0x63c]
call fcn.1000ab60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa70]
push 0x2b
push str.Global0C5354C6_381F_4AED_A3BA_8DB8B9D7AB51
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xa70], 0
mov dword [ebp - 0xa60], 0
mov dword [ebp - 0xa5c], 7
call fcn.10002060
cmp dword [ebp - 0xa5c], 8
lea eax, [ebp - 0xa70]
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmovae eax, dword [ebp - 0xa70]
push eax
push 0
push 0
mov dword [ebp - 0x1c], 0
call edi
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0xa70]
mov byte [ebp - 4], 1
call fcn.10002400
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10078f26
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call esi
test eax, eax
jne 0x10078f26
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xa94], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa70]
push 0x2b
push str.Global0C5354C6_381F_4AED_A3BA_8DB8B9D7AB51
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xa70], 0
mov dword [ebp - 0xa60], 0
mov dword [ebp - 0xa5c], 7
call fcn.10002060
cmp dword [ebp - 0xa5c], 8
lea eax, [ebp - 0xa70]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0xa70]
push eax
push 0
push 0
call edi
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0xa70]
call fcn.10002400
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1007890e
lea esi, [eax + 0x1f]
jmp 0x1007891a
push 0xffffffffffffffff
push eax
call esi
neg eax
sbb esi, esi
and esi, 0x1f
test esi, esi
sete byte [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.10069b30
test al, al
jne 0x1007899d
push str.LoginAgent::OOBESetPassword
mov edx, 0x10
lea ecx, [ebp - 0x144]
call fcn.1000aed0
add esp, 4
mov byte [ebp - 4], 6
cmp byte [eax + 0x48], 0
je 0x1007895b
mov edx, str.not_an_OOBE_kit___exit
mov ecx, eax
call fcn.10020800
lea ecx, [ebp - 0x144]
call fcn.1000ad70
test esi, esi
jne 0x10078978
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10078986
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10078986
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10078f76
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x10078f68
lea ecx, [ebp - 0x138]
call fcn.1006e6e0
mov byte [ebp - 4], 7
call fcn.100e9270
test al, al
je 0x10078edd
cmp dword [ebp - 0x108], 0
je 0x10078edd
lea ecx, [ebp - 0x228]
call fcn.10074f90
push 0x34
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 9
push 0
push eax
call fcn.10117ff0
add esp, 0xc
lea ecx, [ebp - 0x5c]
call fcn.100feb80
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x5c]
call fcn.100fec80
test al, al
jne 0x10078a2d
push str.LoginAgent::OOBESetPassword
mov edx, 0x10
lea ecx, [ebp - 0xb40]
call fcn.1000aed0
add esp, 4
mov byte [ebp - 4], 0xb
cmp byte [eax + 0x48], 0
je 0x10078a64
mov edx, str.load_UserInfoEx_fail
jmp 0x10078a5d
cmp dword [ebp - 0x218], 0
jne 0x10078aa4
push str.LoginAgent::OOBESetPassword
mov edx, 0x10
lea ecx, [ebp - 0xb40]
call fcn.1000aed0
add esp, 4
mov byte [ebp - 4], 0xc
cmp byte [eax + 0x48], 0
je 0x10078a64
mov edx, str.empty_email___exit
mov ecx, eax
call fcn.10020800
lea ecx, [ebp - 0xb40]
call fcn.1000ad70
lea ecx, [ebp - 0x40]
call fcn.10002400
lea ecx, [ebp - 0x58]
call fcn.10002400
lea ecx, [ebp - 0x228]
call fcn.10071e10
lea ecx, [ebp - 0x138]
call fcn.10069330
cmp byte [ebp - 0x20], 0
je 0x10078978
jmp 0x1007896a
call fcn.10078340
call fcn.100deed0
mov byte [ebp - 4], 0xd
mov dword [ebp - 0xa54], 5
lea esi, [eax + 0x68]
lea eax, [ebp - 0xa54]
mov ecx, esi
push eax
lea eax, [ebp - 0xa64]
push eax
call fcn.100e1770
mov edx, dword [ebp - 0xa5c]
cmp byte [edx + 0xd], 0
jne 0x10078ae6
cmp dword [edx + 0x10], 5
jle 0x10078ae8
mov edx, dword [esi]
cmp edx, dword [esi]
je 0x10078af9
add edx, 0x14
cmp dword [edx + 0x14], 0x10
jb 0x10078afe
mov edx, dword [edx]
jmp 0x10078afe
mov edx, 0x10164d88
mov ecx, edx
mov dword [ebp - 0xa88], 0
mov dword [ebp - 0xa78], 0
mov dword [ebp - 0xa74], 0xf
mov byte [ebp - 0xa88], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10078b28
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0xa88]
call fcn.10002c70
lea eax, [ebp - 0xa54]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0xa64]
mov dword [ebp - 0xa54], 4
push eax
mov ecx, esi
call fcn.100e1770
mov edx, dword [ebp - 0xa5c]
cmp byte [edx + 0xd], 0
jne 0x10078b73
cmp dword [edx + 0x10], 4
jle 0x10078b75
mov edx, dword [esi]
cmp edx, dword [esi]
je 0x10078b86
add edx, 0x14
cmp dword [edx + 0x14], 0x10
jb 0x10078b8b
mov edx, dword [edx]
jmp 0x10078b8b
mov edx, 0x10164d88
mov ecx, edx
mov dword [ebp - 0xa70], 0
mov dword [ebp - 0xa60], 0
mov dword [ebp - 0xa5c], 0xf
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10078bb0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xa70]
call fcn.10002c70
movups xmm0, xmmword [ebp - 0xa70]
mov eax, dword [ebp - 0xa78]
mov dword [ebp - 0x84], eax
mov al, byte [ebp - 0xa74]
movups xmmword [ebp - 0x9c], xmm0
mov byte [ebp - 0x80], al
movq xmm0, qword [ebp - 0xa60]
mov eax, dword [ebp - 0xa78]
movq qword [ebp - 0x8c], xmm0
movups xmm0, xmmword [ebp - 0xa88]
mov dword [ebp - 0x64], eax
mov al, byte [ebp - 0xa74]
movups xmmword [ebp - 0x7c], xmm0
mov byte [ebp - 0x60], al
movq xmm0, qword [ebp - 0xa78]
movq qword [ebp - 0x6c], xmm0
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x138]
push dword [ebp - 0x28]
push dword [ebp - 0xa58]
sub esp, 0x20
mov esi, esp
mov ecx, esi
mov dword [ebp - 0xa58], esi
push eax
call fcn.10002780
mov eax, dword [ebp - 0x120]
mov dword [esi + 0x18], eax
mov al, byte [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x9c]
mov byte [esi + 0x1c], al
call fcn.100801b0
lea ecx, [ebp - 0x9c]
test al, al
jne 0x10078ced
call fcn.1002e900
lea ecx, [ebp - 0x40]
call fcn.10002400
lea ecx, [ebp - 0x58]
call fcn.10002400
lea ecx, [ebp - 0x228]
call fcn.10071e10
lea ecx, [ebp - 0x138]
call fcn.10069330
cmp byte [ebp - 0x20], 0
mov eax, dword [ebp - 0x18]
je 0x10078cb3
test eax, eax
je 0x10078cc2
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10078cc2
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
jmp 0x10078cc8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10078f76
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10078f76
push eax
call esi
jmp 0x10078f76
call fcn.1002e900
push str.signal_enqueue_delayed_refresh_user_info
lea ecx, [ebp - 0xa50]
mov dword [ebp - 4], 0xa
call fcn.1000ab60
push str.GlobalAB447967_4C6E_4493_82EA_AD108D608C88
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x10078d30
mov dword [ebp - 0xa54], 0
jmp 0x10078d38
call edi
mov dword [ebp - 0xa54], eax
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 0x14
test esi, esi
je 0x10078db1
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x10078da6
call edi
push str.signal_enqueue_delayed_refresh_user_info
mov edx, 4
mov dword [ebp - 0xa58], eax
lea ecx, [ebp - 0xb40]
call fcn.1000aed0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 0x15
mov al, byte [edi + 0x48]
test al, al
je 0x10078d9b
mov edx, str.set_event_EnqueueDelayedRefreshUserInfo_err
mov ecx, edi
call fcn.100205a0
mov al, byte [edi + 0x48]
test al, al
je 0x10078d9b
push dword [ebp - 0xa58]
mov ecx, edi
call fcn.10026c90
lea ecx, [ebp - 0xb40]
call fcn.1000ad70
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x10078e07
push str.signal_enqueue_delayed_refresh_user_info
mov edx, 4
lea ecx, [ebp - 0xb40]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x16
mov al, byte [esi + 0x48]
test al, al
je 0x10078df6
mov edx, str.OpenEvent_EnqueueDelayedRefreshUserInfo_failed_err
mov ecx, esi
call fcn.10020800
mov al, byte [esi + 0x48]
test al, al
je 0x10078df6
push dword [ebp - 0xa54]
mov ecx, esi
call fcn.10026c90
lea ecx, [ebp - 0xb40]
call fcn.1000ad70
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xa50]
call fcn.1000ac70
lea ecx, [ebp - 0x40]
call fcn.10002400
lea ecx, [ebp - 0x58]
call fcn.10002400
lea ecx, [ebp - 0x228]
call fcn.10071e10
lea ecx, [ebp - 0x138]
call fcn.10069330
cmp byte [ebp - 0x20], 0
je 0x10078e4c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10078e56
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10078e56
push eax
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10078e6e
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10078e6e
push eax
call esi
lea ecx, [ebp - 0x63c]
call fcn.1000ac70
mov al, 1
jmp 0x10078f83
push str.LoginAgent::OOBESetPassword
mov edx, 0x10
lea ecx, [ebp - 0xb40]
call fcn.1000aed0
add esp, 4
mov byte [ebp - 4], 8
cmp byte [eax + 0x48], 0
je 0x10078f0b
mov edx, str.no_oobe_account___exit
mov ecx, eax
call fcn.10020800
lea ecx, [ebp - 0xb40]
call fcn.1000ad70
lea ecx, [ebp - 0x138]
call fcn.10069330
jmp 0x10078966
push str.LoginAgent::OOBESetPassword
mov edx, 0x10
lea ecx, [ebp - 0xb40]
call fcn.1000aed0
add esp, 4
mov byte [ebp - 4], 2
cmp byte [eax + 0x48], 0
je 0x10078f54
mov edx, str.allready_in_login_exit_this_instance
mov ecx, eax
call fcn.10020800
lea ecx, [ebp - 0xb40]
mov byte [ebp - 4], 1
call fcn.1000ad70
call fcn.10070130
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10078f76
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x63c]
call fcn.1000ac70
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret