Function at 0x4059b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4252ce
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x431220]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x4331e8
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebx], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 8], edx
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 + 0xc], esi
mov eax, dword [ebp + 0x28]
mov dword [ebp - 4], esi
test eax, eax
jne 0x405b1b
mov edi, dword [ebp + 0x20]
test edi, edi
je 0x405ae2
push 0x348
call fcn.0040be7b
add esp, 4
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x405b11
push dword [ebp + 0x2c]
mov ecx, eax
push dword [ebx + 0x6c]
push edi
call fcn.00406500
jmp 0x405b13
mov edi, dword [ebp + 0x24]
test edi, edi
je 0x405b5a
push 0x348
call fcn.0040be7b
add esp, 4
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x405b11
push dword [ebp + 0x2c]
mov ecx, eax
push dword [ebx + 0x6c]
push edi
call fcn.00406470
jmp 0x405b13
xor eax, eax
mov byte [ebp - 4], 0
test eax, eax
je 0x405b5a
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x405b5a
mov ecx, esi
call fcn.004066e0
test al, al
je 0x405b5a
mov edi, dword [ebx + 0xc]
mov eax, esi
xor esi, esi
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0xc], esi
cmp eax, edi
je 0x405b5a
test edi, edi
je 0x405b57
mov ecx, edi
call fcn.004065c0
push edi
call fcn.0040be2b
mov eax, dword [ebp + 0x2c]
add esp, 4
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
jne 0x405c2b
lea eax, [ebx + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
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 0x405bc3
cmp dword [ebx + 0xa8], 0
je 0x405bc3
lea eax, [ebp + 0x14]
push eax
push 0
push ebx
push 0x405510
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 0x405be6
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 0x405c03
push str.UuidCreate
push eax
call edi
mov dword [ebx + 0x74], eax
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x10]
cmp edi, eax
je 0x405c19
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00402060
cmp dword [edi + 0x14], 8
jb 0x405c21
mov edi, dword [edi]
mov ecx, ebx
mov dword [ebx + 0x58], edi
call fcn.00405e10
mov eax, dword [ebx + 0xc0]
lea ecx, [ebp - 0x20]
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebx + 0xc0]
movlpd qword [ebp - 0x20], xmm0
push dword [eax + 4]
mov dword [ebp + 0x2c], eax
push eax
call fcn.00405020
mov edx, eax
mov ecx, 0xaaaaaa9
mov eax, dword [ebx + 0xc4]
sub ecx, eax
cmp ecx, 1
jae 0x405c74
push str.list_T__too_long
call fcn.0040ad8a
inc eax
cmp dword [ebp - 0x10], 1
mov dword [ebx + 0xc4], eax
mov eax, dword [ebp + 0x2c]
mov dword [eax + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
jne 0x405c97
push 0x4331d0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp dword [ebp + 0x18], 0
je 0x405d42
push 0x4331d0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4331c8]
test eax, eax
jne 0x405ce0
push 0xc
call fcn.0040be7b
add esp, 4
test eax, eax
je 0x405cd9
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x405cdb
xor eax, eax
mov dword [0x4331c8], eax
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push ecx
mov ecx, eax
call fcn.00406400
mov eax, dword [ebp + 0x18]
test al, 1
je 0x405d06
push 0x4055d0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [ebx + 0x7c], eax
mov eax, dword [ebp + 0x18]
test al, 2
je 0x405d20
push 0x4056e0
call fcn.0040da48
mov dword [ebx + 0x80], eax
add esp, 4
mov eax, dword [ebp + 0x18]
test al, 4
je 0x405d37
push 0x405870
call fcn.0040be06
add esp, 4
mov dword [ebx + 0x84], eax
push 0x4331d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x405d5d
mov ecx, esi
call fcn.004065c0
push esi
call fcn.0040be2b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28