Function at 0x414a7c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x24], eax
mov ebx, ecx
push esi
xor eax, eax
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x20]
inc eax
lock xadd dword [0x441ca4], eax
inc eax
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov esi, ecx
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx], ecx
mov dword [ebx + 4], 0x410d97
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0x5c], ecx
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x64], ecx
mov dword [ebx + 0x68], ecx
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x70], ecx
mov dword [ebx + 0x74], ecx
mov dword [ebx + 0x78], 7
mov dword [ebx + 0x7c], ecx
mov dword [ebx + 0x80], ecx
mov dword [ebx + 0x84], ecx
mov dword [ebx + 0x88], ecx
mov byte [ebx + 0x8c], cl
mov dword [ebx + 0xa8], ecx
mov dword [ebx + 0xac], ecx
mov dword [ebx + 0xb0], ecx
mov dword [ebx + 0xb4], ecx
mov dword [ebx + 0xb8], ecx
mov word [ebx + 0xbc], cx
mov byte [ebx + 0xbe], cl
test edi, edi
je 0x414b90
push 0x348
call fcn.0042883d
pop ecx
push dword [ebp + 0x2c]
mov ecx, eax
push dword [ebx + 0x6c]
push edi
call fcn.00415835
mov edi, eax
test edi, edi
je 0x414b90
cmp dword [edi + 0x28], 0
mov esi, edi
jne 0x414b7a
mov ecx, edi
call fcn.00415891
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x414b90
push eax
mov ecx, edi
call fcn.0041592c
push dword [ebp - 0x1c]
mov bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
mov ebx, dword [ebp - 0x20]
je 0x414b90
mov ecx, dword [ebx + 0xc]
xor esi, esi
cmp edi, ecx
je 0x414b90
test ecx, ecx
je 0x414b8d
push ecx
call fcn.0041579c
mov dword [ebx + 0xc], edi
cmp dword [ebx + 0xc], 0
jne 0x414c55
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 0x414bf6
xor ecx, ecx
cmp dword [ebx + 0xa8], ecx
je 0x414bf6
lea eax, [ebp - 0x2c]
push eax
push ecx
push ebx
push 0x414eec
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 0x414c19
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 0x414c36
push 0x43b96c
push eax
call edi
mov dword [ebx + 0x74], eax
push dword [ebp - 0x24]
lea edi, [ebx + 0x10]
mov ecx, edi
call fcn.0041063c
cmp dword [edi + 0x14], 8
jb 0x414c4b
mov edi, dword [edi]
mov ecx, ebx
mov dword [ebx + 0x58], edi
call fcn.00415646
xor edi, edi
lea eax, [ebp - 0x18]
lea ecx, [ebx + 0xc0]
mov dword [ebp - 0x18], edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call fcn.004156fa
cmp dword [ebp - 0x28], 1
jne 0x414c80
push 0x441ca8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x441ca8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x441cc0]
test eax, eax
jne 0x414ca9
push 0xc
call fcn.0042883d
pop ecx
mov dword [0x441cc0], eax
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
cmp dword [eax + 8], ecx
je 0x414cbc
mov dword [ecx], ebx
add dword [eax + 4], 4
jmp 0x414cc8
lea edx, [ebp - 0x1c]
push edx
push ecx
mov ecx, eax
call fcn.0040c28d
push 0x414fe7
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x415093
mov dword [ebx + 0x7c], eax
call fcn.004193bf
mov dword [ebx + 0x80], eax
mov dword [esp], 0x41520f
call fcn.0041779f
mov dword [ebx + 0x84], eax
mov dword [esp], 0x441ca8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x414d11
push ecx
mov ecx, esi
call fcn.0041579c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415bad
leave
ret 0x28