Function at 0x4487a0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4900a7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1ae0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
push 0x4b3410
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esi], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 8], edx
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], ecx
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 edi, ebx
je 0x4488fb
push 0x348
call fcn.00474492
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ebx
cmp eax, ebx
je 0x448897
mov edx, dword [esp + 0x44]
mov ecx, dword [esi + 0x78]
push edx
push ecx
push edi
mov ecx, eax
call fcn.004484d0
mov edi, eax
jmp 0x448899
xor edi, edi
mov ecx, edi
mov dword [esp + 0x20], 0xffffffff
call fcn.00447ae0
mov ebp, eax
cmp ebp, ebx
je 0x4488e7
push ebp
mov ecx, edi
call fcn.00447630
push ebp
mov byte [esp + 0x30], al
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [esp + 0x2c], bl
je 0x4488e7
mov ebp, dword [esi + 0xc]
cmp ebp, edi
je 0x4488fb
cmp ebp, ebx
je 0x4488e2
mov ecx, ebp
call fcn.00447be0
push ebp
call fcn.00473948
add esp, 4
mov dword [esi + 0xc], edi
jmp 0x4488fb
cmp edi, ebx
je 0x4488fb
mov ecx, edi
call fcn.00447be0
push edi
call fcn.00473948
add esp, 4
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4489c8
lea edx, [esi + 0x9c]
push edx
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 0x44895d
cmp dword [esi + 0xb4], ebx
je 0x44895d
lea eax, [esp + 0x30]
push eax
push ebx
push esi
push 0x447b40
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 ebp, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esi + 0x70], eax
cmp eax, ebx
je 0x448982
push str.MiniDumpWriteDump
push eax
call ebp
mov dword [esi + 0x74], eax
push str.rpcrt4.dll
call edi
mov dword [esi + 0x7c], eax
cmp eax, ebx
je 0x44899e
push str.UuidCreate
push eax
call ebp
mov dword [esi + 0x80], eax
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ebx
lea edi, [esi + 0x10]
push ecx
mov ecx, edi
call fcn.004302d0
cmp dword [edi + 0x18], 8
jb 0x4489bb
mov edi, dword [edi + 4]
jmp 0x4489be
add edi, 4
mov ecx, esi
mov dword [esi + 0x64], edi
call fcn.00448640
mov edi, 1
cmp dword [esp + 0x14], edi
jne 0x4489de
push 0x4b33f0
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
cmp dword [esp + 0x38], ebx
je 0x448a91
push 0x4b33f0
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [0x4b3408]
cmp ecx, ebx
jne 0x448a2e
push 0x18
call fcn.00474492
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edi
cmp eax, ebx
je 0x448a1c
mov ecx, eax
call fcn.00430f70
jmp 0x448a1e
xor eax, eax
mov ecx, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [0x4b3408], ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], esi
call fcn.00449310
mov bl, byte [esp + 0x38]
test bl, 1
je 0x448a56
push 0x448560
call dword [sym.imp.KERNEL32.DLL_SetUnhandledExceptionFilter]
mov dword [esi + 0x88], eax
test bl, 2
je 0x448a6e
push 0x447ff0
call fcn.00474685
add esp, 4
mov dword [esi + 0x8c], eax
test bl, 4
je 0x448a86
push 0x4481d0
call fcn.00473d2f
add esp, 4
mov dword [esi + 0x90], eax
push 0x4b33f0
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x20