Function at 0x10072080
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10144b90
mov eax, dword fs:[0]
push eax
sub esp, 0x7e8
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
push str.LoginAgent::LoginRedeem
lea ecx, [ebp - 0x6b4]
call fcn.1000ab60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x6d4]
push 0x2b
push str.Global0C5354C6_381F_4AED_A3BA_8DB8B9D7AB51
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x6d4], 0
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6c0], 7
call fcn.10002060
cmp dword [ebp - 0x6c0], 8
lea eax, [ebp - 0x6d4]
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmovae eax, dword [ebp - 0x6d4]
push eax
push 0
push 0
mov dword [ebp - 0x18], 0
call edi
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x6d4]
mov byte [ebp - 4], 1
call fcn.10002400
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1007272c
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call esi
test eax, eax
jne 0x1007272c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x70c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6d4]
push 0x2b
push str.Global0C5354C6_381F_4AED_A3BA_8DB8B9D7AB51
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x6d4], 0
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6c0], 7
call fcn.10002060
cmp dword [ebp - 0x6c0], 8
lea eax, [ebp - 0x6d4]
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x6d4]
push eax
push 0
push 0
call edi
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x6d4]
call fcn.10002400
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x100721e7
mov eax, 0x1f
jmp 0x100721f3
push 0xffffffffffffffff
push eax
call esi
neg eax
sbb eax, eax
and eax, 0x1f
test eax, eax
sete byte [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.100deed0
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.10039d00
lea ecx, [ebp - 0x118]
call fcn.1006e6e0
mov byte [ebp - 4], 7
call fcn.100e9270
lea eax, [ebp - 0x6bc]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x6c8]
mov byte [ebp - 0x6b5], 0
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x6bc], 5
call fcn.100e1770
mov edx, dword [ebp - 0x6c0]
cmp byte [edx + 0xd], 0
jne 0x1007225d
cmp dword [edx + 0x10], 5
jle 0x10072260
mov edx, dword [esi + 0x68]
cmp edx, dword [esi + 0x68]
je 0x10072272
add edx, 0x14
cmp dword [edx + 0x14], 0x10
jb 0x10072277
mov edx, dword [edx]
jmp 0x10072277
mov edx, 0x10164d88
mov ecx, edx
mov dword [ebp - 0x6ec], 0
mov dword [ebp - 0x6dc], 0
mov dword [ebp - 0x6d8], 0xf
mov byte [ebp - 0x6ec], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100722a1
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x6ec]
call fcn.10002c70
lea eax, [ebp - 0x6bc]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x6c8]
mov dword [ebp - 0x6bc], 4
push eax
lea ecx, [esi + 0x68]
call fcn.100e1770
mov edx, dword [ebp - 0x6c0]
cmp byte [edx + 0xd], 0
jne 0x100722ed
cmp dword [edx + 0x10], 4
jle 0x100722f0
mov edx, dword [esi + 0x68]
cmp edx, dword [esi + 0x68]
je 0x10072302
add edx, 0x14
cmp dword [edx + 0x14], 0x10
jb 0x10072307
mov edx, dword [edx]
jmp 0x10072307
mov edx, 0x10164d88
mov ecx, edx
mov dword [ebp - 0x6d4], 0
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6c0], 0xf
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10072330
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x6d4]
call fcn.10002c70
movups xmm0, xmmword [ebp - 0x6d4]
mov eax, dword [ebp - 0x6dc]
mov dword [ebp - 0x64], eax
mov al, byte [ebp - 0x6d8]
movups xmmword [ebp - 0x7c], xmm0
mov byte [ebp - 0x60], al
movq xmm0, qword [ebp - 0x6c4]
mov eax, dword [ebp - 0x6dc]
movq qword [ebp - 0x6c], xmm0
movups xmm0, xmmword [ebp - 0x6ec]
mov dword [ebp - 0x44], eax
mov al, byte [ebp - 0x6d8]
movups xmmword [ebp - 0x5c], xmm0
mov byte [ebp - 0x40], al
movq xmm0, qword [ebp - 0x6dc]
movq qword [ebp - 0x4c], xmm0
push 0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
push 0
cmovae eax, dword [ebp - 0x3c]
push 0
push eax
sub esp, 0x20
lea eax, [ebp - 0x118]
mov esi, esp
mov ecx, esi
mov dword [ebp - 0x6bc], esi
push eax
call fcn.10002780
mov eax, dword [ebp - 0x100]
lea ecx, [ebp - 0x7c]
mov dword [esi + 0x18], eax
mov al, byte [ebp - 0xfc]
push 0
mov byte [esi + 0x1c], al
lea eax, [ebp - 0x2a0]
push 4
push eax
call fcn.1007f410
mov byte [ebp - 4], 0xc
cmp byte [ebp - 0x204], 0
je 0x100725eb
cmp dword [ebp - 0x104], 0x10
lea eax, [ebp - 0x118]
push dword [ebp - 0x108]
cmovae eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x2a0]
cmp dword [ebp - 0x28c], 0x10
mov edx, dword [ebp - 0x290]
cmovae ecx, dword [ebp - 0x2a0]
push eax
call fcn.1001ff80
add esp, 8
test al, al
je 0x10072485
cmp dword [ebp - 0xe4], 0x10
lea eax, [ebp - 0xf8]
push dword [ebp - 0xe8]
cmovae eax, dword [ebp - 0xf8]
lea ecx, [ebp - 0x280]
cmp dword [ebp - 0x26c], 0x10
mov edx, dword [ebp - 0x270]
cmovae ecx, dword [ebp - 0x280]
push eax
call fcn.1001ff80
add esp, 8
test al, al
jne 0x100725e6
lea ecx, [ebp - 0x708]
call fcn.100feb80
mov dword [ebp - 0x7f4], 0
mov dword [ebp - 0x7dc], 0
mov dword [ebp - 0x7c4], 0
mov dword [ebp - 0x7ac], 0
mov dword [ebp - 0x794], 0
mov dword [ebp - 0x77c], 0
mov dword [ebp - 0x760], 0
mov dword [ebp - 0x7e4], 0
mov dword [ebp - 0x7e0], 0xf
mov byte [ebp - 0x7f4], 0
mov dword [ebp - 0x7cc], 0
mov dword [ebp - 0x7c8], 0xf
mov byte [ebp - 0x7dc], 0
mov dword [ebp - 0x7b4], 0
mov dword [ebp - 0x7b0], 0xf
mov byte [ebp - 0x7c4], 0
mov dword [ebp - 0x79c], 0
mov dword [ebp - 0x798], 0xf
mov byte [ebp - 0x7ac], 0
mov dword [ebp - 0x784], 0
mov dword [ebp - 0x780], 0xf
mov byte [ebp - 0x794], 0
mov dword [ebp - 0x76c], 0
mov dword [ebp - 0x768], 0xf
mov byte [ebp - 0x77c], 0
mov byte [ebp - 0x763], 0
mov dword [ebp - 0x750], 0
mov dword [ebp - 0x74c], 0xf
mov byte [ebp - 0x760], 0
mov byte [ebp - 0x730], 0
mov byte [ebp - 0x714], 0
lea ecx, [ebp - 0x7f4]
mov byte [ebp - 4], 0xe
push ecx
mov ecx, eax
call fcn.100ff2b0
lea ecx, [ebp - 0x7f4]
call fcn.10071e10
lea ecx, [ebp - 0x6ec]
mov byte [ebp - 4], 0xc
call fcn.10002400
lea ecx, [ebp - 0x704]
call fcn.10002400
mov byte [ebp - 0x6b5], 1
call fcn.10070520
cmp byte [ebp - 0x11c], 0
je 0x100725ff
lea ecx, [ebp - 0x200]
call fcn.10071e10
cmp byte [ebp - 0x204], 0
je 0x10072613
lea ecx, [ebp - 0x2a0]
call fcn.10069330
lea ecx, [ebp - 0x7c]
call fcn.1002e900
mov dword [ebp - 4], 7
call fcn.1006d9e0
lea ecx, [ebp - 0x118]
call fcn.10069330
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x100726c9
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100726bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100727a5
jmp 0x100726bf
push edx
push ecx
call fcn.101157ed
add esp, 8
cmp byte [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
je 0x100726ef
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100726fd
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100726fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10072719
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10072719
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x6b4]
call fcn.1000ac70
mov al, byte [ebp - 0x6b5]
jmp 0x10072789
push str.LoginAgent::LoginRedeem
mov edx, 0x10
lea ecx, [ebp - 0x7b8]
call fcn.1000aed0
add esp, 4
mov byte [ebp - 4], 2
cmp byte [eax + 0x48], 0
je 0x1007275a
mov edx, str.allready_in_login_exit_this_instance
mov ecx, eax
call fcn.10020800
lea ecx, [ebp - 0x7b8]
mov byte [ebp - 4], 1
call fcn.1000ad70
call fcn.10070130
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1007277c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x6b4]
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
call fcn.1011a6bf
int3