Function at 0x1000230a
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
xor eax, eax
mov ebx, ecx
push edi
mov ecx, 0x1001939c
inc eax
lock xadd dword [ecx], eax
inc eax
mov ebp, dword [esp + 0x38]
xor ecx, ecx
mov esi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x3c]
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], ebp
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 [esp + 0x2c], esi
cmp dword [esp + 0x48], ecx
je 0x100023b5
push dword [esp + 0x48]
jmp 0x1000240a
cmp dword [esp + 0x40], ecx
je 0x100023de
push 0x348
call fcn.10002e9e
pop ecx
test eax, eax
je 0x10002407
push dword [esp + 0x4c]
mov ecx, eax
push dword [ebx + 0x6c]
push dword [esp + 0x48]
call fcn.100016b0
jmp 0x10002409
cmp dword [esp + 0x44], ecx
je 0x10002433
push 0x348
call fcn.10002e9e
pop ecx
test eax, eax
je 0x10002407
push dword [esp + 0x4c]
mov ecx, eax
push dword [ebx + 0x6c]
push dword [esp + 0x4c]
call fcn.1000164b
jmp 0x10002409
xor eax, eax
push eax
lea ecx, [esp + 0x30]
call fcn.10002be4
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x10002431
mov ecx, esi
call fcn.10001863
test al, al
je 0x10002431
push esi
lea ecx, [ebx + 0xc]
xor esi, esi
call fcn.10002be4
xor ecx, ecx
cmp dword [ebx + 0xc], ecx
jne 0x100024e8
lea eax, [ebx + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 1
push 0
push 0
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 0x1000249b
cmp dword [ebx + 0xa8], 0
je 0x1000249b
lea eax, [esp + 0x34]
push eax
push 0
push ebx
push 0x10001f9b
push 0x10000
push 0
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 0x100024be
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 0x100024db
push str.UuidCreate
push eax
call edi
mov dword [ebx + 0x74], eax
push dword [esp + 0x28]
mov ecx, ebx
call fcn.10002c0d
xor ecx, ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [ebx + 0xc0]
push eax
push dword [ecx]
call fcn.10001e0e
cmp dword [esp + 0x10], 1
mov edi, 0x10019384
jne 0x10002519
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
test ebp, ebp
je 0x100025b0
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1001937c]
test eax, eax
jne 0x10002551
push 0xc
call fcn.10002e9e
pop ecx
test eax, eax
je 0x1000254a
and dword [eax], 0
and dword [eax + 4], 0
and dword [eax + 8], 0
jmp 0x1000254c
xor eax, eax
mov dword [0x1001937c], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], ebx
push ecx
mov ecx, eax
call fcn.10002b92
mov eax, dword [esp + 0x38]
test al, 1
je 0x1000257b
push 0x10001ff1
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x38]
test al, 2
je 0x10002594
push 0x1000208b
call fcn.100042a1
mov dword [ebx + 0x80], eax
mov eax, dword [esp + 0x3c]
pop ecx
test al, 4
je 0x100025a9
push 0x1000220a
call fcn.10002e79
pop ecx
mov dword [ebx + 0x84], eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x100025c2
mov ecx, esi
call fcn.1000177e
push esi
call fcn.10002eef
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x28