Function at 0x413a30
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546294
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5bf364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx + 4]
lea ebx, [ecx + 4]
test eax, eax
je 0x413a80
cmp dword [eax + 0x18], 3
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x3c
call fcn.0050f23a
mov edi, eax
mov dword [ebp - 0x20], 0
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [ebp - 4], 0
push 0x10
call fcn.0050f23a
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_struct_PivThreadPool::THREADPOOL_INFO_.0
mov dword [esi + 0xc], edi
mov byte [ebp - 4], 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
push 0x3c
push 0
call fcn.0050f209
add esp, 8
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov dword [ebx], edi
mov edi, dword [ebx + 4]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], eax
mov dword [ebx + 4], esi
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x413bab
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x413bab
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x413bab
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebx]
test eax, eax
je 0x413c22
mov ecx, 2
add eax, 0x18
xchg dword [eax], ecx
mov esi, dword [ebp - 0x14]
cmp dword [esi + 0x10], 0
je 0x413bd3
push 0
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x413bc4
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebx]
add edx, 8
xchg dword [edx], eax
mov eax, dword [ebx]
cmp dword [eax + 8], 0
je 0x413c1b
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov ecx, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [ebx]
cmp dword [ecx], 0
jne 0x413c38
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
xor ecx, ecx
add eax, 8
xchg dword [eax], ecx
mov ecx, ebx
call fcn.00413990
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0xc], 0
ja 0x413c50
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebx]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jg 0x413c5d
mov eax, dword [esi + 0xc]
inc eax
mov dword [ecx + 0x20], eax
xor edi, edi
mov ecx, dword [ebx]
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], 0
mov eax, dword [eax]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx]
mov eax, dword [eax]
mov dword [ecx + 4], eax
mov eax, dword [ebx]
cmp dword [eax + 0x20], edi
jbe 0x413cc2
push 0
push 0
push ebx
push 0x413720
push dword [eax + 4]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x413cba
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x2c]
test eax, eax
je 0x413cb0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp + 8]
mov eax, dword [ebx]
inc edi
cmp edi, dword [eax + 0x20]
jb 0x413c84
push 0x32
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x413d4d
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
nop dword [eax]
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
cmp dword [eax + 0x1c], ecx
jae 0x413d4d
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call esi
test eax, eax
je 0x413d3c
nop dword [eax]
cmp dword [ebp - 0x38], 0x12
je 0x413d3c
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call edi
test eax, eax
jle 0x413d3c
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call esi
test eax, eax
jne 0x413d00
mov eax, dword [ebx]
push 0x32
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x413ce0
mov eax, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [eax + 8]
call esi
mov eax, dword [ebx]
xor ecx, ecx
add eax, 8
xchg dword [eax], ecx
mov eax, dword [ebx]
cmp dword [eax + 0x1c], 0
jne 0x413d95
push dword [eax]
call esi
mov eax, dword [ebx]
xor ecx, ecx
add eax, 0x18
xchg dword [eax], ecx
mov ecx, ebx
call fcn.00413990
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, 3
add eax, 0x18
xchg dword [eax], ecx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc