Function at 0x40c210
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41a381
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x421018]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x421018]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push 0x18
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, edi
je 0x40c629
mov dword [eax], eax
mov dword [esp + 0x20], eax
mov dword [eax + 4], eax
mov dword [esp + 0xe8], edi
cmp byte [esi + 8], 0
je 0x40c2c7
lea ebx, [esp + 0x20]
call fcn.0040c890
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [edi + 1]
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00417cae
mov esp, ebp
pop ebp
ret
test byte [0x422b68], 1
jne 0x40c2e9
or dword [0x422b68], 1
call fcn.0040d2d0
push 0x41a960
call fcn.00417dd5
add esp, 4
mov ecx, dword [0x422b70]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push ecx
call ebx
mov edx, dword [0x422b70]
mov ecx, 0xd
mov esi, 0x422bb8
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edx
call esi
xor edi, edi
xor eax, eax
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], edi
mov word [esp + 0x90], ax
mov byte [esp + 0xe8], 1
test byte [0x422b68], 1
jne 0x40c361
or dword [0x422b68], 1
call fcn.0040d2d0
push 0x41a960
call fcn.00417dd5
add esp, 4
mov ecx, dword [0x422b70]
push 0xffffffffffffffff
push ecx
call ebx
push edi
push 0x422b7c
or eax, 0xffffffff
lea ecx, [esp + 0x98]
call fcn.00401ce0
mov edx, dword [0x422b70]
push edx
call esi
xor eax, eax
mov word [esp + 0xac], ax
push 0x13
mov eax, str._SpoolerApplet.dalp
lea esi, [esp + 0xb0]
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], edi
call fcn.0040ba00
mov ecx, esi
lea eax, [esp + 0x90]
lea ebx, [esp + 0x74]
mov byte [esp + 0xe8], 2
call fcn.004046c0
mov ebx, 4
mov esi, 8
mov byte [esp + 0xe8], bl
cmp dword [esp + 0xc0], esi
jb 0x40c3fe
mov ecx, dword [esp + 0xac]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esp + 0x74]
xor edi, edi
xor edx, edx
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], edi
mov word [esp + 0xac], dx
cmp dword [esp + 0x88], esi
jae 0x40c42d
lea eax, [esp + 0x74]
push ebx
push eax
call dword [sym.imp.MSVCR100.dll__waccess_s]
add esp, 8
test eax, eax
je 0x40c458
push 0xc0000003
push 1
call fcn.0040be90
add esp, 8
mov dword [esp + 0x14], 0x1014
jmp 0x40c5b1
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x88], esi
jae 0x40c469
lea eax, [esp + 0x74]
push edi
push eax
push str.BA8D164350B649CC861D2C01BED14BE8
call fcn.0040e230
add esp, 0xc
cmp eax, edi
je 0x40c49f
cmp eax, 0x108
je 0x40c49f
push 0xc0000004
push 1
call fcn.0040be90
add esp, 8
mov dword [esp + 0x14], 0x1015
jmp 0x40c5b1
test byte [0x422c58], 1
jne 0x40c4d0
or dword [0x422c58], 1
mov byte [esp + 0xe8], 5
call fcn.004103d0
push 0x41aab0
call fcn.00417dd5
add esp, 4
mov byte [esp + 0xe8], bl
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
cmp eax, edi
je 0x40c53b
cmp eax, 0x720
je 0x40c53b
mov dword [esp + 0x14], 0x601
cmp dword [esp + 0x88], esi
jb 0x40c508
mov ecx, dword [esp + 0x74]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], edi
mov word [esp + 0x74], dx
cmp dword [esp + 0xa4], esi
jb 0x40c5fb
mov eax, dword [esp + 0x90]
push eax
jmp 0x40c5f2
mov edx, dword [esp + 0xc8]
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xd0]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0xe4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xe8]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x54]
push ebx
push str.BA8D164350B649CC861D2C01BED14BE8
push edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [eax + 0xc], ecx
call dword [esp + 0x7c]
add esp, 0x20
test eax, eax
jne 0x40c483
push edi
push edi
push edi
push 0x40bed0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 4], eax
cmp eax, edi
jne 0x40c5b1
mov dword [esp + 0x14], 0x601
cmp dword [esp + 0x88], esi
jb 0x40c5c8
mov eax, dword [esp + 0x74]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], edi
mov word [esp + 0x74], cx
cmp dword [esp + 0xa4], esi
jb 0x40c5fb
mov edx, dword [esp + 0x90]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esp + 0x14], edi
mov ecx, dword [esp + 0x18]
sete al
lea ebx, [esp + 0x20]
mov byte [ecx + 8], al
call fcn.0040c890
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x18]
add esp, 4
jmp 0x40c2a3
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x41d17c
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3