Function at 0x101b5bee
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x101a0148
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x101af578], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov dword [0x101af584], ecx
cmp dword [0x101af464], 0
je 0x101b5c2c
jmp 0x101b656e
mov edx, dword [0x101af464]
add edx, 1
mov dword [0x101af464], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x101b1818]
add ecx, eax
mov dword [0x101b1818], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [0x101b1818]
xor edx, eax
mov dword [0x101b1818], edx
mov eax, dword [0x101b1818]
or eax, 0x200001
mov dword [0x101b1818], eax
mov ecx, dword [0x101b1818]
and ecx, 0x3fffffff
mov dword [0x101b1818], ecx
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0x64
jge 0x101b5cb0
mov edx, dword [ebp - 4]
mov dword [edx*4 + 0x101b1820], 0
mov eax, dword [ebp - 4]
push eax
call fcn.101b7116
add esp, 4
mov dword [ebp - 4], eax
jmp 0x101b5c8b
push 0x101b1800
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x101a2e88
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x101a2e98
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x101a2ea8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x101a2eb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x101a2ec0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x101a2dec]
mov dx, word [ecx]
mov word [0x101afb40], dx
mov eax, dword [0x101a2dec]
mov cx, word [eax + 2]
mov word [0x101afb42], cx
mov edx, dword [0x101a2dec]
mov eax, dword [edx + 4]
mov dword [0x101afb38], eax
mov ecx, dword [0x101a2dec]
add ecx, 8
mov dword [0x101a2dec], ecx
xor edx, edx
mov dx, word [0x101afb40]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0x5910
jg 0x101b5e3a
cmp dword [ebp - 0xc], 0x5910
je 0x101b624e
cmp dword [ebp - 0xc], 0x1992
jg 0x101b5dd9
cmp dword [ebp - 0xc], 0x1992
je 0x101b60b7
cmp dword [ebp - 0xc], 0x704
jg 0x101b5dad
cmp dword [ebp - 0xc], 0x704
je 0x101b612b
cmp dword [ebp - 0xc], 0xe4
je 0x101b64b6
cmp dword [ebp - 0xc], 0x342
je 0x101b605f
cmp dword [ebp - 0xc], 0x611
je 0x101b62fa
jmp 0x101b6569
cmp dword [ebp - 0xc], 0x96f
je 0x101b650f
cmp dword [ebp - 0xc], 0x1092
je 0x101b5f1f
cmp dword [ebp - 0xc], 0x1109
je 0x101b63ab
jmp 0x101b6569
cmp dword [ebp - 0xc], 0x3345
jg 0x101b5e1b
cmp dword [ebp - 0xc], 0x3345
je 0x101b5f79
cmp dword [ebp - 0xc], 0x1a44
je 0x101b636f
cmp dword [ebp - 0xc], 0x2245
je 0x101b625f
cmp dword [ebp - 0xc], 0x22b7
je 0x101b5f4c
jmp 0x101b6569
cmp dword [ebp - 0xc], 0x3dc8
je 0x101b6160
cmp dword [ebp - 0xc], 0x5211
je 0x101b60ea
jmp 0x101b6569
cmp dword [ebp - 0xc], 0x9b73
jg 0x101b5ebe
cmp dword [ebp - 0xc], 0x9b73
je 0x101b6466
cmp dword [ebp - 0xc], 0x7123
jg 0x101b5e92
cmp dword [ebp - 0xc], 0x7123
je 0x101b6288
cmp dword [ebp - 0xc], 0x654d
je 0x101b5fa6
cmp dword [ebp - 0xc], 0x65ab
je 0x101b6196
cmp dword [ebp - 0xc], 0x698a
je 0x101b610d
jmp 0x101b6569
cmp dword [ebp - 0xc], 0x74bb
je 0x101b5fd3
cmp dword [ebp - 0xc], 0x8109
je 0x101b61e4
cmp dword [ebp - 0xc], 0x9104
je 0x101b6000
jmp 0x101b6569
cmp dword [ebp - 0xc], 0xbed7
jg 0x101b5f00
cmp dword [ebp - 0xc], 0xbed7
je 0x101b6232
cmp dword [ebp - 0xc], 0xaa61
je 0x101b6420
cmp dword [ebp - 0xc], 0xb323
je 0x101b63e1
cmp dword [ebp - 0xc], 0xba51
je 0x101b638f
jmp 0x101b6569
cmp dword [ebp - 0xc], 0xcd03
je 0x101b607b
cmp dword [ebp - 0xc], 0xfb52
je 0x101b602e
jmp 0x101b6569
mov ax, word [0x101afb42]
push eax
mov ecx, dword [0x101afb38]
push ecx
call fcn.101b5adc
add esp, 8
mov edx, dword [0x101a2de8]
mov ecx, dword [edx]
add ecx, eax
mov edx, dword [0x101a2de8]
mov dword [edx], ecx
jmp 0x101b6569
mov ax, word [0x101afb42]
push eax
mov ecx, dword [0x101afb38]
push ecx
call fcn.101b5adc
add esp, 8
mov edx, dword [0x101a2de8]
mov ecx, dword [edx]
sub ecx, eax
mov edx, dword [0x101a2de8]
mov dword [edx], ecx
jmp 0x101b6569
mov ax, word [0x101afb42]
push eax
mov ecx, dword [0x101afb38]
push ecx
call fcn.101b5adc
add esp, 8
mov edx, dword [0x101a2de8]
mov ecx, dword [edx]
and ecx, eax
mov edx, dword [0x101a2de8]
mov dword [edx], ecx
jmp 0x101b6569
mov ax, word [0x101afb42]
push eax
mov ecx, dword [0x101afb38]
push ecx
call fcn.101b5adc
add esp, 8
mov edx, dword [0x101a2de8]
mov ecx, dword [edx]
or ecx, eax
mov edx, dword [0x101a2de8]
mov dword [edx], ecx
jmp 0x101b6569
mov ax, word [0x101afb42]
push eax
mov ecx, dword [0x101afb38]
push ecx
call fcn.101b5adc
add esp, 8
mov edx, dword [0x101a2de8]
mov ecx, dword [edx]
xor ecx, eax
mov edx, dword [0x101a2de8]
mov dword [edx], ecx
jmp 0x101b6569
mov ax, word [0x101afb42]
push eax
mov ecx, dword [0x101afb38]
push ecx
call fcn.101b5adc
add esp, 8
mov edx, dword [0x101a2de8]
mov ecx, dword [edx]
imul ecx, eax
mov edx, dword [0x101a2de8]
mov dword [edx], ecx
jmp 0x101b6569
mov ax, word [0x101afb42]
push eax
mov ecx, dword [0x101afb38]
push ecx
call fcn.101b5adc
add esp, 8
mov ecx, eax
mov edx, dword [0x101a2de8]
mov eax, dword [edx]
xor edx, edx
div ecx
mov ecx, dword [0x101a2de8]
mov dword [ecx], eax
jmp 0x101b6569
xor edx, edx
mov dx, word [0x101afb42]
mov eax, dword [0x101a2de8]
mov ecx, dword [0x101afb38]
mov dword [eax + edx*4], ecx
jmp 0x101b6569
mov dx, word [0x101afb42]
push edx
mov eax, dword [0x101afb38]
push eax
call fcn.101b5adc
add esp, 8
mov dword [0x101afb38], eax
mov ecx, dword [0x101a2de8]
sub ecx, 4
mov dword [0x101a2de8], ecx
mov edx, dword [0x101a2de8]
mov eax, dword [0x101afb38]
mov dword [edx], eax
jmp 0x101b6569
mov ecx, dword [0x101a2de8]
mov edx, dword [ecx]
push edx
mov ax, word [0x101afb42]
push eax
mov ecx, dword [0x101afb38]
push ecx
call fcn.101b5a6c
add esp, 0xc
mov edx, dword [0x101a2de8]
add edx, 4
mov dword [0x101a2de8], edx
jmp 0x101b6569
mov eax, dword [0x101a2de8]
mov ecx, dword [eax]
push ecx
mov dx, word [0x101afb42]
push edx
mov eax, dword [0x101afb38]
push eax
call fcn.101b5a6c
add esp, 0xc
jmp 0x101b6569
push 0
mov cx, word [0x101afb42]
push ecx
mov edx, dword [0x101afb38]
push edx
call fcn.101b5a6c
add esp, 0xc
jmp 0x101b6569
mov ax, word [0x101afb42]
push eax
mov ecx, dword [0x101afb38]
push ecx
call fcn.101b5adc
add esp, 8
add eax, 1
push eax
mov dx, word [0x101afb42]
push edx
mov eax, dword [0x101afb38]
push eax
call fcn.101b5a6c
add esp, 0xc
jmp 0x101b6569
mov cx, word [0x101afb42]
push ecx
mov edx, dword [0x101afb38]
push edx
call fcn.101b5adc
add esp, 8
sub eax, 1
push eax
mov ax, word [0x101afb42]
push eax
mov ecx, dword [0x101afb38]
push ecx
call fcn.101b5a6c
add esp, 0xc
jmp 0x101b6569
xor edx, edx
mov dx, word [0x101afb42]
mov eax, dword [0x101a2de8]
mov ecx, dword [eax]
mov eax, dword [0x101a2de8]
add eax, 4
mov dword [0x101a2de8], eax
cmp ecx, edx
je 0x101b61df
mov ecx, dword [0x101a2de8]
sub ecx, 4
mov dword [0x101a2de8], ecx
mov edx, dword [0x101a2de8]
mov eax, dword [0x101a2dec]
mov dword [edx], eax
mov ecx, dword [0x101afb38]
mov dword [0x101a2dec], ecx
jmp 0x101b6569
xor edx, edx
mov dx, word [0x101afb42]
mov eax, dword [0x101a2de8]
mov ecx, dword [eax]
mov eax, dword [0x101a2de8]
add eax, 4
mov dword [0x101a2de8], eax
cmp ecx, edx
jne 0x101b622d
mov ecx, dword [0x101a2de8]
sub ecx, 4
mov dword [0x101a2de8], ecx
mov edx, dword [0x101a2de8]
mov eax, dword [0x101a2dec]
mov dword [edx], eax
mov ecx, dword [0x101afb38]
mov dword [0x101a2dec], ecx
jmp 0x101b6569
mov edx, dword [0x101a2de8]
sub edx, 4
mov dword [0x101a2de8], edx
mov eax, dword [0x101a2de8]
mov ecx, dword [0x101a2dec]
mov dword [eax], ecx
mov edx, dword [0x101afb38]
mov dword [0x101a2dec], edx
jmp 0x101b6569
mov eax, dword [0x101a2de8]
mov ecx, dword [eax]
mov dword [0x101a2dec], ecx
xor edx, edx
mov dx, word [0x101afb42]
mov eax, dword [0x101a2de8]
lea ecx, [eax + edx*4]
mov dword [0x101a2de8], ecx
jmp 0x101b6569
xor edx, edx
mov dx, word [0x101afb42]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x68
je 0x101b62a5
cmp dword [ebp - 0x10], 0x28e
je 0x101b62bc
jmp 0x101b62d1
mov eax, dword [0x101a2de8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [0x101a2de8]
mov dword [edx], ecx
jmp 0x101b62d1
mov eax, dword [0x101a2de8]
mov ecx, dword [eax]
and ecx, 0xffff
mov edx, dword [0x101a2de8]
mov dword [edx], ecx
mov eax, dword [0x101a2de8]
mov ecx, dword [eax]
mov edx, dword [0x101a2de8]
add edx, 4
mov dword [0x101a2de8], edx
test ecx, ecx
jne 0x101b62f5
mov eax, dword [0x101afb38]
mov dword [0x101a2dec], eax
jmp 0x101b6569
xor ecx, ecx
mov cx, word [0x101afb42]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0x68
je 0x101b6317
cmp dword [ebp - 0x14], 0x28e
je 0x101b632e
jmp 0x101b6343
mov edx, dword [0x101a2de8]
mov eax, dword [edx]
and eax, 0xff
mov ecx, dword [0x101a2de8]
mov dword [ecx], eax
jmp 0x101b6343
mov edx, dword [0x101a2de8]
mov eax, dword [edx]
and eax, 0xffff
mov ecx, dword [0x101a2de8]
mov dword [ecx], eax
mov edx, dword [0x101a2de8]
mov eax, dword [edx]
mov ecx, dword [0x101a2de8]
add ecx, 4
mov dword [0x101a2de8], ecx
test eax, eax
je 0x101b636a
mov edx, dword [0x101afb38]
mov dword [0x101a2dec], edx
jmp 0x101b6569
mov eax, dword [0x101a2de8]
sub eax, 4
mov dword [0x101a2de8], eax
call dword [0x101afb38]
mov ecx, dword [0x101a2de8]
mov dword [ecx], eax
jmp 0x101b6569
mov edx, dword [0x101a2de8]
mov eax, dword [edx]
push eax
call dword [0x101afb38]
mov ecx, dword [0x101a2de8]
mov dword [ecx], eax
jmp 0x101b6569
mov edx, dword [0x101a2de8]
mov eax, dword [edx]
push eax
mov ecx, dword [0x101a2de8]
mov edx, dword [ecx + 4]
push edx
call dword [0x101afb38]
mov ecx, dword [0x101a2de8]
mov dword [ecx + 4], eax
mov edx, dword [0x101a2de8]
add edx, 4
mov dword [0x101a2de8], edx
jmp 0x101b6569
mov eax, dword [0x101a2de8]
mov ecx, dword [eax]
push ecx
mov edx, dword [0x101a2de8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [0x101a2de8]
mov edx, dword [ecx + 8]
push edx
call dword [0x101afb38]
mov ecx, dword [0x101a2de8]
mov dword [ecx + 8], eax
mov edx, dword [0x101a2de8]
add edx, 8
mov dword [0x101a2de8], edx
jmp 0x101b6569
mov eax, dword [0x101a2de8]
mov ecx, dword [eax]
push ecx
mov edx, dword [0x101a2de8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [0x101a2de8]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [0x101a2de8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [0x101afb38]
mov edx, dword [0x101a2de8]
mov dword [edx + 0xc], eax
mov eax, dword [0x101a2de8]
add eax, 0xc
mov dword [0x101a2de8], eax
jmp 0x101b6569
mov ecx, dword [0x101a2de8]
mov edx, dword [ecx]
push edx
mov eax, dword [0x101a2de8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [0x101a2de8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [0x101a2de8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [0x101a2de8]
mov ecx, dword [eax + 0x10]
push ecx
call dword [0x101afb38]
mov edx, dword [0x101a2de8]
mov dword [edx + 0x10], eax
mov eax, dword [0x101a2de8]
add eax, 0x10
mov dword [0x101a2de8], eax
jmp 0x101b6569
mov ecx, dword [0x101a2de8]
mov edx, dword [ecx]
push edx
mov eax, dword [0x101a2de8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [0x101a2de8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [0x101a2de8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [0x101a2de8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [0x101a2de8]
mov eax, dword [edx + 0x14]
push eax
call dword [0x101afb38]
mov ecx, dword [0x101a2de8]
mov dword [ecx + 0x14], eax
mov edx, dword [0x101a2de8]
add edx, 0x14
mov dword [0x101a2de8], edx
jmp 0x101b6569
xor eax, eax
mov ax, word [0x101afb42]
mov dword [0x101af54c], eax
mov ecx, dword [0x101af54c]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0xb
ja case.default.0x101b6536
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dl, byte [eax + 0x101b66d3]
jmp dword [edx*4 + 0x101b66c3]
jmp 0x101b656e
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov dword [0x101af54c], 2
mov cx, word [0x1019f004]
and cx, 0xfffe
mov word [0x1019f004], cx
jmp 0x101b6677
jmp 0x101b5cf2
mov edx, dword [0x101af578]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.101b8341
cmp dword [0x101af58c], 0
jne 0x101b6663
cmp dword [0x101af464], 1
jbe 0x101b6663
push 0x101af6ac
call fcn.101b8df0
mov word [ebp - 8], ax
mov eax, dword [ebp - 8]
and eax, 0xffff
test eax, eax
je 0x101b65c1
mov eax, dword [ebp - 8]
and eax, 0xffff
jmp 0x101b66bd
mov cx, word [0x1019ffb6]
push ecx
mov dx, word [0x1019ffb4]
push edx
push 0x101af6ac
call fcn.101b9950
mov word [ebp - 8], ax
mov eax, dword [ebp - 8]
and eax, 0xffff
test eax, eax
je 0x101b65f8
mov eax, dword [ebp - 8]
and eax, 0xffff
jmp 0x101b66bd
push 0x101af598
push 0x101af6ac
call fcn.101b8e70
mov word [ebp - 8], ax
mov ecx, dword [ebp - 8]
and ecx, 0xffff
test ecx, ecx
je 0x101b6625
mov eax, dword [ebp - 8]
and eax, 0xffff
jmp 0x101b66bd
mov dx, word [0x1019f008]
push edx
push 0x101af6ac
call fcn.101b9000
mov word [ebp - 8], ax
cmp dword [0x1019ffbc], 0
je 0x101b6659
mov ax, word [0x1019ffb8]
push eax
push 0x101af6ac
call fcn.101b9750
mov word [ebp - 8], ax
mov eax, dword [ebp - 8]
and eax, 0xffff
jmp 0x101b66bd
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x101a20c4]
jmp 0x101b66bd
push 0x2010
call fcn.101b50a1
push eax
call fcn.101b78db
add esp, 8
push 0
push 0
push 0x101af6ac
call fcn.101b97d0
mov word [0x101af590], ax
xor ecx, ecx
mov cx, word [0x1019f004]
and ecx, 1
test ecx, ecx
jne 0x101b66bb
mov edx, dword [0x101af54c]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc