Function at 0x402130
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4959b0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4c2008]
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 - 0x70], ecx
mov edi, dword [ebp + 8]
mov esi, 7
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
test edi, edi
je 0x4021ae
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402192
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00403020
mov esi, dword [ebp - 0x14]
mov ecx, edi
mov dword [ebp - 0x5c], 0
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4021e3
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x6c]
call fcn.00403020
mov byte [ebp - 4], 1
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040cfd0
test al, al
sete al
mov byte [ebp - 0x51], al
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x402257
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40224a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40224a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00493dc4
mov al, byte [ebp - 0x51]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], cx
test al, al
je 0x4022bf
mov dword [ebp - 4], 0xffffffff
cmp esi, 8
jb 0x4022af
mov ecx, dword [ebp - 0x28]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x4022a5
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4022a5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
push ecx
call fcn.00493dc4
add esp, 8
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, 1
jmp 0x4025b7
push dword [ebp - 0x48]
call fcn.00402bd0
mov ecx, edi
mov dword [ebp - 0x5c], 0
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4022f0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x6c]
call fcn.00403020
mov byte [ebp - 4], 2
push str.6337169D_B8FD_4565_B6D0_1F6A5F52F8C7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 8], eax
test eax, eax
jne 0x40232f
mov byte [ebp - 0x51], 1
jmp 0x40242b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402427
mov edi, dword [ebp - 0x70]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x18
mov dword [edi + 8], 0
mov ecx, esp
mov dword [ebp - 0x48], esp
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x44], xmm0
xor eax, eax
movq qword [ebp - 0x34], xmm0
push 0x24
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.3A318C89_41F4_48D5_AC9B_33E385DC411C
mov word [ecx], ax
call fcn.00403020
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.0040cc50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.0040ce60
mov edi, eax
test edi, edi
je 0x402412
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402412
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x4023fb
test eax, 0x20000000
je 0x4023fb
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
push 2
push 0x4a
push edi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x402412
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040cf50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.0040cd40
mov edi, dword [ebp - 0x74]
mov byte [ebp - 0x51], 1
jmp 0x40242b
mov byte [ebp - 0x51], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x40246b
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402461
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402461
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00493dc4
add esp, 8
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
cmp byte [ebp - 0x51], al
je 0x4024cf
mov dword [ebp - 4], 0xffffffff
cmp esi, 8
jb 0x4024c4
mov ecx, dword [ebp - 0x28]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x4024ba
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4024ba
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
push ecx
call fcn.00493dc4
add esp, 8
xor eax, eax
mov word [ebp - 0x28], ax
jmp 0x4025b7
mov dword [ebp - 0x5c], eax
mov edx, edi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
lea ecx, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4024f0
sub edx, ecx
lea ecx, [ebp - 0x6c]
sar edx, 1
push edx
push edi
call fcn.00403020
mov byte [ebp - 4], 5
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
push eax
call fcn.004025f0
mov edi, eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x40255b
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402551
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402551
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00493dc4
add esp, 8
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov dword [ebp - 4], 0xffffffff
cmp esi, 8
jb 0x4025af
mov ecx, dword [ebp - 0x28]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x4025a5
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4025a5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
push ecx
call fcn.00493dc4
add esp, 8
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
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.00493d83
mov esp, ebp
pop ebp
ret 4