Function at 0x452570
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x59a257
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6204e0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
push 0x62101c
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 0x4526cb
push 0x348
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ebx
cmp eax, ebx
je 0x452667
mov edx, dword [esp + 0x44]
mov ecx, dword [esi + 0x78]
push edx
push ecx
push edi
mov ecx, eax
call fcn.004522a0
mov edi, eax
jmp 0x452669
xor edi, edi
mov ecx, edi
mov dword [esp + 0x20], 0xffffffff
call fcn.004518b0
mov ebp, eax
cmp ebp, ebx
je 0x4526b7
push ebp
mov ecx, edi
call fcn.00451400
push ebp
mov byte [esp + 0x30], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x2c], bl
je 0x4526b7
mov ebp, dword [esi + 0xc]
cmp ebp, edi
je 0x4526cb
cmp ebp, ebx
je 0x4526b2
mov ecx, ebp
call fcn.004519b0
push ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0xc], edi
jmp 0x4526cb
cmp edi, ebx
je 0x4526cb
mov ecx, edi
call fcn.004519b0
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x452798
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 0x45272d
cmp dword [esi + 0xb4], ebx
je 0x45272d
lea eax, [esp + 0x30]
push eax
push ebx
push esi
push 0x451910
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 0x452752
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 0x45276e
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.0044a2d0
cmp dword [edi + 0x18], 8
jb 0x45278b
mov edi, dword [edi + 4]
jmp 0x45278e
add edi, 4
mov ecx, esi
mov dword [esi + 0x64], edi
call fcn.00452410
mov edi, 1
cmp dword [esp + 0x14], edi
jne 0x4527ae
push 0x620ffc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp dword [esp + 0x38], ebx
je 0x452861
push 0x620ffc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x621014]
cmp ecx, ebx
jne 0x4527fe
push 0x18
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edi
cmp eax, ebx
je 0x4527ec
mov ecx, eax
call fcn.00462b30
jmp 0x4527ee
xor eax, eax
mov ecx, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [0x621014], ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], esi
call fcn.00420040
mov bl, byte [esp + 0x38]
test bl, 1
je 0x452826
push 0x452330
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [esi + 0x88], eax
test bl, 2
je 0x45283e
push 0x451dc0
call sub.MSVCR90.dll__set_invalid_parameter_handler
add esp, 4
mov dword [esi + 0x8c], eax
test bl, 4
je 0x452856
push 0x451fa0
call sub.MSVCR90.dll__set_purecall_handler
add esp, 4
mov dword [esi + 0x90], eax
push 0x620ffc
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