Function at 0x180a0233
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x180fd00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x28], eax
mov ebx, ecx
push esi
xor eax, eax
mov dword [ebp - 0x24], ebx
push edi
mov edi, dword [ebp + 0x20]
inc eax
lock xadd dword [0x18100f64], eax
inc eax
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov esi, ecx
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx], ecx
mov dword [ebx + 4], 0x18063c6f
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0x5c], ecx
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x64], ecx
mov dword [ebx + 0x68], ecx
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x70], ecx
mov dword [ebx + 0x74], ecx
mov dword [ebx + 0x78], 7
mov dword [ebx + 0x7c], ecx
mov dword [ebx + 0x80], ecx
mov dword [ebx + 0x84], ecx
mov dword [ebx + 0x88], ecx
mov byte [ebx + 0x8c], cl
mov dword [ebx + 0xa8], ecx
mov dword [ebx + 0xac], ecx
mov dword [ebx + 0xb0], ecx
mov dword [ebx + 0xb4], ecx
mov dword [ebx + 0xb8], ecx
mov word [ebx + 0xbc], cx
mov byte [ebx + 0xbe], cl
mov dword [ebp - 0x20], esi
test edi, edi
je 0x180a0346
push 0x348
call fcn.180a6a69
pop ecx
push dword [ebp + 0x2c]
mov ecx, eax
push dword [ebx + 0x6c]
push edi
call fcn.180a10e5
push eax
lea ecx, [ebp - 0x20]
call fcn.180a101b
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x180a0344
cmp dword [esi + 0x28], 0
jne 0x180a0339
mov ecx, esi
call fcn.180a1175
mov edi, eax
test edi, edi
je 0x180a0344
push edi
mov ecx, esi
call fcn.180a120e
push edi
mov bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
mov ebx, dword [ebp - 0x24]
je 0x180a0344
push esi
lea ecx, [ebx + 0xc]
xor esi, esi
call fcn.180a101b
xor ecx, ecx
cmp dword [ebx + 0xc], ecx
jne 0x180a040c
lea eax, [ebx + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
xor eax, eax
push eax
push 1
push eax
push eax
call edi
mov dword [ebx + 0xa8], eax
xor eax, eax
push eax
push 1
push eax
push eax
call edi
mov dword [ebx + 0xac], eax
test eax, eax
je 0x180a03ab
xor ecx, ecx
cmp dword [ebx + 0xa8], ecx
je 0x180a03ab
lea eax, [ebp - 0x2c]
push eax
push ecx
push ebx
push 0x180a068f
push 0x10000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x88], eax
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x64], eax
test eax, eax
je 0x180a03ce
push str.MiniDumpWriteDump
push eax
call edi
mov dword [ebx + 0x68], eax
push str.rpcrt4.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x70], eax
test eax, eax
je 0x180a03eb
push str.UuidCreate
push eax
call edi
mov dword [ebx + 0x74], eax
push dword [ebp - 0x28]
lea edi, [ebx + 0x10]
mov ecx, edi
call fcn.180a106a
cmp dword [edi + 0x14], 8
jb 0x180a0400
mov edi, dword [edi]
mov ecx, ebx
mov dword [ebx + 0x58], edi
call fcn.180a0df5
xor ecx, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebx + 0xc0]
push eax
call fcn.180a0f7c
cmp dword [ebp - 0x1c], 1
mov edi, 0x18101170
jne 0x180a0436
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1810118c]
test eax, eax
jne 0x180a045d
push 0xc
call fcn.180a6a69
pop ecx
xor ecx, ecx
mov dword [0x1810118c], eax
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
cmp ecx, dword [eax + 8]
je 0x180a0470
mov dword [ecx], ebx
add dword [eax + 4], 4
jmp 0x180a047c
lea edx, [ebp - 0x1c]
push edx
push ecx
mov ecx, eax
call fcn.1802cab7
push 0x180a0788
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x180a0838
mov dword [ebx + 0x7c], eax
call fcn.180ac884
mov dword [ebx + 0x80], eax
mov dword [esp], 0x180a09be
call fcn.180a9292
pop ecx
push edi
mov dword [ebx + 0x84], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x180a04cc
mov ecx, esi
call fcn.180a1141
push 0x348
push esi
call fcn.180a66f3
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180a61d8
leave
ret 0x28