Function at 0x40c620
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41c828
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x425018]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x425018]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push 0x18
mov dword [esp + 0x18], 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 0x40cb76
mov dword [eax], eax
mov dword [esp + 0x1c], eax
mov dword [eax + 4], eax
mov dword [esp + 0x100], edi
cmp byte [esi + 0xc], 0
je 0x40c6d7
lea ebx, [esp + 0x1c]
call fcn.0040ce00
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 + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.00419b16
mov esp, ebp
pop ebp
ret
test byte [0x425c0c], 1
jne 0x40c701
or dword [0x425c0c], 1
mov byte [esp + 0x100], 1
call fcn.0040d580
push 0x41cf70
call fcn.00419c3d
add esp, 4
mov ecx, dword [0x425c10]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push ecx
call ebx
mov edx, dword [0x425c10]
mov ecx, 0xd
mov esi, 0x425c50
lea edi, [esp + 0x3c]
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 + 0xbc], edi
mov dword [esp + 0xb8], 0
mov word [esp + 0xa8], ax
mov byte [esp + 0x100], 2
test byte [0x425c0c], 1
jne 0x40c78c
or dword [0x425c0c], 1
mov byte [esp + 0x100], 3
call fcn.0040d580
push 0x41cf70
call fcn.00419c3d
add esp, 4
mov byte [esp + 0x100], 2
cmp dword [0x425c28], 0
je 0x40c8f1
mov ecx, dword [0x425c10]
push 0xffffffffffffffff
push ecx
call ebx
push 0
push 0x425c18
or eax, 0xffffffff
lea ecx, [esp + 0xb0]
call fcn.00401d50
mov edx, dword [0x425c10]
push edx
call esi
xor eax, eax
mov word [esp + 0xc4], ax
push 0x13
mov eax, str.SpoolerApplet.dalp
lea esi, [esp + 0xc8]
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], 0
call fcn.00404220
mov ecx, esi
lea eax, [esp + 0xa8]
lea ebx, [esp + 0x8c]
mov byte [esp + 0x100], 4
call fcn.00404cf0
mov byte [esp + 0x100], 6
cmp dword [esp + 0xd8], 8
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x40c834
mov ecx, dword [esp + 0xc4]
push ecx
call esi
add esp, 4
xor edx, edx
lea ebx, [esp + 0x8c]
lea eax, [esp + 0x70]
mov dword [esp + 0xd8], 7
mov dword [esp + 0xd4], 0
mov word [esp + 0xc4], dx
call fcn.004018b0
mov byte [esp + 0x100], 7
mov eax, dword [esp + 0x70]
mov edi, 0x10
cmp dword [esp + 0x84], edi
jae 0x40c882
lea eax, [esp + 0x70]
push 4
push eax
call dword [sym.imp.MSVCR100.dll__access_s]
add esp, 8
test eax, eax
je 0x40c90a
push 0xc0000003
push 1
call fcn.0040c2a0
add esp, 8
mov dword [esp + 0x10], 0x1014
cmp dword [esp + 0x84], edi
jb 0x40c8bc
mov eax, dword [esp + 0x70]
push eax
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x80], eax
mov byte [esp + 0x70], al
lea esi, [esp + 0x8c]
mov dword [esp + 0x84], 0xf
call fcn.00401a90
lea esi, [esp + 0xa8]
call fcn.00401a90
jmp 0x40cb48
lea esi, [esp + 0xa8]
mov dword [esp + 0x10], 0x601
call fcn.00401a90
jmp 0x40cb48
cmp dword [esp + 0xa0], 8
mov eax, dword [esp + 0x8c]
jae 0x40c922
lea eax, [esp + 0x8c]
xor ebx, ebx
push ebx
push eax
push str.BA8D164350B649CC861D2C01BED14BE8
call fcn.0040e4f0
add esp, 0xc
cmp eax, ebx
je 0x40c971
push 0xc0000004
push 1
call fcn.0040c2a0
add esp, 8
mov dword [esp + 0x10], 0x1015
cmp dword [esp + 0x84], edi
jb 0x40c961
mov ecx, dword [esp + 0x70]
push ecx
call esi
add esp, 4
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
jmp 0x40c8c9
test byte [0x425ce8], 1
jne 0x40c9a3
or dword [0x425ce8], 1
mov byte [esp + 0x100], 8
call fcn.00410760
push 0x41d060
call fcn.00419c3d
add esp, 4
mov byte [esp + 0x100], 7
lea edx, [esp + 0xe0]
push edx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
cmp eax, ebx
je 0x40c9e7
cmp eax, 0x720
je 0x40c9e7
mov dword [esp + 0x10], 0x601
cmp dword [esp + 0x84], edi
jb 0x40c961
mov eax, dword [esp + 0x70]
push eax
call esi
add esp, 4
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
jmp 0x40c8c9
mov edx, dword [esp + 0xe0]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0xe8]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0xfc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x100]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x80]
push esi
push str.BA8D164350B649CC861D2C01BED14BE8
push edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [eax + 0xc], ecx
call dword [esp + 0x80]
add esp, 0x20
test eax, eax
je 0x40ca82
push 0xc0000004
push 1
call fcn.0040c2a0
add esp, 8
mov dword [esp + 0x10], 0x1015
cmp dword [esp + 0x84], edi
jb 0x40c961
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
jmp 0x40c8c9
push ebx
push ebx
push ebx
push 0x40c2e0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x40cacc
mov dword [esp + 0x10], 0x601
cmp dword [esp + 0x84], edi
jb 0x40c961
mov ecx, dword [esp + 0x70]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
jmp 0x40c8c9
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [esp + 0x84], edi
jb 0x40cae5
mov edx, dword [esp + 0x70]
push edx
call esi
add esp, 4
mov edi, 8
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
cmp dword [esp + 0xa0], edi
jb 0x40cb16
mov eax, dword [esp + 0x8c]
push eax
call esi
add esp, 4
xor ecx, ecx
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], cx
cmp dword [esp + 0xbc], edi
jb 0x40cb48
mov edx, dword [esp + 0xa8]
push edx
call esi
add esp, 4
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test esi, esi
sete al
lea ebx, [esp + 0x1c]
mov byte [ecx + 0xc], al
call fcn.0040ce00
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
jmp 0x40c6b3
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x420464
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3