Function at 0x18044549
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x180b5884
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], 0x1801a342
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 0x180446a8
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 0x1804463b
cmp dword [esi + 0xb4], ebx
je 0x1804463b
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x180449d2
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 0x1804465e
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 0x1804467e
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.1801bc33
cmp dword [edi + 0x18], 8
jb 0x18044699
mov edi, dword [edi + 4]
jmp 0x1804469c
add edi, 4
mov ecx, esi
mov dword [esi + 0x64], edi
call fcn.1804517a
xor ebx, ebx
cmp dword [ebp - 4], 1
jne 0x180446b9
push 0x180b57c4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x180b57c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x180b587c], ebx
jne 0x18044705
push 0x18
call fcn.18076ac4
mov edi, eax
pop ecx
cmp edi, ebx
je 0x180446ff
push 4
call fcn.18076ac4
pop ecx
cmp eax, ebx
je 0x180446ea
mov dword [eax], edi
jmp 0x180446ec
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [0x180b587c], edi
jmp 0x18044705
mov dword [0x180b587c], ebx
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], esi
call fcn.18045295
push 0x18044afb
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x18044b7f
mov dword [esi + 0x88], eax
call fcn.1807719d
mov dword [esi + 0x8c], eax
mov dword [esp], 0x18044d21
call fcn.18076c6c
mov dword [esi + 0x90], eax
mov dword [esp], 0x180b57c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
leave
ret 8