Function at 0x417f50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4186e8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
mov eax, dword [0x41f2c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 0x10]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x44]
add eax, 0xc
call fcn.00402480
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x44]
add eax, 0x28
call fcn.00402480
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
add eax, 0x44
call fcn.00402480
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x60], 0
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x64], 0
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x68], 0
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x6c], 0
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x70], 0
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x74], eax
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x78], 0
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x80], 0
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x84], 0
xor ecx, ecx
mov edx, dword [ebp - 0x44]
add edx, 0x88
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 0x44]
mov dword [eax + 0xa0], 0
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0xa4], 0
mov edx, dword [ebp - 0x44]
mov dword [edx + 0xa8], 0
mov eax, dword [ebp - 0x44]
mov dword [eax + 0xac], 0
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0xb0], 0
mov edx, dword [ebp - 0x44]
mov byte [edx + 0xb4], 0
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x7c], 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.00405df0
mov edx, dword [ebp - 0x44]
add edx, 0x88
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0xa0], eax
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov edx, dword [ebp - 0x44]
mov dword [edx + 0xa4], eax
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x44]
push ecx
push 0x417840
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x84], eax
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x6c], eax
mov edx, dword [ebp - 0x44]
cmp dword [edx + 0x6c], 0
je 0x418134
push str.MiniDumpWriteDump
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x70], eax
cmp dword [ebp + 0x18], 0
je 0x41821f
movzx eax, byte [0x4214d4]
test eax, eax
jne 0x41815b
push 0x4214a8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x4214d4], 1
push 0x4214a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4214cc], 0
jne 0x4181ad
push 0x18
call fcn.00407b9f
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0
je 0x418193
mov ecx, dword [ebp - 0x18]
call fcn.00405f60
mov dword [ebp - 0x48], eax
jmp 0x41819a
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
mov dword [0x4214cc], edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [0x4214cc]
call fcn.00406110
mov edx, dword [ebp + 0x18]
and edx, 1
je 0x4181db
push 0x417e80
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x78], eax
mov edx, dword [ebp + 0x18]
and edx, 2
je 0x4181f6
push 0x417d30
call fcn.004085c8
add esp, 4
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x7c], eax
mov edx, dword [ebp + 0x18]
and edx, 4
je 0x418214
push 0x417c40
call fcn.00408198
add esp, 4
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x80], eax
push 0x4214a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14