Function at 0x413ae0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ff7d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x43f00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x20], edi
mov esi, dword [ebp + 8]
mov eax, esi
mov edx, dword [edi]
sub eax, edx
sar eax, 3
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 4]
sub eax, edx
sar eax, 3
cmp eax, 0x1fffffff
je 0x413d63
mov ecx, dword [edi + 8]
lea ebx, [eax + 1]
sub ecx, edx
mov dword [ebp - 0x30], ebx
sar ecx, 3
mov eax, 0x1fffffff
mov edx, ecx
shr edx, 1
sub eax, edx
cmp ecx, eax
ja 0x413d5e
lea eax, [edx + ecx]
mov ecx, ebx
cmp eax, ebx
cmovae ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, 0x1fffffff
ja 0x413d5e
lea edx, [ecx*8]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x34], edx
cmp edx, 0x1000
jb 0x413bab
lea eax, [edx + 0x23]
cmp eax, edx
jbe 0x413d5e
push eax
call fcn.0042cd56
add esp, 4
test eax, eax
je 0x413d49
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x413bc7
test edx, edx
je 0x413bc2
push edx
call fcn.0042cd56
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
jmp 0x413bc7
xor ebx, ebx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x2c]
push 8
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0
lea eax, [ebx + eax*8]
mov dword [ebp - 0x1c], eax
add eax, 8
mov dword [ebp - 0x38], eax
call fcn.0042cd56
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], eax
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x1c]
add eax, 4
mov byte [ebp - 4], 1
push eax
push 0
push dword [ebp - 0x2c]
push 0x41a430
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [ebp - 0x1c]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x413d4f
mov edx, dword [ebp - 0x20]
mov edi, dword [edi + 4]
mov edx, dword [edx]
cmp esi, edi
jne 0x413c66
mov esi, ebx
cmp edx, edi
je 0x413cc4
mov eax, dword [edx]
lea esi, [esi + 8]
mov ecx, dword [edx + 4]
mov dword [edx], 0
mov dword [edx + 4], 0
add edx, 8
mov dword [esi - 8], eax
mov dword [esi - 4], ecx
cmp edx, edi
jne 0x413c42
jmp 0x413cc4
cmp edx, esi
je 0x413c9b
mov edi, ebx
nop dword [eax]
mov eax, dword [edx]
lea edi, [edi + 8]
mov ecx, dword [edx + 4]
mov dword [edx], 0
mov dword [edx + 4], 0
add edx, 8
mov dword [edi - 8], eax
mov dword [edi - 4], ecx
cmp edx, esi
jne 0x413c70
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [eax + 4]
cmp esi, edi
je 0x413cc4
lea edx, [ecx + 8]
sub edx, esi
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + edx], eax
mov dword [esi + edx + 4], ecx
add esi, 8
cmp esi, edi
jne 0x413ca4
mov esi, dword [ebp - 0x20]
mov edx, dword [esi]
test edx, edx
je 0x413d0f
mov ecx, dword [esi + 4]
mov eax, edx
cmp eax, ecx
je 0x413ce3
cmp dword [eax + 4], 0
jne 0x413d43
add eax, 8
cmp eax, ecx
jne 0x413cd6
mov ecx, dword [esi + 8]
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x413d05
mov edi, dword [edx - 4]
add ecx, 0x23
sub edx, edi
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x413d49
mov edx, edi
push ecx
push edx
call fcn.0042d0f1
add esp, 8
mov eax, dword [ebp - 0x30]
mov dword [esi], ebx
lea ecx, [ebx + eax*8]
mov eax, dword [ebp - 0x1c]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x34]
add ecx, ebx
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042c87e
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 6
mov dword [ecx + 4], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
call fcn.00404df0
call fcn.00416e90
mov eax, dword [ebp - 0x38]
push eax
push eax
call fcn.00412cf0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.00412d20
push 0
push 0
call sub.VCRUNTIME140.dll__CxxThrowException
int3