Function at 0x414728
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
xor eax, eax
push esi
push edi
mov dword [ebp - 4], ebx
mov ecx, 0x437e00
inc eax
lock xadd dword [ecx], eax
inc eax
xor ecx, ecx
mov dword [ebp - 8], eax
mov esi, ecx
mov eax, dword [ebp + 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx], ecx
mov dword [ebx + 4], 0x412353
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
cmp dword [ebp + 0x20], ecx
je 0x41483c
push 0x348
call fcn.00416f82
pop ecx
test eax, eax
je 0x4147eb
push dword [ebp + 0x2c]
mov ecx, eax
push dword [ebx + 0x6c]
push dword [ebp + 0x20]
call fcn.0041555d
mov edi, eax
xor ecx, ecx
jmp 0x4147ef
xor ecx, ecx
mov edi, ecx
test edi, edi
je 0x41483c
mov esi, edi
cmp dword [edi + 0x28], ecx
jne 0x414824
mov ecx, edi
call fcn.004155b9
mov dword [ebp + 0x20], eax
test eax, eax
je 0x41483a
push eax
mov ecx, edi
call fcn.00415658
push dword [ebp + 0x20]
mov bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
test bl, bl
mov ebx, dword [ebp - 4]
je 0x41483c
mov esi, ecx
mov ecx, dword [ebx + 0xc]
cmp edi, ecx
je 0x41483a
test ecx, ecx
je 0x414837
push ecx
call fcn.0041549d
mov dword [ebx + 0xc], edi
xor ecx, ecx
cmp dword [ebx + 0xc], ecx
jne 0x41490b
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 0x4148a1
xor ecx, ecx
cmp dword [ebx + 0xa8], ecx
je 0x4148a1
lea eax, [ebp + 0x1c]
push eax
push ecx
push ebx
push 0x414b8b
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 0x4148c4
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 0x4148e1
push 0x4310c0
push eax
call edi
mov dword [ebx + 0x74], eax
lea edi, [ebx + 0x10]
cmp edi, dword [ebp + 8]
je 0x4148f7
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
mov ecx, edi
call fcn.0040ad85
cmp dword [edi + 0x14], 8
jb 0x4148ff
mov edi, dword [edi]
mov ecx, ebx
mov dword [ebx + 0x58], edi
call fcn.0041530a
xor ecx, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebx + 0xc0]
push eax
call fcn.004153e4
cmp dword [ebp - 8], 1
mov edi, 0x437de8
jne 0x414935
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x437e04], 0
jne 0x414969
push 0xc
call fcn.00416f82
pop ecx
test eax, eax
je 0x414962
xor ecx, ecx
mov dword [0x437e04], eax
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x414969
and dword [0x437e04], 0
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ebx
push eax
call fcn.0041543f
push 0x414c8b
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x414d27
mov dword [ebx + 0x7c], eax
call fcn.00419ac8
mov dword [ebx + 0x80], eax
mov dword [esp], 0x414ea3
call fcn.00416f37
pop ecx
push edi
mov dword [ebx + 0x84], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x4149b9
push ecx
mov ecx, esi
call fcn.0041549d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28