Function at 0x10066f3
Capabilities:
Create thread

Disassembly:
mov eax, 0x1023cb9
call fcn.010014dd
sub esp, 0x38
push ebx
push esi
push edi
mov ebx, ecx
call fcn.01009143
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 1
mov esi, 0x80000002
push esi
mov ecx, ebx
mov dword [0x102777c], eax
call fcn.01007442
xor edi, edi
push edi
push 0x80000001
mov ecx, ebx
call fcn.01007442
cmp eax, edi
jl 0x1017142
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 2
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0x1006874
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
push 0x202
push 0x102d5b0
mov ecx, ebx
mov dword [0x102d228], eax
call fcn.0100c1a0
mov eax, 0x102d234
mov dword [eax - 4], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
add eax, 0x1c
cmp eax, 0x102d5b4
jl 0x1006793
call fcn.01002cac
mov eax, dword [0x102777c]
mov dword [0x102d230], eax
call esi
mov dword [0x102d234], eax
mov dword [0x102d238], edi
mov dword [0x102d23c], edi
mov dword [0x102d240], edi
mov dword [0x102d244], edi
mov dword [0x102d248], edi
call fcn.01002cc8
push edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
push 1
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
call fcn.01010351
push edi
push edi
push edi
push 3
push 4
push edi
push edi
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push 1
push 4
push 0x1027098
call dword [sym.imp.ATL.DLL_AtlModuleRegisterClassObjects]
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push 0x100c038
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
add esp, 0x18
mov dword [ebx + 0x6f8], eax
push edi
push edi
lea eax, [ebp - 0x44]
push edi
push eax
call esi
test eax, eax
je 0x1017164
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1006854
push edi
push esi
mov ecx, ebx
call fcn.01007442
cmp eax, edi
jl 0x100673b
push 0x80000001
mov ecx, ebx
call fcn.0101fd99
jmp 0x100673b
mov esi, 0x102d244
mov dword [ebp - 0x10], 0x20
mov eax, dword [esi - 4]
cmp eax, edi
je 0x1017192
cmp dword [esi], edi
je 0x1017192
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call fcn.01003b00
add esi, 0x1c
dec dword [ebp - 0x10]
jne 0x1017170
push 0x102d228
call fcn.01003b00
add ebx, 0x224
mov dword [ebp - 0x10], 2
lea esi, [ebx - 0x58]
call fcn.01007de5
mov esi, ebx
call fcn.01007de5
lea esi, [ebx + 0x58]
call fcn.01007de5
add ebx, 0x2c
dec dword [ebp - 0x10]
jne 0x10171b1
call fcn.01002cac
mov dword [0x102d230], edi
call fcn.01002cc8
call fcn.0101fd88
mov esi, 0x1027098
push esi
call dword [sym.imp.ATL.DLL_AtlModuleRevokeClassObjects]
mov ecx, esi
call fcn.010204da
mov ecx, esi
call fcn.01009364
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x28]
call fcn.0101fd3b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret