Function at 0x40cb40
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41bcd6
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x423018]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x423018]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push 0x18
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, edi
je 0x40d10f
mov dword [eax], eax
mov dword [esp + 0x1c], eax
mov dword [eax + 4], eax
mov dword [esp + 0x110], edi
cmp byte [esi + 0xc], 0
je 0x40cbf7
lea ebx, [esp + 0x1c]
call fcn.0040d3a0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [edi + 1]
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.00419346
mov esp, ebp
pop ebp
ret
test byte [0x423c0c], 1
jne 0x40cc21
or dword [0x423c0c], 1
mov byte [esp + 0x110], 1
call fcn.0040db20
push 0x41c620
call fcn.0041946d
add esp, 4
mov ecx, dword [0x423c10]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push ecx
call ebx
mov edx, dword [0x423c10]
mov ecx, 0xd
mov esi, 0x423c50
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edx
call esi
mov edi, 7
xor eax, eax
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], 0
mov word [esp + 0x9c], ax
mov byte [esp + 0x110], 2
test byte [0x423c0c], 1
jne 0x40ccac
or dword [0x423c0c], 1
mov byte [esp + 0x110], 3
call fcn.0040db20
push 0x41c620
call fcn.0041946d
add esp, 4
mov byte [esp + 0x110], 2
cmp dword [0x423c28], 0
je 0x40cdf5
mov ecx, dword [0x423c10]
push 0xffffffffffffffff
push ecx
call ebx
push 0
push 0x423c18
or eax, 0xffffffff
lea ecx, [esp + 0xa4]
call fcn.00401cf0
mov edx, dword [0x423c10]
push edx
call esi
xor eax, eax
mov word [esp + 0xd4], ax
push 0x13
mov eax, str.SpoolerApplet.dalp
lea esi, [esp + 0xd8]
mov dword [esp + 0xec], edi
mov dword [esp + 0xe8], 0
call fcn.004042c0
mov ecx, esi
lea eax, [esp + 0x9c]
lea ebx, [esp + 0xb8]
mov byte [esp + 0x110], 4
call fcn.00404d90
mov byte [esp + 0x110], 6
cmp dword [esp + 0xe8], 8
jb 0x40cd52
mov ecx, dword [esp + 0xd4]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
lea ebx, [esp + 0xb8]
lea eax, [esp + 0x80]
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], 0
mov word [esp + 0xd4], dx
call fcn.004018b0
mov byte [esp + 0x110], 7
cmp dword [esp + 0x94], 0x10
mov eax, dword [esp + 0x80]
jae 0x40cda5
lea eax, [esp + 0x80]
push 4
push eax
call dword [sym.imp.MSVCR100.dll__access_s]
add esp, 8
test eax, eax
je 0x40ce0e
push 0xc0000003
push 1
call fcn.0040c740
mov dword [esp + 0x18], 0x1014
add esp, 8
lea esi, [esp + 0x80]
call fcn.004019d0
lea esi, [esp + 0xb8]
call fcn.00401a30
lea esi, [esp + 0x9c]
call fcn.00401a30
jmp 0x40d0e1
lea esi, [esp + 0x9c]
mov dword [esp + 0x10], 0x601
call fcn.00401a30
jmp 0x40d0e1
test byte [0x423cb0], 1
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
jne 0x40cebc
or dword [0x423cb0], 1
mov byte [esp + 0x110], 8
xor ebx, ebx
push 0x34
mov dword [0x423cbc], ebx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x40ce92
mov dword [0x423cb8], eax
mov dword [eax], eax
mov eax, dword [0x423cb8]
mov dword [eax + 4], eax
mov eax, dword [0x423cb8]
mov dword [eax + 8], eax
mov eax, dword [0x423cb8]
push ebx
mov byte [eax + 0x30], 1
mov ecx, dword [0x423cb8]
push ebx
push ebx
mov byte [ecx + 0x31], 1
call esi
push 0x41c690
mov dword [0x423ccc], eax
call fcn.0041946d
add esp, 4
mov byte [esp + 0x110], 7
jmp 0x40cebe
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x41f284
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
xor ebx, ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xbc]
mov ecx, 0x423cb4
call fcn.00403920
test eax, eax
je 0x40cef1
push 0xc0000004
push 1
call fcn.0040c740
mov dword [esp + 0x18], 0x1015
jmp 0x40cdc9
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
mov eax, dword [eax + 8]
mov edi, dword [esp + 0x7c]
push ecx
push eax
push str.BA8D164350B649CC861D2C01BED14BE8
push edi
call dword [esp + 0x74]
add esp, 0x10
cmp eax, ebx
je 0x40cf1e
cmp eax, 0x108
jne 0x40ced8
test byte [0x423ce4], 1
jne 0x40cf9d
or dword [0x423ce4], 1
mov byte [esp + 0x110], 9
push 0x8c
mov dword [0x423cd8], ebx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x40cfc3
mov dword [0x423cd4], eax
mov dword [eax], eax
mov eax, dword [0x423cd4]
mov dword [eax + 4], eax
mov eax, dword [0x423cd4]
mov dword [eax + 8], eax
mov eax, dword [0x423cd4]
push ebx
mov byte [eax + 0x88], 1
mov ecx, dword [0x423cd4]
push ebx
push ebx
mov byte [ecx + 0x89], 1
call esi
push 0x41c710
mov dword [0x423ce0], eax
call fcn.0041946d
add esp, 4
mov byte [esp + 0x110], 7
lea ecx, [esp + 0xf0]
push ecx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
cmp eax, ebx
je 0x40cfed
cmp eax, 0x720
je 0x40cfed
mov dword [esp + 0x10], 0x601
jmp 0x40cdcc
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x41f284
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
mov ecx, dword [esp + 0xf0]
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0xf8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x10c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x110]
push esi
push str.BA8D164350B649CC861D2C01BED14BE8
mov dword [eax + 8], ecx
push edi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [eax + 0xc], edx
call dword [esp + 0x90]
add esp, 0x20
test eax, eax
jne 0x40ced8
push ebx
push ebx
push ebx
push 0x40c780
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x40cfb6
cmp dword [esp + 0x94], 0x10
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x40d07b
mov eax, dword [esp + 0x80]
push eax
call esi
add esp, 4
mov edi, 8
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
cmp dword [esp + 0xcc], edi
jb 0x40d0af
mov ecx, dword [esp + 0xb8]
push ecx
call esi
add esp, 4
xor edx, edx
mov dword [esp + 0xcc], 7
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], dx
cmp dword [esp + 0xb0], edi
jb 0x40d0e1
mov eax, dword [esp + 0x9c]
push eax
call esi
add esp, 4
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
test esi, esi
sete cl
lea ebx, [esp + 0x1c]
mov byte [edx + 0xc], cl
call fcn.0040d3a0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
jmp 0x40cbd3
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x41f284
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x48], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3