Function at 0x1805be5e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x180fb96c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], 0x18025549
mov dword [esi + 8], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], 7
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov byte [esi + 0x98], bl
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov byte [esi + 0xc8], bl
mov byte [esi + 0xc9], bl
cmp dword [esi + 0xc], ebx
jne 0x1805bfbd
lea eax, [esi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push ebx
push 1
push ebx
push ebx
call edi
push ebx
push 1
push ebx
push ebx
mov dword [esi + 0xb4], eax
call edi
mov dword [esi + 0xb8], eax
cmp eax, ebx
je 0x1805bf50
cmp dword [esi + 0xb4], ebx
je 0x1805bf50
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x1805c2e7
push 0x10000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x94], eax
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.dbghelp.dll
call edi
mov dword [esi + 0x70], eax
cmp eax, ebx
je 0x1805bf73
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x74], eax
push str.rpcrt4.dll
call edi
mov dword [esi + 0x7c], eax
cmp eax, ebx
je 0x1805bf93
push str.UuidCreate
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x80], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
lea edi, [esi + 0x10]
push edi
xor ebx, ebx
call fcn.18027161
cmp dword [edi + 0x18], 8
jb 0x1805bfae
mov edi, dword [edi + 4]
jmp 0x1805bfb1
add edi, 4
mov ecx, esi
mov dword [esi + 0x64], edi
call fcn.1805ca8f
xor ebx, ebx
cmp dword [ebp - 4], 1
jne 0x1805bfce
push 0x180fb8a4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x180fb8a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x180fb95c], ebx
jne 0x1805c01a
push 0x18
call fcn.1809d904
mov edi, eax
pop ecx
cmp edi, ebx
je 0x1805c014
push 4
call fcn.1809d904
pop ecx
cmp eax, ebx
je 0x1805bfff
mov dword [eax], edi
jmp 0x1805c001
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [0x180fb95c], edi
jmp 0x1805c01a
mov dword [0x180fb95c], ebx
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], esi
call fcn.1805cbaa
push 0x1805c410
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x1805c494
mov dword [esi + 0x88], eax
call fcn.1809e08c
mov dword [esi + 0x8c], eax
mov dword [esp], 0x1805c636
call fcn.1809de00
mov dword [esi + 0x90], eax
mov dword [esp], 0x180fb8a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
leave
ret 8