Function at 0x40eba0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41146c
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x416040]
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 dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, edi
mov edx, dword [ecx]
sub esi, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 4]
sub eax, edx
sar esi, 3
sar eax, 3
cmp eax, 0x1fffffff
je 0x40ee2b
mov ecx, dword [ecx + 8]
lea ebx, [eax + 1]
sub ecx, edx
mov dword [ebp - 0x38], ebx
sar ecx, 3
mov eax, 0x1fffffff
mov edx, ecx
shr edx, 1
sub eax, edx
cmp ecx, eax
ja 0x40ee26
lea eax, [edx + ecx]
mov ecx, ebx
cmp eax, ebx
cmovae ecx, eax
cmp ecx, 0x1fffffff
ja 0x40ee26
lea edx, [ecx*8]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], edx
test edx, edx
jne 0x40ec45
xor eax, eax
mov dword [ebp - 0x30], ecx
jmp 0x40ec7f
cmp edx, 0x1000
jb 0x40ec76
lea eax, [edx + 0x23]
cmp eax, edx
jbe 0x40ee26
push eax
call fcn.0040f7dc
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40ee11
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x40ec7f
push edx
call fcn.0040f7dc
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
lea eax, [eax + esi*8]
lea ebx, [eax + 8]
mov dword [ebp - 0x24], eax
push 0x1c
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0
call fcn.0040f7dc
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
push dword [ebp - 0x2c]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401860
mov dword [esi + 0x18], 0x404a40
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x24]
add eax, 4
mov byte [ebp - 4], 2
push eax
push 0
push esi
push 0x40f170
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [ebp - 0x24]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x40ee17
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp edi, ecx
jne 0x40ed2e
mov ebx, dword [ebp - 0x1c]
mov edi, ecx
mov esi, ebx
cmp edx, edi
je 0x40ed89
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 0x40ed07
mov eax, dword [ebp - 0x20]
jmp 0x40ed89
mov esi, dword [ebp - 0x1c]
cmp edx, edi
je 0x40ed5a
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 0x40ed35
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 4]
cmp edi, edx
je 0x40ed86
mov eax, dword [edi]
lea ebx, [ebx + 8]
mov ecx, dword [edi + 4]
mov dword [edi], 0
mov dword [edi + 4], 0
add edi, 8
mov dword [ebx - 8], eax
mov dword [ebx - 4], ecx
cmp edi, edx
jne 0x40ed61
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x40edd7
mov ecx, dword [eax + 4]
mov eax, edx
cmp eax, ecx
je 0x40eda5
cmp dword [eax + 4], 0
jne 0x40ee0b
add eax, 8
cmp eax, ecx
jne 0x40ed98
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 8]
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x40edca
mov esi, dword [edx - 4]
add ecx, 0x23
sub edx, esi
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x40ee11
mov edx, esi
push ecx
push edx
call fcn.0040fa62
mov eax, dword [ebp - 0x20]
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [eax], ebx
lea ecx, [ebx + ecx*8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x3c]
add ecx, ebx
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x24]
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.0040f7ce
mov esp, ebp
pop ebp
ret 0xc
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.00401760
call fcn.00401cc0
push ecx
mov ecx, dword [ebp - 0x34]
mov edx, ecx
call fcn.0040eac0
add esp, 4
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call fcn.0040e860
push 0
push 0
call sub.VCRUNTIME140.dll__CxxThrowException
int3