Function at 0x408885
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 1
push 0x401b30
mov eax, 0x427
lea esi, [ebp - 0x48]
call fcn.0040df9a
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov ebx, ecx
mov edi, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], 0x4013c0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
cmp eax, 0xb
je 0x4088ea
cmp eax, 1
je 0x4088ea
cmp eax, 5
je 0x4088ea
mov eax, 0x432
mov dword [ebp - 0x48], 0x80070057
mov word [ebp - 0x42], ax
jmp 0x408c31
mov esi, dword [ebp + 8]
mov eax, 0x432
mov word [ebp - 0x44], ax
lea eax, [esi + 0x54]
push eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x408a4e
push 0x58
mov edi, 0x440
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x408a81
mov esi, dword [ebp - 0xc]
mov word [ebp - 0x44], di
xor edx, edx
mov dword [ebp - 0x48], edx
push reloc.KERNEL32.dll_InitializeSListHead
mov edi, eax
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xc]
mov esi, eax
mov dword [esi + 0x54], edx
mov dword [esi + 4], edx
mov dword [esi + 8], edx
mov dword [esi], edx
mov dword [esi + 0xc], edx
mov edx, dword [edi + 4]
lea eax, [ebp - 0x24]
call fcn.0040fe83
lea eax, [ebp - 0x24]
push eax
call fcn.00410446
mov dword [ebp - 0x48], eax
test eax, eax
mov eax, 0x44a
js 0x408a78
lea edx, [esi + 4]
lea ecx, [ebp - 0x24]
mov word [ebp - 0x44], ax
call fcn.004105df
mov edx, dword [edi]
mov eax, ecx
call fcn.0040fe83
lea eax, [ebp - 0x24]
push eax
call fcn.00410446
mov dword [ebp - 0x48], eax
test eax, eax
mov eax, 0x44c
js 0x408a78
mov edx, esi
lea ecx, [ebp - 0x24]
mov word [ebp - 0x44], ax
call fcn.004105df
mov edx, dword [edi + 0xc]
mov eax, ecx
call fcn.0040fe83
lea eax, [ebp - 0x24]
push eax
call fcn.00410446
mov dword [ebp - 0x48], eax
test eax, eax
mov eax, 0x44e
js 0x408a78
lea edx, [esi + 0xc]
lea ecx, [ebp - 0x24]
mov word [ebp - 0x44], ax
call fcn.004105df
mov ecx, edi
mov edx, dword [ecx + 8]
test edx, edx
je 0x408a20
lea eax, [ebp - 0x24]
call fcn.0040fe83
lea eax, [ebp - 0x24]
push eax
call fcn.00410446
mov dword [ebp - 0x48], eax
test eax, eax
mov eax, 0x452
js 0x408a78
lea edx, [esi + 8]
lea ecx, [ebp - 0x24]
mov word [ebp - 0x44], ax
call fcn.004105df
mov ecx, edi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x408a2a
mov dword [eax + 0x54], esi
cmp dword [ebp - 8], ebx
jne 0x408a32
mov dword [ebp - 8], esi
mov ecx, dword [ecx + 0x54]
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x408914
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
mov eax, dword [esi + 0x98]
and dword [ebp - 0x10], ebx
test eax, eax
je 0x408a91
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408a91
and dword [ebp - 0x48], ebx
mov eax, 0x46f
jmp 0x408b8c
mov word [ebp - 0x42], ax
jmp 0x408b93
mov dword [ebp - 0x48], reloc.ADVAPI32.dll_TraceMessage
mov word [ebp - 0x42], di
jmp 0x408b93
mov eax, dword [esi + 0x94]
test eax, eax
je 0x408ab8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408ab8
and dword [ebp - 0x48], ebx
mov eax, 0x476
jmp 0x408b8c
and dword [esi + 0x98], ebx
and dword [esi + 0x94], ebx
push 0xc
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp + 8], eax
test eax, eax
jne 0x408ae8
mov dword [ebp - 0x48], reloc.ADVAPI32.dll_TraceMessage
mov eax, 0x47f
mov word [ebp - 0x42], ax
jmp 0x408b90
and dword [ebp - 0x48], ebx
mov ecx, 0x47f
mov word [ebp - 0x44], cx
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x408b15
mov ecx, dword [ebx]
push ebx
call dword [ecx + reloc.ADVAPI32.dll_GetTraceEnableLevel]
mov eax, dword [ebp + 8]
mov ecx, dword [ebx]
add eax, 8
push eax
push 0x401324
push ebx
call dword [ecx]
mov dword [ebp - 0x48], eax
test eax, eax
mov eax, 0x483
js 0x408adf
mov word [ebp - 0x44], ax
xor eax, eax
push eax
push eax
push dword [ebp + 8]
mov dword [esi + 0xa0], eax
push 0x4096ba
push eax
push eax
mov dword [esi + 0xa8], eax
mov dword [esi + 0xa4], 1
mov dword [esi + 0x50], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x98], eax
test eax, eax
jne 0x408b7f
call fcn.0040f196
mov dword [ebp - 0x48], eax
mov eax, 0x48c
jmp 0x408adf
and dword [ebp - 0x48], 0
and dword [ebp - 8], 0
mov eax, 0x48c
mov word [ebp - 0x44], ax
mov esi, dword [ebp - 4]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
je 0x408bcb
push dword [esi + 4]
call edi
push dword [esi]
and dword [esi + 4], 0
call edi
push dword [esi + 0xc]
and dword [esi], 0
call edi
push dword [esi + 8]
and dword [esi + 0xc], 0
call edi
and dword [esi + 8], 0
push esi
call edi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x408bf7
push dword [esi + 4]
call edi
push dword [esi]
and dword [esi + 4], 0
call edi
push dword [esi + 0xc]
and dword [esi], 0
call edi
push dword [esi + 8]
and dword [esi + 0xc], 0
call edi
and dword [esi + 8], 0
push esi
call edi
cmp dword [ebp - 8], 0
je 0x408c31
mov ebx, dword [ebp - 8]
mov esi, ebx
push dword [esi + 4]
mov ebx, dword [ebx + 0x54]
call edi
push dword [esi]
and dword [esi + 4], 0
call edi
push dword [esi + 0xc]
and dword [esi], 0
call edi
push dword [esi + 8]
and dword [esi + 0xc], 0
call edi
and dword [esi + 8], 0
push esi
call edi
test ebx, ebx
jne 0x408c00
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x48]
lea esi, [ebp - 0x24]
call fcn.0040fca0
test ebx, ebx
je 0x408c46
mov ecx, dword [ebx]
push ebx
call dword [ecx + UnregisterTraceGuids]
lea eax, [ebp - 0x48]
call fcn.0040e073
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc