Function at 0x4042a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fd61
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x441094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x34], eax
mov eax, 1
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], edx
lock xadd dword [0x441fbc], eax
inc eax
mov dword [ebp - 0x30], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
mov byte [ebx + 0x8c], 0
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xb8], 0
mov word [ebx + 0xbc], 0
mov byte [ebx + 0xbe], 0
mov dword [ebp - 0x28], esi
mov eax, dword [ebp + 0x28]
mov dword [ebp - 4], esi
test eax, eax
jne 0x404452
test ecx, ecx
je 0x404404
push 0x348
call fcn.004010b0
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x404448
push 0x348
push esi
push edi
call fcn.0040d690
add esp, 0xc
mov ecx, edi
push dword [ebp - 0x34]
push dword [ebx + 0x6c]
push dword [ebp - 0x38]
call fcn.00405450
jmp 0x40444a
test edx, edx
je 0x404496
push 0x348
call fcn.004010b0
mov edi, eax
add esp, 4
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x404448
push 0x348
push 0
push edi
call fcn.0040d690
add esp, 0xc
mov ecx, edi
push dword [ebp - 0x34]
push dword [ebx + 0x6c]
push dword [ebp - 0x2c]
call fcn.004053c0
jmp 0x40444a
xor eax, eax
mov byte [ebp - 4], 0
test eax, eax
je 0x404496
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x404496
mov ecx, esi
call fcn.004056e0
test al, al
je 0x404496
mov edi, dword [ebx + 0xc]
mov eax, esi
xor esi, esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
cmp eax, edi
je 0x404496
test edi, edi
je 0x404493
mov ecx, edi
call fcn.00405560
push 0x348
push edi
call fcn.0040ca90
mov eax, dword [ebp - 0x2c]
add esp, 8
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jne 0x404578
lea eax, [ebx + 0x90]
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 1
push 0
push 0
call edi
push 0
push 1
push 0
push 0
mov dword [ebx + 0xa8], eax
call edi
mov dword [ebx + 0xac], eax
test eax, eax
je 0x404501
cmp dword [ebx + 0xa8], 0
je 0x404501
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
push 0x403e50
push 0x10000
push 0
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 0x404524
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 0x404541
push str.UuidCreate
push eax
call edi
mov dword [ebx + 0x74], eax
mov ecx, dword [ebp - 0x3c]
lea edi, [ebx + 0x10]
cmp edi, ecx
je 0x404560
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x404555
mov eax, dword [ecx]
push dword [ecx + 0x10]
mov ecx, edi
push eax
call fcn.00402c80
cmp dword [edi + 0x14], 8
jb 0x404568
mov edi, dword [edi]
mov ecx, ebx
mov dword [ebx + 0x58], edi
call fcn.00404740
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
lea ecx, [ebx + 0xc8]
push eax
movlpd qword [ebp - 0x24], xmm0
call fcn.00404ed0
cmp dword [ebp - 0x30], 1
jne 0x4045a3
push 0x441fa4
call edi
cmp dword [ebp + 0x18], 0
je 0x40465f
push 0x441fa4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x441f9c]
test eax, eax
jne 0x4045ec
push 0xc
call fcn.004010b0
add esp, 4
test eax, eax
je 0x4045e5
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x4045e7
xor eax, eax
mov dword [0x441f9c], eax
mov ecx, dword [eax + 4]
mov dword [ebp - 0x30], ebx
cmp ecx, dword [eax + 8]
je 0x4045ff
mov dword [ecx], ebx
add dword [eax + 4], 4
jmp 0x40460b
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, eax
call fcn.00403880
mov eax, dword [ebp + 0x18]
test al, 1
je 0x404623
push 0x403ec0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [ebx + 0x7c], eax
mov eax, dword [ebp + 0x18]
test al, 2
je 0x40463d
push 0x403fd0
call fcn.004148f9
mov dword [ebx + 0x80], eax
add esp, 4
mov eax, dword [ebp + 0x18]
test al, 4
je 0x404654
push 0x404170
call fcn.0040e964
add esp, 4
mov dword [ebx + 0x84], eax
push 0x441fa4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x404678
mov ecx, esi
call fcn.00405560
push 0x348
push esi
call fcn.0040ca90
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c5a7
mov esp, ebp
pop ebp
ret 0x28