Function at 0x41e230
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, 1
mov ecx, 0x4a401c
lock xadd dword [ecx], eax
inc eax
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [edi], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov byte [edi + 0x8c], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
mov dword [edi + 0xb8], 0
mov word [edi + 0xbc], 0
test esi, esi
je 0x41e371
push 0x344
call fcn.004391c3
add esp, 4
test eax, eax
je 0x41e330
push dword [esp + 0x34]
mov ecx, eax
push dword [edi + 0x6c]
push esi
call fcn.00403de0
mov esi, eax
jmp 0x41e332
xor esi, esi
mov ecx, esi
call fcn.00404190
test al, al
je 0x41e35d
mov ebp, dword [edi + 0xc]
cmp ebp, esi
je 0x41e371
test ebp, ebp
je 0x41e358
mov ecx, ebp
call fcn.00403f50
push ebp
call fcn.00439214
add esp, 4
mov dword [edi + 0xc], esi
jmp 0x41e371
test esi, esi
je 0x41e371
mov ecx, esi
call fcn.00403f50
push esi
call fcn.00439214
add esp, 4
cmp dword [edi + 0xc], 0
mov ecx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jne 0x41e44a
lea eax, [edi + 0x90]
push eax
call ecx
mov esi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 1
push 0
push 0
call esi
push 0
push 1
push 0
push 0
mov dword [edi + 0xa8], eax
call esi
mov dword [edi + 0xac], eax
test eax, eax
je 0x41e3dd
cmp dword [edi + 0xa8], 0
je 0x41e3dd
lea eax, [esp + 0x20]
push eax
push 0
push edi
push 0x41dbb0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x88], eax
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.dbghelp.dll
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x64], eax
test eax, eax
je 0x41e402
push str.MiniDumpWriteDump
push eax
call esi
mov dword [edi + 0x68], eax
push str.rpcrt4.dll
call ebp
mov dword [edi + 0x70], eax
test eax, eax
je 0x41e41b
push str.UuidCreate
push eax
call esi
mov dword [edi + 0x74], eax
mov eax, dword [esp + 0x18]
lea esi, [edi + 0x10]
cmp esi, eax
je 0x41e432
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00404560
cmp dword [esi + 0x14], 8
jb 0x41e43a
mov esi, dword [esi]
mov ecx, edi
mov dword [edi + 0x58], esi
call fcn.0041e5a0
mov ecx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp dword [esp + 0x10], 1
jne 0x41e458
push 0x4a4004
call ecx
test ebx, ebx
je 0x41e4fd
push 0x4a4004
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4a3ffc]
test eax, eax
jne 0x41e49f
push 0xc
call fcn.004391c3
add esp, 4
test eax, eax
je 0x41e498
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x41e49a
xor eax, eax
mov dword [0x4a3ffc], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
push ecx
mov ecx, eax
call fcn.0041f060
test bl, 1
je 0x41e4c2
push 0x41dea0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [edi + 0x7c], eax
test bl, 2
je 0x41e4da
push 0x41df50
call fcn.0043e761
add esp, 4
mov dword [edi + 0x80], eax
test bl, 4
je 0x41e4f2
push 0x41e100
call fcn.0043919e
add esp, 4
mov dword [edi + 0x84], eax
push 0x4a4004
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x20