Function at 0x77ca6ed6
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
push esi
mov dword [eax], ebx
mov esi, dword [0x77d2a3a8]
push edi
mov dword [ebp - 4], ebx
cmp esi, 0x77d2a3a8
je 0x77ca7139
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea ebx, [esi - 0xc]
mov edi, dword [ebx + 0x28]
lea eax, [ebx + 0x14]
push eax
and edi, 1
call dword [sym.imp.RPCRT4.dll_UuidEqual]
test eax, eax
je 0x77ce7889
xor eax, eax
inc eax
cmp dword [ebp + 0x10], eax
je 0x77ce789c
test edi, edi
je 0x77ce78e6
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14
cmp dword [ebp + 0x10], 0
jne 0x77ca7154
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.RPCRT4.dll_UuidIsNil]
test eax, eax
je 0x77ce7890
push 0x34
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x77ce78d8
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [ebp + 0x18], eax
je 0x77ce78f0
mov esi, dword [ebp + 8]
mov dword [ebx], 0x74736c6e
lea edi, [ebx + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 4]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea esi, [ebx + 0xc]
mov dword [esi + 4], esi
mov dword [esi], esi
call dword [sym.imp.RPCRT4.dll_UuidIsNil]
test eax, eax
je 0x77ce78fb
or dword [ebx + 0x28], 1
mov eax, dword [0x77d2a3ac]
mov dword [esi + 4], eax
mov dword [esi], 0x77d2a3a8
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [0x77d2a3ac], esi
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x2c], eax
jmp 0x77ca6f3c
mov esi, dword [esi]
jmp 0x77ca6ef5
mov dword [ebp - 4], 0x4d3
jmp 0x77ce796f
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 0
lea esi, [ebx + 0x30]
push eax
jmp 0x77ce78b9
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 1
push esi
call edi
cmp eax, 1
je 0x77ce78aa
mov ecx, dword [ebx + 0x10]
add ebx, 0xc
mov eax, dword [ebx]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov dword [ebx + 4], ebx
mov dword [ebx], ebx
jmp 0x77ca7154
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x77ce7966
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jmp 0x77ca6f37
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x77ce7956
lea eax, [ebx + 0x24]
push eax
xor edi, edi
push edi
push dword [ebp + 0xc]
push 0x77d14b3b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x77ce7924
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x77ce7948
mov eax, dword [0x77d2a3ac]
mov dword [esi + 4], eax
mov dword [esi], 0x77d2a3a8
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [0x77d2a3ac], esi
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x2c], eax
mov dword [ebp + 0x18], edi
cmp dword [ebp + 8], edi
je 0x77ce7956
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [ebp + 0x18], esi
je 0x77ce7966
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
je 0x77ca6f3c
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x77ca6f3c