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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4970a8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4c3008]
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 - 0x74], ecx
mov esi, dword [ebp + 8]
mov edi, 7
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
test esi, esi
je 0x4021ae
mov ecx, esi
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 esi
lea ecx, [ebp - 0x28]
call fcn.00402ee0
mov edi, dword [ebp - 0x14]
mov ecx, esi
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 esi
lea ecx, [ebp - 0x6c]
call fcn.00402ee0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040cdc0
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.004954b4
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 edi, 8
jb 0x4022af
mov ecx, dword [ebp - 0x28]
lea edx, [edi*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4022a5
mov ecx, dword [ecx - 4]
add edx, 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 edx
push ecx
call fcn.004954b4
add esp, 8
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, 1
jmp 0x4026c7
push ecx
call fcn.00403260
mov ecx, eax
call fcn.004033e0
push 4
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x6c]
push str.DBJ1
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
call fcn.00402ee0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x6c]
push 0
push dword [ebp - 0x48]
push eax
call fcn.00403260
mov ecx, eax
call fcn.00403630
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x402356
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40234c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40234c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004954b4
add esp, 8
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
call fcn.00403260
mov ecx, eax
mov dword [ebp - 0x48], ecx
mov esi, dword [ecx]
test esi, esi
je 0x4023d1
cmp byte [esi + 4], 0
je 0x4023b0
mov eax, dword [esi]
mov dword [ebp - 0x70], eax
cmp byte [eax], 0
je 0x4023ac
call fcn.0041d360
push dword [ebp - 0x70]
mov ecx, eax
call fcn.0041d6e0
mov ecx, dword [ebp - 0x70]
push 0
call fcn.0041a750
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x48]
mov byte [eax], 0
mov byte [esi + 4], 0
mov esi, dword [ecx]
test esi, esi
je 0x4023cb
mov ecx, esi
call fcn.00407e90
push 0x38
push esi
call fcn.004954b4
mov ecx, dword [ebp - 0x48]
add esp, 8
mov dword [ecx], 0
mov esi, dword [ebp - 0x78]
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x5c], 0
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 dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402400
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x6c]
call fcn.00402ee0
mov byte [ebp - 4], 3
push str.6337169D_B8FD_4565_B6D0_1F6A5F52F8C7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 8], eax
test eax, eax
jne 0x40243f
mov byte [ebp - 0x51], 1
jmp 0x40253b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402537
mov esi, dword [ebp - 0x74]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x18
mov dword [esi + 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.00402ee0
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.0040ca40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.0040cc50
mov esi, eax
test esi, esi
je 0x402522
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402522
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x40250b
test eax, 0x20000000
je 0x40250b
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
push 2
push 0x4a
push esi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x402522
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040cd40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.0040cb30
mov esi, dword [ebp - 0x78]
mov byte [ebp - 0x51], 1
jmp 0x40253b
mov byte [ebp - 0x51], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x40257b
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402571
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402571
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004954b4
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 0x4025df
mov dword [ebp - 4], 0xffffffff
cmp edi, 8
jb 0x4025d4
mov ecx, dword [ebp - 0x28]
lea edx, [edi*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4025ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4025ca
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004954b4
add esp, 8
xor eax, eax
mov word [ebp - 0x28], ax
jmp 0x4026c7
mov dword [ebp - 0x5c], eax
mov edx, esi
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 0x402600
sub edx, ecx
lea ecx, [ebp - 0x6c]
sar edx, 1
push edx
push esi
call fcn.00402ee0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
push eax
call fcn.00402700
mov esi, eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x40266b
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402661
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402661
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004954b4
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 edi, 8
jb 0x4026bf
mov ecx, dword [ebp - 0x28]
lea edi, [edi*2 + 2]
mov eax, ecx
cmp edi, 0x1000
jb 0x4026b5
mov ecx, dword [ecx - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4026b5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push ecx
call fcn.004954b4
add esp, 8
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, esi
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.00495473
mov esp, ebp
pop ebp
ret 4