Function at 0x100e6c40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ad2bd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10242040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x18], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov edx, dword [eax]
sub ecx, edx
sar ecx, 3
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 4]
sub ecx, edx
sar ecx, 3
cmp ecx, 0x1fffffff
je 0x100e6ec5
lea edi, [ecx + 1]
mov ecx, dword [eax + 8]
sub ecx, edx
mov dword [ebp - 0x28], edi
sar ecx, 3
mov eax, 0x1fffffff
mov edx, ecx
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x100e6cca
mov eax, 0xfffffff8
mov dword [ebp - 0x14], 0x1fffffff
mov ecx, eax
mov dword [ebp - 0x20], eax
call fcn.10018be0
mov edi, eax
jmp 0x100e6d15
lea eax, [edx + ecx]
mov ebx, edi
cmp eax, edi
cmovae ebx, eax
cmp ebx, 0x1fffffff
ja 0x100e6eca
lea eax, [ebx*8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], eax
cmp eax, 0x1000
jb 0x100e6cff
mov ecx, eax
call fcn.10018be0
mov edi, eax
jmp 0x100e6d15
test eax, eax
je 0x100e6d10
push eax
call fcn.1014ba5d
add esp, 4
mov edi, eax
jmp 0x100e6d12
xor edi, edi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x1c]
push 8
mov dword [ebp + 8], edi
mov dword [ebp - 4], 0
lea eax, [edi + eax*8]
lea ebx, [eax + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], ebx
call fcn.1014ba5d
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp + 0xc], 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 - 0x24]
push 0x100e74d0
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 0x100e6e94
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp esi, ecx
jne 0x100e6db6
mov ebx, ecx
mov esi, edi
cmp edx, ebx
je 0x100e6e13
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, ebx
jne 0x100e6d92
jmp 0x100e6e13
cmp edx, esi
je 0x100e6de5
nop word [eax + 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 0x100e6dc0
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 4]
cmp esi, edx
je 0x100e6e10
sub ebx, esi
nop
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + ebx], eax
mov dword [esi + ebx + 4], ecx
add esi, 8
cmp esi, edx
jne 0x100e6df0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebx]
test edx, edx
je 0x100e6e5e
mov ecx, dword [ebx + 4]
mov eax, edx
cmp eax, ecx
je 0x100e6e32
cmp dword [eax + 4], 0
jne 0x100e6e88
add eax, 8
cmp eax, ecx
jne 0x100e6e25
mov ecx, dword [ebx + 8]
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x100e6e54
mov esi, dword [edx - 4]
add ecx, 0x23
sub edx, esi
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x100e6e8e
mov edx, esi
push ecx
push edx
call fcn.1014bdac
add esp, 8
mov eax, dword [ebp - 0x28]
mov dword [ebx], edi
lea ecx, [edi + eax*8]
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x20]
add ecx, edi
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
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_]
push ecx
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
call fcn.1004db70
add esp, 4
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.1004d940
push 0
push 0
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.100189e0
call fcn.100152d0
int3