Function at 0x4d190e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, ecx
push 0x60e228
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [ebx], eax
mov esi, eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x78], 7
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x88], eax
push 0x364
mov byte [ebx + 0x8c], al
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov dword [ebx + 0xb0], eax
mov dword [ebx + 0xb4], eax
mov dword [ebx + 0xb8], eax
mov word [ebx + 0xbc], ax
mov byte [ebx + 0xbe], al
call fcn.0054bee4
pop ecx
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebx + 0x6c]
push ecx
mov ecx, eax
call fcn.004d302a
mov edi, eax
test edi, edi
je 0x4d1a00
cmp dword [edi + 0x28], 0
mov esi, edi
jne 0x4d19f5
mov ecx, edi
call fcn.004d31a5
mov dword [esp + 0x14], eax
test eax, eax
je 0x4d1a00
push eax
mov ecx, edi
call fcn.004d3239
push dword [esp + 0x14]
mov bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
mov ebx, dword [esp + 0x10]
je 0x4d1a00
push edi
lea ecx, [ebx + 0xc]
xor esi, esi
call fcn.004d27a7
cmp dword [ebx + 0xc], 0
jne 0x4d1ac6
lea eax, [ebx + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
xor eax, eax
push eax
push 1
push eax
push eax
call edi
mov dword [ebx + 0xa8], eax
xor eax, eax
push eax
push 1
push eax
push eax
call edi
mov dword [ebx + 0xac], eax
test eax, eax
je 0x4d1a67
xor ecx, ecx
cmp dword [ebx + 0xa8], ecx
je 0x4d1a67
lea eax, [esp + 0x1c]
push eax
push ecx
push ebx
push 0x4d1d66
push 0x10000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x88], eax
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x64], eax
test eax, eax
je 0x4d1a8a
push str.MiniDumpWriteDump
push eax
call edi
mov dword [ebx + 0x68], eax
push str.rpcrt4.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x70], eax
test eax, eax
je 0x4d1aa7
push str.UuidCreate
push eax
call edi
mov dword [ebx + 0x74], eax
push dword [ebp + 8]
lea edi, [ebx + 0x10]
mov ecx, edi
call fcn.00410740
cmp dword [edi + 0x14], 8
jb 0x4d1abc
mov edi, dword [edi]
mov ecx, ebx
mov dword [ebx + 0x58], edi
call fcn.004d24fa
lea eax, [esp + 0x20]
xorps xmm0, xmm0
xor edi, edi
movlpd qword [esp + 0x20], xmm0
push eax
lea ecx, [ebx + 0xc0]
mov dword [esp + 0x2c], edi
call fcn.004d27db
cmp dword [esp + 0x18], 1
jne 0x4d1af7
push 0x60e20c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x60e20c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x60e22c]
test eax, eax
jne 0x4d1b20
push 0xc
call fcn.0054bee4
pop ecx
mov dword [0x60e22c], eax
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ebx
cmp dword [eax + 8], ecx
je 0x4d1b34
mov dword [ecx], ebx
add dword [eax + 4], 4
jmp 0x4d1b41
lea edx, [esp + 0x14]
push edx
push ecx
mov ecx, eax
call fcn.004d2b8e
push 0x4d1e67
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x4d1f10
mov dword [ebx + 0x7c], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
mov dword [ebx + 0x80], eax
mov dword [esp], 0x4d208e
call dword [sym.imp.VCRUNTIME140.dll__set_purecall_handler]
mov dword [ebx + 0x84], eax
mov dword [esp], 0x60e20c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x4d1b8c
push ecx
mov ecx, esi
call fcn.004d28ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c