Function at 0x40d6bf
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d7c
call fcn.0040ef00
push ebx
xor ebx, ebx
cmp dword [0x432378], ebx
push esi
push edi
mov esi, ecx
je 0x40daf2
push str.CTmpExec___::Exec__
push 1
call fcn.00403a56
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
pop ecx
lea eax, [ebp - 0x157c]
push esi
push str._s_MapCtrlMutex
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x157c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x3cc4], eax
push esi
lea eax, [ebp - 0x157c]
push str._s_MapObj
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x157c]
mov edi, 0x33d0
push eax
mov eax, dword [esi + 0x3cc0]
add eax, edi
push eax
push ebx
push 0x8000004
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x3cc8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3cd0], eax
mov eax, dword [esi + 0x3cc0]
add eax, edi
push eax
push ebx
push ebx
push 0xf001f
push dword [esi + 0x3cc8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [esi + 0x3cd0]
mov dword [esi + 0x3ccc], eax
push str.CTmpExec__d_::Create_MapObj
push 1
call fcn.00403a56
add esp, 0xc
cmp dword [esi + 0x3cd0], ebx
jne 0x40da75
lea eax, [ebp - 0x26c]
push 0x208
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40df36
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x77c]
push eax
call fcn.0040e743
lea eax, [ebp - 0x77c]
push 0x5c
push eax
call fcn.0040fcf0
add esp, 0x10
mov word [eax], bx
lea eax, [ebp - 0x26c]
mov ecx, esi
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.0040d215
test eax, eax
je 0x40df36
push ebx
push ebx
push 3
push ebx
push 1
lea eax, [ebp - 0x26c]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40df36
mov ecx, esi
call fcn.0040df3d
lea eax, [ebp - 0x77c]
push eax
mov eax, dword [esi + 0x3cd4]
add eax, 4
push eax
call fcn.0040e743
mov eax, dword [esi + 0x3cd4]
push 0x2080
add eax, 0x310
push ebx
push eax
call fcn.0040e9b0
mov dword [ebp - 0xc], 0xfffff400
add esp, 0x14
sub dword [ebp - 0xc], esi
mov dword [ebp - 4], ebx
lea edi, [esi + 0xc00]
push edi
call fcn.0040e8db
test eax, eax
pop ecx
jbe 0x40d919
lea eax, [ebp - 0x77c]
push edi
push eax
lea eax, [ebp - 0xb84]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x474]
push 0x432374
push eax
call fcn.0040e743
add esp, 0x18
lea eax, [ebp - 0xb84]
mov ecx, esi
push eax
lea eax, [ebp - 0x474]
push eax
call fcn.0040d215
test eax, eax
je 0x40d992
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0xb84]
push eax
push dword [esi + 0x3cd0]
push str.CTmpExec__d_::Copy_DatFile_n__s__n__s_
push 1
call fcn.00403a56
mov ecx, dword [esi + 0x3cd4]
lea eax, [ebp - 0x474]
push eax
mov eax, dword [ebp - 0xc]
add eax, edi
lea eax, [eax + ecx + 0x310]
push eax
call fcn.0040e743
add esp, 0x1c
inc dword [ebp - 4]
add edi, 0x208
cmp dword [ebp - 4], 0x10
jb 0x40d87d
mov ecx, esi
call fcn.0040df72
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40d992
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
push esi
lea eax, [ebp - 0x97c]
push str._s_08x_EvtStart
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x97c]
push eax
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x40d99a
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
jmp 0x40df34
push dword [ebp - 8]
jmp 0x40dd6c
mov ecx, esi
call fcn.0040df3d
mov eax, dword [esi + 0x3cd4]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, esi
call fcn.0040df72
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x1d7c]
push 0x42da20
push eax
call edi
push 0x44
lea eax, [ebp - 0x64]
pop edi
push edi
push ebx
push eax
call fcn.0040e9b0
add esp, 0x18
mov dword [ebp - 0x64], edi
push dword [esi + 0x3cd0]
push str.CTmpExec__d_::Create_TmpExec
push 1
call fcn.00403a56
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
lea eax, [ebp - 0x1d7c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
call edi
cmp dword [ebp - 0x10], ebx
jne 0x40da2e
push dword [ebp - 4]
call edi
push dword [ebp - 0xc]
jmp 0x40de6c
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x1c]
call edi
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x40da4e
cmp eax, 0x80
jne 0x40da21
push dword [ebp - 4]
call edi
push dword [ebp - 0xc]
call edi
push dword [esi + 0x3cd0]
push str.CTmpExec__d_::End_OrgExec
push 1
call fcn.00403a56
add esp, 0xc
push 1
pop eax
jmp 0x40df38
mov ecx, esi
call fcn.0040df3d
mov ecx, dword [esi + 0x3cc0]
lea eax, [esi + 0x3cd8]
add ecx, edi
push ecx
push dword [esi + 0x3cd4]
push eax
call fcn.0040ea10
add esp, 0xc
mov ecx, esi
call fcn.0040df72
push dword [esi + 0x3cd8]
lea edi, [esi + 0x3cd8]
push dword [esi + 0x3cd0]
push str.CTmpExec__d_::Get_Proc__08x_
push 1
call fcn.00403a56
add esp, 0x10
lea eax, [ebp - 0x97c]
push dword [edi]
push esi
push str._s_08x_EvtStart
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x97c]
push eax
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
jmp 0x40df0e
push 0x42d960
push 1
call fcn.00403a56
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
lea eax, [esi + 0x800]
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xd7c]
push 0x42d950
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0xd7c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push dword [ebp - 0x10]
mov dword [esi + 0x3cc4], eax
lea eax, [ebp - 0xd7c]
push 0x42d944
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0xd7c]
mov edi, 0x33d0
push eax
mov eax, dword [esi + 0x3cc0]
add eax, edi
push eax
push ebx
push 0x8000004
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x3cc8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3cd0], eax
mov eax, dword [esi + 0x3cc0]
add eax, edi
push eax
push ebx
push ebx
push 0xf001f
push dword [esi + 0x3cc8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [esi + 0x3cd0]
mov dword [esi + 0x3ccc], eax
push 0x42d928
push 1
call fcn.00403a56
add esp, 0xc
cmp dword [esi + 0x3cd0], ebx
jne 0x40de94
lea eax, [ebp - 0x370]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40df36
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x678]
push eax
call fcn.0040e770
lea eax, [ebp - 0x678]
push 0x5c
push eax
call fcn.0040fd30
add esp, 0x10
mov byte [eax], bl
lea eax, [ebp - 0x370]
mov ecx, esi
push eax
lea eax, [ebp - 0x370]
push eax
call fcn.0040d3b1
test eax, eax
je 0x40df36
push ebx
push ebx
push 3
push ebx
push 1
lea eax, [ebp - 0x370]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40df36
mov ecx, esi
call fcn.0040df3d
lea eax, [ebp - 0x678]
push eax
mov eax, dword [esi + 0x3cd4]
add eax, 0x20c
push eax
call fcn.0040e770
mov eax, dword [esi + 0x3cd4]
push 0x1040
add eax, 0x2390
push ebx
push eax
call fcn.0040e9b0
mov dword [ebp - 8], 0xffffd380
add esp, 0x14
sub dword [ebp - 8], esi
mov dword [ebp - 4], ebx
lea edi, [esi + 0x2c80]
push edi
call fcn.0040e860
test eax, eax
pop ecx
jbe 0x40dd34
lea eax, [ebp - 0x678]
push edi
push eax
lea eax, [ebp - 0x880]
push 0x42d920
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x168]
push 0x431300
push eax
call fcn.0040e770
add esp, 0x18
lea eax, [ebp - 0x880]
mov ecx, esi
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.0040d3b1
test eax, eax
je 0x40dd69
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x880]
push eax
push dword [esi + 0x3cd0]
push 0x42d8f8
push 1
call fcn.00403a56
mov ecx, dword [esi + 0x3cd4]
lea eax, [ebp - 0x168]
push eax
mov eax, dword [ebp - 8]
add eax, edi
lea eax, [eax + ecx + 0x2390]
push eax
call fcn.0040e770
add esp, 0x1c
inc dword [ebp - 4]
add edi, 0x104
cmp dword [ebp - 4], 0x10
jb 0x40dc9c
mov ecx, esi
call fcn.0040df72
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x40dd77
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40df36
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x574]
push 0x42d8e8
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x574]
push eax
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40ddbd
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
jmp 0x40df34
mov ecx, esi
call fcn.0040df3d
mov eax, dword [esi + 0x3cd4]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, esi
call fcn.0040df72
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x117c]
push 0x42d8e0
push eax
call edi
push 0x44
lea eax, [ebp - 0x64]
pop edi
push edi
push ebx
push eax
call fcn.0040e9b0
add esp, 0x18
mov dword [ebp - 0x64], edi
push dword [esi + 0x3cd0]
push 0x42d8c0
push 1
call fcn.00403a56
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
lea eax, [ebp - 0x117c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
call edi
cmp dword [ebp - 0x10], ebx
je 0x40de64
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x1c]
call edi
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x40de73
cmp eax, 0x80
je 0x40de73
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call edi
jmp 0x40df36
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call edi
push dword [esi + 0x3cd0]
push 0x42d8a4
push 1
call fcn.00403a56
jmp 0x40da6a
mov ecx, esi
call fcn.0040df3d
mov ecx, dword [esi + 0x3cc0]
lea eax, [esi + 0x3cd8]
add ecx, edi
push ecx
push dword [esi + 0x3cd4]
push eax
call fcn.0040ea10
add esp, 0xc
mov ecx, esi
call fcn.0040df72
push dword [esi + 0x3cd8]
lea edi, [esi + 0x3cd8]
push dword [esi + 0x3cd0]
push 0x42d884
push 1
call fcn.00403a56
add esp, 0x10
lea eax, [ebp - 0x574]
push dword [edi]
push dword [ebp - 0x10]
push 0x42d8e8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x574]
push eax
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
cmp esi, ebx
je 0x40df36
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40df36
push dword [edi]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret