Function at 0x18044ba0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x180b58a4
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], 0x1801a3b5
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 0x18044cff
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 0x18044c92
cmp dword [esi + 0xb4], ebx
je 0x18044c92
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x18045029
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 0x18044cb5
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 0x18044cd5
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.1801bcb6
cmp dword [edi + 0x18], 8
jb 0x18044cf0
mov edi, dword [edi + 4]
jmp 0x18044cf3
add edi, 4
mov ecx, esi
mov dword [esi + 0x64], edi
call fcn.180457d1
xor ebx, ebx
cmp dword [ebp - 4], 1
jne 0x18044d10
push 0x180b57e4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x180b57e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x180b589c], ebx
jne 0x18044d5c
push 0x18
call fcn.18076e14
mov edi, eax
pop ecx
cmp edi, ebx
je 0x18044d56
push 4
call fcn.18076e14
pop ecx
cmp eax, ebx
je 0x18044d41
mov dword [eax], edi
jmp 0x18044d43
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [0x180b589c], edi
jmp 0x18044d5c
mov dword [0x180b589c], ebx
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], esi
call fcn.180458ec
push 0x18045152
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x180451d6
mov dword [esi + 0x88], eax
call fcn.180774ed
mov dword [esi + 0x8c], eax
mov dword [esp], 0x18045378
call fcn.18076fbc
mov dword [esi + 0x90], eax
mov dword [esp], 0x180b57e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
leave
ret 8