Function at 0x1805be59
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x180fb94c
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 0x1805bfb8
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 0x1805bf4b
cmp dword [esi + 0xb4], ebx
je 0x1805bf4b
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x1805c2e2
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 0x1805bf6e
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 0x1805bf8e
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 0x1805bfa9
mov edi, dword [edi + 4]
jmp 0x1805bfac
add edi, 4
mov ecx, esi
mov dword [esi + 0x64], edi
call fcn.1805ca8a
xor ebx, ebx
cmp dword [ebp - 4], 1
jne 0x1805bfc9
push 0x180fb884
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x180fb884
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x180fb93c], ebx
jne 0x1805c015
push 0x18
call fcn.1809d904
mov edi, eax
pop ecx
cmp edi, ebx
je 0x1805c00f
push 4
call fcn.1809d904
pop ecx
cmp eax, ebx
je 0x1805bffa
mov dword [eax], edi
jmp 0x1805bffc
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [0x180fb93c], edi
jmp 0x1805c015
mov dword [0x180fb93c], ebx
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], esi
call fcn.1805cba5
push 0x1805c40b
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x1805c48f
mov dword [esi + 0x88], eax
call fcn.1809e08c
mov dword [esi + 0x8c], eax
mov dword [esp], 0x1805c631
call fcn.1809de00
mov dword [esi + 0x90], eax
mov dword [esp], 0x180fb884
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
leave
ret 8