Function at 0x4de030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54806d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x570400]
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 eax, ecx
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
mov ebx, esi
mov edx, dword [eax]
sub ebx, edx
mov ecx, dword [eax + 4]
sub ecx, edx
sar ebx, 3
sar ecx, 3
cmp ecx, 0x1fffffff
je 0x4de2ad
lea edi, [ecx + 1]
mov ecx, dword [eax + 8]
sub ecx, edx
mov dword [ebp - 0x34], edi
sar ecx, 3
mov eax, 0x1fffffff
mov edx, ecx
shr edx, 1
sub eax, edx
cmp ecx, eax
ja 0x4de2a8
lea eax, [edx + ecx]
mov ecx, edi
cmp eax, edi
cmovae ecx, eax
cmp ecx, 0x1fffffff
ja 0x4de2a8
lea edx, [ecx*8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x38], edx
test edx, edx
jne 0x4de0d5
xor edi, edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edi
jmp 0x4de115
cmp edx, 0x1000
jb 0x4de107
lea eax, [edx + 0x23]
cmp eax, edx
jbe 0x4de2a8
push eax
call fcn.00545169
add esp, 4
test eax, eax
je 0x4de293
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [ebp - 0x1c], edi
mov dword [edi - 4], eax
jmp 0x4de115
push edx
call fcn.00545169
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, eax
lea eax, [edi + ebx*8]
mov dword [ebp - 4], 0
lea ebx, [eax + 8]
mov dword [ebp - 0x28], eax
push 4
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.00545169
mov ecx, dword [ebp + 0xc]
mov edx, eax
add esp, 4
mov dword [ebp - 0x18], edx
mov ecx, dword [ecx]
mov dword [edx], ecx
mov eax, dword [ebp - 0x28]
add eax, 4
mov byte [ebp - 4], 1
push eax
push 0
push edx
push 0x4de390
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [ebp - 0x28]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x4de299
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp esi, ecx
jne 0x4de1aa
mov ebx, ecx
mov esi, edi
cmp edx, ebx
je 0x4de209
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 0x4de186
jmp 0x4de209
mov dword [ebp - 0x1c], edi
cmp edx, esi
je 0x4de1e0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [edx], 0
mov dword [edx + 4], 0
add edx, 8
mov dword [ebx], eax
mov eax, ebx
mov ebx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
add eax, 8
mov dword [ebp - 0x1c], eax
cmp edx, esi
jne 0x4de1b1
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 4]
cmp esi, edx
je 0x4de209
mov eax, dword [esi]
lea ebx, [ebx + 8]
mov ecx, dword [esi + 4]
mov dword [esi], 0
mov dword [esi + 4], 0
add esi, 8
mov dword [ebx - 8], eax
mov dword [ebx - 4], ecx
cmp esi, edx
jne 0x4de1e7
mov esi, dword [ebp - 0x24]
mov edx, dword [esi]
test edx, edx
je 0x4de259
mov ecx, dword [esi + 4]
mov eax, edx
cmp eax, ecx
je 0x4de22d
nop dword [eax + eax]
cmp dword [eax + 4], 0
jne 0x4de28d
add eax, 8
cmp eax, ecx
jne 0x4de220
mov ecx, dword [esi + 8]
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x4de24f
mov ebx, dword [edx - 4]
add ecx, 0x23
sub edx, ebx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x4de293
mov edx, ebx
push ecx
push edx
call fcn.005453ef
add esp, 8
mov eax, dword [ebp - 0x34]
mov dword [esi], edi
lea ecx, [edi + eax*8]
mov eax, dword [ebp - 0x28]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x38]
add ecx, edi
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.0054507b
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.00401180
call fcn.00403410
push ecx
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
call fcn.004ddd30
add esp, 4
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call fcn.004dd710
push 0
push 0
call sub.VCRUNTIME140.dll__CxxThrowException
int3