Function at 0x10075650
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101451c7
mov eax, dword fs:[0]
push eax
sub esp, 0xbd0
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa9c], ecx
push str.LoginAgent::SwitchContext
lea ecx, [ebp - 0xa94]
call fcn.1000ab60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
push 0x2b
push str.Global0C5354C6_381F_4AED_A3BA_8DB8B9D7AB51
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
call fcn.10002060
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmovae eax, dword [ebp - 0x30]
push eax
push 0
push 0
mov dword [ebp - 0x18], 0
call edi
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.10002400
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1007604d
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call esi
test eax, eax
jne 0x1007604d
lea eax, [ebp - 0x18]
mov dword [ebp - 0xaa0], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
push 0x2b
push str.Global0C5354C6_381F_4AED_A3BA_8DB8B9D7AB51
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
call fcn.10002060
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0
cmovae eax, dword [ebp - 0x30]
push eax
push 0
push 0
call edi
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x30]
call fcn.10002400
xorps xmm0, xmm0
lea eax, [ebp - 0x14]
movlpd qword [ebp - 0x54], xmm0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10075789
mov eax, 0x1f
jmp 0x10075795
push 0xffffffffffffffff
push eax
call esi
neg eax
sbb eax, eax
and eax, 0x1f
test eax, eax
sete byte [ebp - 0x50]
lea ecx, [ebp - 0x174]
call fcn.1006e6e0
mov byte [ebp - 4], 6
call fcn.100e9270
test al, al
je 0x10075fc8
cmp dword [ebp - 0x144], 0
je 0x10075fc8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
sub esp, 8
mov dword [ebp - 0x1c], 0x1019ab88
push 0xffffffffffffffff
push dword [ebp - 0xa9c]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.10008fd0
movups xmm0, xmmword [ebp - 0x6c]
add esp, 0x18
movups xmmword [ebp - 0xd8], xmm0
movq xmm0, qword [ebp - 0x5c]
movq qword [ebp - 0xc8], xmm0
lea ecx, [ebp - 0xbcc]
mov byte [ebp - 4], 8
call fcn.1007b940
mov ecx, eax
mov dword [ebp - 0xb34], 0
mov dword [ebp - 0xb14], 0
mov dword [ebp - 0xb24], 0
mov dword [ebp - 0xb20], 0xf
mov byte [ebp - 0xb34], 0
mov dword [ebp - 0xb04], 0
mov dword [ebp - 0xb00], 0xf
mov byte [ebp - 0xb14], 0
mov byte [ebp - 0xad4], 0
mov byte [ebp - 0xab0], 0
mov dword [ebp - 0xaac], 0
mov dword [ebp - 0xaa8], 0
mov dword [ebp - 0xaa4], 0
cmp byte [ecx + 0x94], 0
lea eax, [ebp - 0xb34]
cmove eax, ecx
lea ecx, [ebp - 0x254]
push eax
call fcn.1006a670
lea ecx, [ebp - 0xb34]
call fcn.1006a5c0
lea ecx, [ebp - 0xbcc]
mov byte [ebp - 4], 0xd
call fcn.1007ac20
call fcn.100deed0
mov dword [ebp - 0xa9c], 5
lea esi, [eax + 0x68]
lea eax, [ebp - 0xa9c]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.100e1770
mov edx, dword [ebp - 0x1c]
cmp byte [edx + 0xd], 0
jne 0x10075906
cmp dword [edx + 0x10], 5
jg 0x10075906
cmp edx, dword [esi]
je 0x10075906
add edx, 0x14
cmp dword [edx + 0x14], 0x10
jb 0x1007590b
mov edx, dword [edx]
jmp 0x1007590b
mov edx, 0x10164d88
mov ecx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10075925
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.10002c70
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [ebp - 0x74], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [ebp - 0x64], xmm0
sub esp, 0x20
mov byte [ebp - 4], 0xe
mov esi, esp
mov dword [ebp - 0xa9c], esp
lea eax, [ebp - 0x174]
mov dword [ebp - 0x1c], esi
mov ecx, esi
push eax
call fcn.10002780
mov eax, dword [ebp - 0x15c]
mov dword [esi + 0x18], eax
mov al, byte [ebp - 0x158]
mov byte [esi + 0x1c], al
sub esp, 0x20
mov byte [ebp - 4], 0xf
mov esi, esp
lea eax, [ebp - 0x74]
mov ecx, esi
mov dword [ebp - 0x1c], esi
push eax
call fcn.10002780
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x1c0]
mov dword [esi + 0x18], eax
mov al, byte [ebp - 0x58]
mov byte [esi + 0x1c], al
mov byte [ebp - 4], 0xe
call fcn.100eb630
sub esp, 0x20
mov byte [ebp - 4], 0x10
mov esi, esp
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xa9c], esi
mov ecx, esi
push eax
call fcn.10002780
mov eax, dword [ebp - 0xc0]
mov dword [esi + 0x18], eax
mov al, byte [ebp - 0xbc]
mov byte [esi + 0x1c], al
sub esp, 0x20
mov byte [ebp - 4], 0x11
mov esi, esp
lea eax, [ebp - 0x154]
mov ecx, esi
mov dword [ebp - 0xa9c], esi
push eax
call fcn.10002780
mov eax, dword [ebp - 0x13c]
lea ecx, [ebp - 0x1c0]
mov dword [esi + 0x18], eax
mov al, byte [ebp - 0x138]
mov byte [esi + 0x1c], al
lea eax, [ebp - 0xb8]
push eax
mov byte [ebp - 4], 0x10
call fcn.100ebca0
mov byte [ebp - 4], 0x12
cmp byte [ebp - 0x78], 0
je 0x10075ad8
push str.LoginAgent::SwitchContext
mov edx, 4
lea ecx, [ebp - 0xbdc]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x13
cmp byte [esi + 0x48], 0
je 0x10075a63
mov edx, str.failed_SwitchContext_err
mov ecx, esi
call fcn.100205a0
cmp byte [ebp - 0x78], 1
jne 0x100760d2
cmp byte [esi + 0x48], 0
je 0x10075a8e
cmp dword [ebp - 0x9c], 0x10
lea edx, [ebp - 0xb0]
mov ecx, esi
cmovae edx, dword [ebp - 0xb0]
call fcn.10020800
lea ecx, [ebp - 0xbdc]
mov byte [ebp - 4], 0x12
call fcn.1000ad70
cmp byte [ebp - 0x78], 1
jne 0x100760d2
sub esp, 0x18
lea eax, [ebp - 0xb0]
mov ecx, esp
push eax
call fcn.10002780
lea edx, [ebp - 0xd8]
lea ecx, [ebp - 0x254]
call fcn.10075320
add esp, 0x18
mov byte [ebp - 0xa95], 0
jmp 0x10075f21
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x3c4]
call fcn.10076100
lea eax, [ebp - 0x174]
mov byte [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x330]
call fcn.10076200
mov byte [ebp - 4], 0x15
movsx eax, byte [ebp - 0x78]
test eax, eax
jne 0x100760d2
cmp dword [ebp - 0xa4], 0x10
lea eax, [ebp - 0xb8]
push dword [ebp - 0xa8]
cmovae eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0x154]
push eax
call fcn.10002c70
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x13c], eax
mov al, byte [ebp - 0x9c]
mov byte [ebp - 0x138], al
movsx eax, byte [ebp - 0x78]
test eax, eax
jne 0x100760d2
cmp dword [ebp - 0x84], 0x10
lea eax, [ebp - 0x98]
push dword [ebp - 0x88]
cmovae eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x174]
push eax
call fcn.10002c70
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x4a8]
cmp dword [ebp - 0xdc], 0x10
mov dword [ebp - 0x15c], eax
mov al, byte [ebp - 0x7c]
mov byte [ebp - 0x158], al
lea eax, [ebp - 0xf0]
cmovae eax, dword [ebp - 0xf0]
mov dword [ebp - 0xe0], 0
mov byte [eax], 0
call fcn.10074f90
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x16
call fcn.100feb80
lea ecx, [ebp - 0x4a8]
mov byte [ebp - 4], 0x17
push ecx
mov ecx, eax
call fcn.100fec80
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x16
call fcn.10002400
lea ecx, [ebp - 0x48]
call fcn.10002400
sub esp, 0x20
lea eax, [ebp - 0x174]
mov esi, esp
mov dword [ebp - 0x1c], esp
mov ecx, esi
mov dword [ebp - 0xa9c], esi
push eax
call fcn.10002780
mov eax, dword [ebp - 0x15c]
mov dword [esi + 0x18], eax
mov al, byte [ebp - 0x158]
mov byte [esi + 0x1c], al
sub esp, 0x20
mov byte [ebp - 4], 0x18
mov esi, esp
lea eax, [ebp - 0x74]
mov ecx, esi
mov dword [ebp - 0xa9c], esi
push eax
call fcn.10002780
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x294]
mov dword [esi + 0x18], eax
mov al, byte [ebp - 0x58]
mov byte [esi + 0x1c], al
mov byte [ebp - 4], 0x16
call fcn.100eb630
sub esp, 0x20
mov byte [ebp - 4], 0x19
mov esi, esp
lea eax, [ebp - 0x154]
mov ecx, esi
mov dword [ebp - 0x1c], esi
push eax
call fcn.10002780
mov eax, dword [ebp - 0x13c]
lea ecx, [ebp - 0x294]
mov dword [esi + 0x18], eax
mov al, byte [ebp - 0x138]
mov byte [esi + 0x1c], al
lea eax, [ebp - 0x680]
push eax
call fcn.100edd90
mov byte [ebp - 4], 0x1a
cmp byte [ebp - 0x4ac], 0
jne 0x10075cb9
lea eax, [ebp - 0x680]
push eax
lea edx, [ebp - 0x254]
lea ecx, [ebp - 0x4a8]
call fcn.10073190
add esp, 4
lea ecx, [ebp - 0x174]
call fcn.100e9540
test al, al
jne 0x10075d4e
push str.LoginAgent::SwitchContext
mov edx, 4
lea ecx, [ebp - 0xbdc]
call fcn.1000aed0
add esp, 4
mov byte [ebp - 4], 0x1b
cmp byte [eax + 0x48], 0
je 0x10075cfa
mov edx, str.failed_SaveUserInfo
mov ecx, eax
call fcn.100205a0
lea ecx, [ebp - 0xbdc]
mov byte [ebp - 4], 0x1a
call fcn.1000ad70
sub esp, 0x18
mov ecx, esp
push 0xe
push str.save_user_info
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.10002c70
lea edx, [ebp - 0xd8]
lea ecx, [ebp - 0x3c4]
call fcn.10075320
add esp, 0x18
mov byte [ebp - 0xa95], 0
jmp 0x10075ed8
lea ecx, [ebp - 0x4c]
call fcn.100feb80
lea ecx, [ebp - 0x4a8]
mov byte [ebp - 4], 0x1c
push ecx
mov ecx, eax
call fcn.100ff2b0
lea ecx, [ebp - 0x30]
mov byte [ebp - 0xa95], al
mov byte [ebp - 4], 0x1a
call fcn.10002400
lea ecx, [ebp - 0x48]
call fcn.10002400
cmp byte [ebp - 0xa95], 0
jne 0x10075dc8
push str.LoginAgent::SwitchContext
mov edx, 8
lea ecx, [ebp - 0xbdc]
call fcn.1000aed0
add esp, 4
mov byte [ebp - 4], 0x1d
cmp byte [eax + 0x48], 0
je 0x10075db9
mov edx, str.failed_save_UserInfoEx
mov ecx, eax
call fcn.100205a0
lea ecx, [ebp - 0xbdc]
mov byte [ebp - 4], 0x1a
call fcn.1000ad70
lea edx, [ebp - 0x254]
lea ecx, [ebp - 0x3c]
call fcn.1006c7a0
lea ecx, [ebp - 0x3c]
mov al, byte [eax + 0x20]
mov byte [ebp - 0xa95], al
call fcn.10010e20
cmp byte [ebp - 0xa95], 0
je 0x10075e2d
push str.LoginAgent::SwitchContext
mov edx, 8
lea ecx, [ebp - 0xbdc]
call fcn.1000aed0
add esp, 4
mov byte [ebp - 4], 0x1e
cmp byte [eax + 0x48], 0
je 0x10075e1e
mov edx, str.failed_save_user_context
mov ecx, eax
call fcn.100205a0
lea ecx, [ebp - 0xbdc]
mov byte [ebp - 4], 0x1a
call fcn.1000ad70
call fcn.1006d9e0
sub esp, 0x20
lea eax, [ebp - 0x310]
mov esi, esp
mov ecx, esi
mov dword [ebp - 0x1c], esi
push eax
call fcn.10002780
mov eax, dword [ebp - 0x2f8]
lea ecx, [ebp - 0x1c0]
mov dword [esi + 0x18], eax
mov al, byte [ebp - 0x2f4]
mov byte [esi + 0x1c], al
lea eax, [ebp - 0x20]
push eax
call fcn.100ec3c0
cmp byte [ebp - 0x1c], 0
je 0x10075ec0
push str.LoginAgent::SwitchContext
mov edx, 4
lea ecx, [ebp - 0xbdc]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x1f
mov al, byte [esi + 0x48]
test al, al
je 0x10075eb1
mov edx, str.failed_RemoveUserDevice_err
mov ecx, esi
call fcn.100205a0
mov al, byte [esi + 0x48]
test al, al
je 0x10075eb1
push dword [ebp - 0x20]
mov ecx, esi
call fcn.10026c90
lea ecx, [ebp - 0xbdc]
mov byte [ebp - 4], 0x1a
call fcn.1000ad70
lea edx, [ebp - 0x254]
lea ecx, [ebp - 0x3c4]
call fcn.10075050
mov byte [ebp - 0xa95], 1
movsx eax, byte [ebp - 0x4ac]
inc eax
sub eax, 0
je 0x10075ef5
sub eax, 1
jne 0x10075ef5
lea ecx, [ebp - 0x680]
call fcn.100417a0
lea ecx, [ebp - 0x294]
call fcn.1002e900
lea ecx, [ebp - 0x4a8]
call fcn.10071e10
lea ecx, [ebp - 0x330]
call fcn.10069330
lea ecx, [ebp - 0x3c4]
call fcn.1006a5c0
movsx eax, byte [ebp - 0x78]
inc eax
sub eax, 0
je 0x10075f42
lea ecx, [ebp - 0xb8]
sub eax, 1
je 0x10075f3d
call fcn.1003fd70
jmp 0x10075f42
call fcn.1002e900
lea ecx, [ebp - 0x1c0]
call fcn.1002e900
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
jb 0x10075f81
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10075f77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100760f6
push edx
push ecx
call fcn.101157ed
add esp, 8
lea ecx, [ebp - 0x254]
call fcn.1006a5c0
mov edx, dword [ebp - 0xc4]
cmp edx, 0x10
jb 0x10076008
mov ecx, dword [ebp - 0xd8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10075fbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100760f6
push edx
push ecx
call fcn.101157ed
add esp, 8
jmp 0x10076008
push str.LoginAgent::SwitchContext
mov edx, 4
lea ecx, [ebp - 0xbdc]
call fcn.1000aed0
add esp, 4
mov byte [ebp - 4], 7
cmp byte [eax + 0x48], 0
je 0x10075ff6
mov edx, str.NOT_logged_in
mov ecx, eax
call fcn.100205a0
lea ecx, [ebp - 0xbdc]
call fcn.1000ad70
mov byte [ebp - 0xa95], 0
lea ecx, [ebp - 0x174]
call fcn.10069330
cmp byte [ebp - 0x50], 0
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
je 0x10076029
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1007603b
push eax
call esi
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10076041
push eax
call edi
jmp 0x10076041
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100760a6
push eax
call esi
jmp 0x1007609c
push str.LoginAgent::SwitchContext
mov edx, 0x10
lea ecx, [ebp - 0x180]
call fcn.1000aed0
add esp, 4
mov byte [ebp - 4], 2
cmp byte [eax + 0x48], 0
je 0x1007607b
mov edx, str.allready_in_login_exit_this_instance
mov ecx, eax
call fcn.10020800
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 1
call fcn.1000ad70
call fcn.10070130
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xa95], 0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100760a6
push ecx
call edi
lea ecx, [ebp - 0xa94]
call fcn.1000ac70
mov al, byte [ebp - 0xa95]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.10012090
push 0x10197aa0
mov eax, ecx
push eax
call fcn.101179f2
call fcn.1011a6bf
int3