Function at 0x45c64e
Capabilities:
Manipulate console buffer
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf0
mov esi, esp
mov dword [esi + 0xd8], ebp
lea eax, [esi + 0xe0]
mov dword [esi + 0x14], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x5037c0
xor ebx, ebx
mov edi, dword fs:[0]
inc ebx
mov dword [eax], edi
mov dword fs:[0], eax
mov edi, dword [edx + 8]
lea eax, [edi - 0x3b9aca00]
cmp eax, 3
cmovae eax, ebx
test eax, eax
je 0x45c6f5
cmp eax, 1
jne 0x45c74d
mov eax, dword [edx + 0x10]
mov dword [esi + 0x90], edi
mov dword [esi + 0x7c], 0x80000000
mov dword [esi + 0xe8], 5
mov dword [esi], eax
mov al, byte [edx + 0x14]
mov byte [esi + 0x5c], al
mov al, byte [edx + 0x1c]
mov byte [esi + 0x60], al
mov eax, dword [edx]
mov dword [esi + 0x70], eax
mov eax, dword [edx + 4]
mov dword [esi + 0x4c], eax
call fcn.0043c14b
test al, al
je 0x45c7b8
mov eax, dword [esi + 0x14]
mov byte [eax], 4
jmp 0x45cb7c
mov eax, dword [edx + 0xc]
mov edi, dword [edx + 0x10]
mov ebx, dword [edx + 0x14]
mov dword [esi], eax
call fcn.0043c14b
test al, al
jne 0x45c767
mov eax, dword [ebx + 8]
mov dword [esi + 0x4c], edi
mov dword [esi + 0x70], ebx
test eax, eax
mov dword [esi + 0x48], eax
je 0x45c8de
cmp byte [ebx + 0x10], 0
je 0x45c8de
mov eax, dword [esi]
mov ebx, dword [edi]
lea edi, [esi + 0x28]
mov ecx, edi
mov edx, dword [eax]
push ebx
push dword [eax + 4]
call fcn.004276a9
pop eax
pop ecx
cmp byte [edi], 4
jne 0x45cdd7
mov edi, dword [esi]
jmp 0x45ce18
mov eax, dword [edx + 0xc]
mov edi, dword [edx + 0x14]
mov ebx, dword [edx + 0x18]
mov dword [esi], eax
mov eax, dword [edx + 0x10]
mov dword [esi + 4], eax
call fcn.0043c14b
test al, al
je 0x45c772
mov eax, dword [esi + 0x14]
mov byte [eax], 4
jmp 0x45d0e3
mov eax, dword [ebx + 8]
mov dword [esi + 0x60], edi
mov dword [esi + 0x4c], ebx
test eax, eax
mov dword [esi + 0x50], eax
je 0x45c917
cmp byte [ebx + 0x10], 0
je 0x45c917
mov eax, dword [edi]
lea ecx, [esi + 0x28]
mov edi, eax
push eax
push dword [esi]
push ecx
mov eax, dword [esi + 4]
call dword [eax + 0x20]
add esp, 0xc
lea eax, [esi + 0x28]
cmp byte [eax], 4
je 0x45d09b
mov eax, dword [esi + 0x28]
jmp 0x45d097
mov eax, dword [esi]
lea ecx, [eax + 8]
mov dword [esi + 0x24], ecx
call fcn.0045c308
movzx eax, ax
mov dword [esi + 0x48], 0
cvtsi2sd xmm0, eax
lea eax, [esi + 0x64]
and dword [eax], 0
mov dword [eax + 4], 4
and dword [eax + 8], 0
mov eax, dword [esi]
movsd qword [esi + 0x50], xmm0
mov ecx, dword [eax + 0x64]
mov eax, dword [eax + 0x68]
lea eax, [ecx + eax*4]
mov dword [esi + 0x20], eax
cmp ecx, dword [esi + 0x20]
mov dword [esi + 0xe8], 6
je 0x45c872
mov eax, dword [esi]
mov dword [esi + 0xc], ecx
mov edi, dword [ecx]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x50]
mov byte [esi + 0xb], 1
push 0x5849ec
mov dword [esi + 4], edi
push edi
call fcn.0045d726
pop ecx
pop edx
cmp byte [eax + 0x14], 0
je 0x45c872
xor ecx, ecx
cmp dword [eax], 0x80000000
je 0x45c84d
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
movsd xmm0, qword [esi + 0x50]
mov byte [esi + 0xb], 1
call fcn.0045d741
mov ecx, eax
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esi + 0x18], ecx
add dword [eax + 0x78], ecx
lea ecx, [esi + 0x64]
mov byte [esi + 0xb], 1
call fcn.0045a855
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
add dword [esi + 0x48], eax
add ecx, 4
jmp 0x45c7f7
mov eax, dword [esi]
movsd xmm0, qword [esi + 0x50]
mov ecx, dword [eax + 0x70]
mov edx, dword [eax + 0x74]
mov byte [esi + 0xb], 1
call fcn.0045d741
cmp byte [esi + 0x60], 0
mov dword [esi + 4], eax
mov byte [esi + 0xb], 1
setne dl
test eax, eax
setne cl
or cl, dl
mov edx, dword [esi + 0x24]
movzx eax, cl
lea ecx, [esi + 0x28]
push dword [esi + 0x90]
push dword [esi + 0x4c]
push dword [esi + 0x70]
push eax
call fcn.0045c41c
add esp, 0x10
cmp dword [esi + 0x30], 0x3b9aca03
jne 0x45c9a9
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x68]
mov byte [eax], 4
call fcn.004f14b1
jmp 0x45cb7c
mov edi, dword [edi]
xor eax, eax
lea ecx, [esi + 0x28]
mov ebx, edi
sub ebx, 1
cmovb ebx, eax
mov eax, dword [esi]
mov dword [esi + 0x50], ebx
mov edx, dword [eax]
push ebx
push dword [eax + 4]
call fcn.004276a9
pop eax
pop ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x20], edi
cmp byte [eax], 4
jne 0x45cba5
mov ebx, edi
mov edi, dword [esi]
jmp 0x45cbb4
mov edi, dword [edi]
xor eax, eax
lea ebx, [esi + 0x28]
mov ecx, edi
sub ecx, 1
cmovb ecx, eax
mov eax, dword [esi + 4]
mov dword [esi + 0x18], ecx
mov eax, dword [eax + 0x20]
push ecx
push dword [esi]
push ebx
mov dword [esi + 0x24], eax
call eax
add esp, 0xc
cmp byte [ebx], 4
mov dword [esi + 0xc], edi
je 0x45c94e
mov eax, dword [esi + 0x28]
cmp al, 4
jne 0x45d0d8
mov ebx, edi
sub ebx, 1
jb 0x45cde1
push dword [esi]
lea eax, [esi + 0x28]
push eax
mov eax, dword [esi + 4]
call dword [eax + 0x38]
add esp, 8
cmp byte [esi + 0x28], 4
je 0x45c979
mov eax, dword [esi + 0x28]
cmp al, 4
jne 0x45d0d8
cmp edi, 1
mov edi, ebx
je 0x45c94e
push 1
push dword [esi]
lea eax, [esi + 0x28]
push eax
mov eax, dword [esi + 4]
call dword [eax + 0x24]
add esp, 0xc
cmp byte [esi + 0x28], 4
jne 0x45c99b
mov edi, ebx
jmp 0x45c94e
mov eax, dword [esi + 0x28]
mov edi, ebx
cmp al, 4
je 0x45c94e
jmp 0x45d0d8
movsd xmm1, qword [esi + 0x38]
lea ecx, [esi + 0xa0]
movsd xmm0, qword [esi + 0x40]
movsd xmm2, qword [esi + 0x28]
mov al, 1
mov dword [esi + 0xe8], 7
mov byte [esi + 0x1e], al
mov byte [esi + 0x1f], al
movsd qword [ecx + 0x10], xmm1
movsd xmm1, qword [esi + 0x30]
movsd qword [ecx + 0x18], xmm0
movsd qword [ecx], xmm2
movsd qword [ecx + 8], xmm1
call fcn.0045c517
mov dword [esi + 0x20], edx
mov ecx, dword [esi + 4]
mov dword [esi + 0x18], eax
mov dword [eax + 0xc], ecx
mov ecx, dword [esi]
mov dl, byte [ecx + 0x7d]
mov byte [eax + 0x11], dl
mov edx, dword [ecx + 0x70]
mov dword [esi + 0xc], edx
mov edx, dword [ecx + 0x74]
mov cl, 1
mov dword [esi + 0xe8], 8
mov byte [esi + 0x11], cl
mov byte [esi + 0x12], cl
mov byte [esi + 0x13], cl
mov ecx, eax
mov dword [esi + 4], edx
call fcn.00459442
mov edi, dword [esi + 0x18]
mov ebx, dword [esi + 4]
imul eax, dword [edi + 8], 0xc
imul ecx, ebx, 0xc
add eax, dword [edi + 4]
push ecx
push dword [esi + 0xc]
push eax
call fcn.00527800
add esp, 0xc
mov eax, dword [esi]
add dword [edi + 8], ebx
and dword [eax + 0x74], 0
mov ecx, dword [eax + 0x64]
mov eax, dword [eax + 0x68]
lea eax, [ecx + eax*4]
mov dword [esi + 0xc], eax
cmp ecx, dword [esi + 0xc]
je 0x45cab9
mov edx, dword [esi]
mov eax, dword [ecx]
mov dword [esi + 4], ecx
mov bl, 1
mov ecx, dword [edx + 0x4c]
mov edx, dword [edx + 0x50]
mov byte [esi + 0x11], bl
mov byte [esi + 0x12], bl
mov byte [esi + 0x13], bl
push 0x5849fc
push eax
call fcn.0045d726
mov ecx, dword [esi + 4]
add esp, 8
add ecx, 4
cmp dword [eax], 0x80000000
je 0x45ca5b
mov edx, dword [eax + 4]
mov dword [esi + 4], ecx
mov eax, dword [eax + 8]
mov ecx, dword [esi + 0x18]
mov bl, 1
mov byte [esi + 0x11], bl
mov byte [esi + 0x12], bl
mov byte [esi + 0x13], bl
push eax
call fcn.0045d7d7
mov ecx, dword [esi + 4]
add esp, 4
jmp 0x45ca5b
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov al, 1
mov byte [esi + 0x11], 0
mov byte [esi + 0x12], al
mov byte [esi + 0x13], al
call fcn.0045c648
xor eax, eax
lea ecx, [esi + 0x88]
lea edx, [esi + 0xa0]
mov byte [esi + 0x13], 1
mov byte [esi + 0x11], al
mov byte [esi + 0x12], al
call fcn.0045c64e
mov ecx, dword [esi + 0x68]
mov edi, dword [esi + 0x6c]
mov eax, dword [esi + 0x64]
lea edx, [ecx + edi*4]
shl edi, 2
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
mov dword [esi + 4], ecx
mov dword [esi + 0x50], edx
mov dword [esi + 0x34], edx
test edi, edi
je 0x45cb37
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x24]
add edi, 0xfffffffc
mov dword [esi + 0xc], edi
mov edx, dword [eax]
add eax, 4
mov dword [esi + 0xe8], 9
mov dword [esi + 4], eax
call fcn.0045a68f
mov edi, dword [esi + 0xc]
jmp 0x45cb0b
mov eax, dword [esi + 0x50]
lea ecx, [esi + 0x28]
mov dword [ecx + 8], eax
call fcn.0045d897
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
cmp eax, 3
je 0x45cb53
test eax, eax
jne 0x45cb63
mov edx, dword [esi]
xor ecx, ecx
mov eax, dword [edx + 0xc]
sub eax, dword [esi + 0x48]
cmovb eax, ecx
mov dword [edx + 0xc], eax
movsd xmm0, qword [esi + 0x88]
mov eax, dword [esi + 0x14]
mov dword [esi + 0xe8], 4
movsd qword [eax], xmm0
lea ecx, [esi + 0x7c]
mov dword [esi + 0xe8], 4
call fcn.0045a41a
movzx edx, byte [esi + 0x5c]
mov ecx, dword [esi]
or dword [esi + 0xe8], 0xffffffff
call fcn.004624c4
jmp 0x45d0e3
mov eax, dword [esi + 0x28]
mov ebx, edi
mov edi, dword [esi]
cmp al, 4
jne 0x45d0d8
mov eax, ebx
sub eax, 1
mov dword [esi + 4], eax
jb 0x45cdaf
mov al, byte [edi + 4]
or dword [esi + 0xe8], 0xffffffff
test al, al
je 0x45cc04
mov edx, dword [edi]
lea edi, [esi + 0xa0]
mov ecx, edi
push 5
push str._re_2KC:Usersdanya.cargo_registry_srcindex.crates.io_6f17d22bba15001fconsole_0.15.7_src_term.rs
call fcn.00426f53
pop eax
pop ecx
cmp byte [edi], 4
je 0x45ccaf
mov eax, dword [esi + 0xa0]
cmp al, 4
je 0x45ccaf
jmp 0x45d333
mov ecx, dword [edi]
call fcn.00426e14
lea edi, [esi + 0x28]
mov edx, eax
mov ecx, edi
call fcn.00427652
cmp dword [edi], 0
je 0x45ccaf
movzx eax, word [esi + 0x3e]
lea edi, [esi + 0x9c]
movzx edx, word [esi + 0x36]
and word [esi + 0x88], 0
mov ecx, dword [esi + 0x2c]
and dword [edi], 0
sub ax, word [esi + 0x3a]
mov word [esi + 0xc], dx
mov word [esi + 0x8a], dx
lea edx, [esi + 0x9c]
movsx edi, ax
movzx eax, word [esi + 0x38]
mov dword [esi + 0x24], edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x88]
push edx
push eax
push edi
push 0x20
push ecx
mov edi, ecx
call dword [sym.imp.kernel32.dll_FillConsoleOutputCharacterA]
movzx eax, word [esi + 0xc]
and word [esi + 0x7c], 0
lea ecx, [esi + 0x9c]
mov word [esi + 0x7e], ax
mov eax, dword [esi + 0x7c]
push ecx
push eax
push dword [esi + 0x24]
push dword [esi + 0x18]
push edi
call dword [sym.imp.kernel32.dll_FillConsoleOutputAttribute]
movzx eax, word [esi + 0xc]
and word [esi + 0x64], 0
mov word [esi + 0x66], ax
mov eax, dword [esi + 0x64]
push eax
push edi
call dword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
cmp ebx, 1
mov ebx, dword [esi + 4]
mov edi, dword [esi]
je 0x45cbb4
cmp byte [edi + 4], 0
je 0x45cd4f
xor eax, eax
mov ebx, edi
lea edx, [esi + 0x28]
lea ecx, [esi + 0x88]
lea edi, [esi + 0x64]
inc eax
mov dword [edi], ecx
mov dword [edi + 4], fcn.00428e70
mov dword [edx], 0x53dd40
mov dword [ecx], eax
push 2
pop ecx
mov dword [edx + 4], ecx
and dword [edx + 0x10], 0
mov dword [edx + 8], edi
lea edi, [esi + 0xa0]
mov dword [edx + 0xc], eax
mov ecx, edi
call fcn.00407795
mov eax, dword [edi + 4]
mov edi, dword [edi + 8]
mov edx, dword [ebx]
push 2
pop ecx
mov dword [esi + 0xe8], ecx
lea ecx, [esi + 0x7c]
push edi
mov dword [esi + 0xc], eax
push eax
call fcn.00426f53
pop eax
pop ecx
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0xc]
call fcn.00459070
cmp byte [esi + 0x7c], 4
mov edi, dword [esi]
je 0x45cd94
mov eax, dword [esi + 0x7c]
mov ebx, dword [esi + 4]
cmp al, 4
je 0x45cbb4
jmp 0x45d382
mov ecx, dword [edi]
call fcn.00426e14
lea edi, [esi + 0x28]
mov edx, eax
mov ecx, edi
call fcn.00427652
cmp dword [edi], 0
je 0x45cd92
mov ebx, dword [esi]
movsx eax, word [esi + 0x36]
lea edi, [esi + 0xa0]
mov ecx, edi
mov edx, dword [ebx]
inc eax
push eax
push dword [ebx + 4]
call fcn.004277b9
pop eax
pop ecx
cmp byte [edi], 4
je 0x45cd92
mov eax, dword [esi + 0xa0]
cmp al, 4
jne 0x45cd9c
mov edi, dword [esi]
mov ebx, dword [esi + 4]
jmp 0x45cbb4
mov ecx, dword [esi + 0xa4]
mov edi, dword [esi]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], ecx
jmp 0x45cd3c
mov edx, dword [edi]
mov eax, dword [edi + 4]
or dword [esi + 0xe8], 0xffffffff
lea edi, [esi + 0x28]
mov ecx, edi
push dword [esi + 0x50]
push eax
call fcn.004276a9
pop eax
pop ecx
cmp byte [edi], 4
jne 0x45ce05
mov edi, dword [esi]
mov ebx, dword [esi + 0x20]
jmp 0x45ce18
mov eax, dword [esi + 0x28]
mov edi, dword [esi]
mov edx, dword [esi + 0x14]
jmp 0x45ce10
push dword [esi + 0x18]
push dword [esi]
lea eax, [esi + 0x28]
push eax
call dword [esi + 0x24]
add esp, 0xc
cmp byte [esi + 0x28], 4
mov ebx, dword [esi + 0x4c]
jne 0x45d091
mov edi, dword [esi + 0xc]
jmp 0x45d09b
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x14]
mov edi, dword [esi]
mov ebx, dword [esi + 0x20]
cmp al, 4
jne 0x45cffd
sub ebx, dword [esi + 0x48]
mov eax, 0
jbe 0x45ce5d
mov eax, dword [esi + 0x70]
cmp byte [eax + 0x11], 0
mov eax, 0
je 0x45ce5d
lea edi, [esi + 0x28]
mov dword [esi + 0x20], ebx
sub ebx, 1
jb 0x45ce58
mov eax, dword [esi]
mov ecx, edi
mov edx, dword [eax]
call fcn.00427510
cmp byte [esi + 0x28], 4
je 0x45ce36
mov eax, dword [esi + 0x28]
cmp al, 4
je 0x45ce36
jmp 0x45d0d8
mov eax, dword [esi + 0x20]
mov edi, dword [esi]
mov ecx, dword [edi]
mov dword [esi + 0x60], eax
call fcn.0045d6d3
mov ecx, dword [edi]
movzx eax, ax
mov dword [esi + 0x50], eax
call fcn.0045d6d3
mov eax, dword [esi + 0x70]
movzx ecx, dx
mov edx, dword [esi + 0x48]
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
cvtsi2sd xmm0, ecx
mov dword [esi + 0x5c], ecx
movsd qword [esi + 0x90], xmm0
mov edi, dword [eax + 4]
imul ecx, edx, 0xc
dec edx
mov dword [esi + 0x48], edx
test ecx, ecx
mov dword [esi + 0x24], ecx
je 0x45cfb9
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
call fcn.004278ba
cmp dword [edi + 8], 0
mov ebx, 1
mov dword [esi + 0x20], eax
je 0x45cf37
movd xmm0, eax
por xmm0, xmmword [0x53a570]
subsd xmm0, qword [0x53a500]
divsd xmm0, qword [esi + 0x90]
sub esp, 8
movsd qword [esp], xmm0
call fcn.0052b180
pop eax
pop ecx
fstp qword [esi + 0xc8]
xorpd xmm1, xmm1
movsd xmm0, qword [esi + 0xc8]
maxsd xmm0, xmm1
minsd xmm0, qword [0x53a580]
cvttsd2si eax, xmm0
subsd xmm0, qword [0x53a588]
mov ecx, eax
sar ecx, 0x1f
cvttsd2si ebx, xmm0
and ebx, ecx
or ebx, eax
cmp ebx, 1
adc ebx, 0
add ebx, dword [esi + 0xc]
cmp ebx, dword [esi + 0x50]
ja 0x45cfb9
cmp dword [esi + 4], 0
je 0x45cf62
mov eax, dword [esi]
lea ecx, [esi + 0x28]
mov edx, dword [eax]
call fcn.00427510
cmp byte [esi + 0x28], 4
je 0x45cf62
mov eax, dword [esi + 0x28]
cmp al, 4
jne 0x45d0d8
mov eax, dword [esi]
lea ecx, [esi + 0x28]
mov edx, dword [eax]
push dword [edi + 8]
push dword [edi + 4]
call fcn.00426f53
pop eax
pop ecx
cmp byte [esi + 0x28], 4
je 0x45cf87
mov eax, dword [esi + 0x28]
cmp al, 4
jne 0x45d0d8
mov eax, dword [esi + 0x5c]
add edi, 0xc
mov edx, dword [esi + 4]
mov ecx, 0
mov dword [esi + 0xc], ebx
sub eax, dword [esi + 0x20]
cmovb eax, ecx
cmp dword [esi + 0x48], edx
mov ecx, dword [esi + 0x18]
cmove ecx, eax
inc edx
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 0x24]
mov dword [esi + 4], edx
add ecx, 0xfffffff4
jmp 0x45ceab
lea edi, [esi + 0x28]
push 0x20
pop edx
mov ecx, edi
push dword [esi + 0x18]
call fcn.00421240
pop eax
mov ecx, dword [esi]
mov eax, dword [edi + 8]
mov ebx, dword [edi + 4]
mov edx, dword [ecx]
and dword [esi + 0xe8], 0
lea ecx, [esi + 0xa0]
push eax
mov dword [esi + 4], ebx
push ebx
call fcn.00426f53
pop eax
pop ecx
cmp byte [esi + 0xa0], 4
mov edx, dword [esi + 0x14]
jne 0x45d005
mov edi, dword [esi]
jmp 0x45d015
mov ecx, dword [esi + 0x2c]
jmp 0x45d0de
mov eax, dword [esi + 0xa0]
mov edi, dword [esi]
cmp al, 4
jne 0x45d305
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 4]
call fcn.00459070
mov edx, dword [edi]
cmp dword [edx + 8], 0
je 0x45d36c
or dword [esi + 0xe8], 0xffffffff
lea edi, [esi + 0x28]
add edx, 0xc
mov ecx, edi
call fcn.00426308
mov ecx, edi
mov edx, 0x53de14
call fcn.00427476
mov ecx, eax
mov eax, dword [eax + 0x10]
test eax, eax
je 0x45d35d
mov dword [esi + 4], ecx
mov edi, dword [ecx + 0xc]
mov ecx, dword [esi]
mov byte [esi + 0x18], dl
mov edx, dword [ecx]
mov dword [esi + 0xe8], 1
lea ecx, [esi + 0x28]
push eax
push edi
call fcn.00427006
pop eax
pop ecx
cmp byte [esi + 0x28], 4
jne 0x45d34b
mov ecx, dword [esi + 4]
mov dl, byte [esi + 0x18]
jmp 0x45d359
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0xc]
cmp al, 4
jne 0x45d0d8
sub edi, dword [esi + 0x50]
mov eax, 0
jbe 0x45d0fd
cmp byte [ebx + 0x11], 0
je 0x45d0fd
mov ebx, edi
lea edi, [esi + 0x28]
mov dword [esi + 0xc], ebx
sub ebx, 1
jb 0x45d0f7
push 0
push 0x5b8dd0
push dword [esi]
push edi
mov eax, dword [esi + 4]
call dword [eax + 0x30]
add esp, 0x10
cmp byte [esi + 0x28], 4
je 0x45d0b3
mov eax, dword [esi + 0x28]
cmp al, 4
je 0x45d0b3
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x14]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [esi + 0xe0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 0x4c]
mov dword [esi + 0xc4], eax
push dword [esi]
mov edi, dword [esi + 4]
call dword [edi + 0x1c]
add esp, 4
movzx eax, ax
mov dword [esi + 0x5c], eax
push dword [esi]
call dword [edi + 0x18]
add esp, 4
mov edx, dword [esi + 0x50]
mov ebx, dword [ebx + 4]
movzx eax, ax
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x24], 0
cvtsi2sd xmm0, eax
mov dword [esi + 0x90], eax
movsd qword [esi + 0x70], xmm0
imul ecx, edx, 0xc
dec edx
mov dword [esi + 0x50], edx
test ecx, ecx
mov dword [esi + 0x20], ecx
je 0x45d26d
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
call fcn.004278ba
cmp dword [ebx + 8], 0
mov edi, 1
mov dword [esi + 0x48], eax
je 0x45d1d9
movd xmm0, eax
por xmm0, xmmword [0x53a570]
subsd xmm0, qword [0x53a500]
divsd xmm0, qword [esi + 0x70]
sub esp, 8
movsd qword [esp], xmm0
call fcn.0052b180
pop eax
pop ecx
fstp qword [esi + 0xd0]
xorpd xmm1, xmm1
movsd xmm0, qword [esi + 0xd0]
maxsd xmm0, xmm1
minsd xmm0, qword [0x53a580]
cvttsd2si eax, xmm0
subsd xmm0, qword [0x53a588]
mov ecx, eax
sar ecx, 0x1f
cvttsd2si edi, xmm0
and edi, ecx
or edi, eax
cmp edi, 1
adc edi, 0
add edi, dword [esi + 0x18]
cmp edi, dword [esi + 0x5c]
ja 0x45d26d
cmp dword [esi + 0xc], 0
je 0x45d212
push 0
push 0x5b8dd0
push dword [esi]
lea eax, [esi + 0x28]
push eax
mov eax, dword [esi + 4]
call dword [eax + 0x30]
add esp, 0x10
cmp byte [esi + 0x28], 4
je 0x45d212
mov eax, dword [esi + 0x28]
cmp al, 4
jne 0x45d0d8
push dword [ebx + 8]
push dword [ebx + 4]
push dword [esi]
lea eax, [esi + 0x28]
push eax
mov eax, dword [esi + 4]
call dword [eax + 0x34]
add esp, 0x10
cmp byte [esi + 0x28], 4
je 0x45d238
mov eax, dword [esi + 0x28]
cmp al, 4
jne 0x45d0d8
mov eax, dword [esi + 0x90]
add ebx, 0xc
mov edx, dword [esi + 0xc]
mov ecx, 0
mov dword [esi + 0x18], edi
sub eax, dword [esi + 0x48]
cmovb eax, ecx
cmp dword [esi + 0x50], edx
mov ecx, dword [esi + 0x24]
cmove ecx, eax
inc edx
mov dword [esi + 0x24], ecx
mov ecx, dword [esi + 0x20]
mov dword [esi + 0xc], edx
add ecx, 0xfffffff4
jmp 0x45d150
lea edi, [esi + 0x28]
push 0x20
pop edx
mov ecx, edi
push dword [esi + 0x24]
call fcn.00421240
pop eax
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
mov dword [esi + 0xe8], 3
lea ecx, [esi + 0xa0]
push eax
mov dword [esi + 0xc], edx
push edx
push dword [esi]
push ecx
mov eax, dword [esi + 4]
call dword [eax + 0x34]
add esp, 0x10
cmp byte [esi + 0xa0], 4
mov edi, dword [esi + 0x14]
mov ebx, dword [esi + 0x4c]
je 0x45d2be
mov eax, dword [esi + 0xa0]
cmp al, 4
jne 0x45d318
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0xc]
call fcn.00459070
or dword [esi + 0xe8], 0xffffffff
push dword [esi]
lea eax, [esi + 0x28]
push eax
mov eax, dword [esi + 4]
call dword [eax + 0x3c]
add esp, 8
cmp byte [esi + 0x28], 4
je 0x45d2ec
mov eax, dword [esi + 0x28]
cmp al, 4
jne 0x45d33e
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x60]
add ecx, dword [esi + 0xc4]
sub ecx, dword [ebx + 0xc]
mov dword [eax], ecx
mov byte [edi], 4
jmp 0x45d0e3
mov ecx, dword [esi + 0xa4]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 4]
jmp 0x45d329
mov ecx, dword [esi + 0xa4]
mov edx, dword [esi + 0xc]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [esi + 0x28]
call fcn.00459070
jmp 0x45d0e3
mov ecx, dword [esi + 0xa4]
jmp 0x45d0db
mov ecx, dword [esi + 0x2c]
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x45d0e3
mov ebx, dword [esi + 0x28]
mov ecx, dword [esi + 4]
mov dl, byte [esi + 0x18]
cmp bl, 4
jne 0x45d38d
and dword [ecx + 0x10], 0
or dword [esi + 0xe8], 0xffffffff
movzx edx, dl
call fcn.00427459
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x70]
mov edx, dword [esi + 0x4c]
add ecx, dword [esi + 0x60]
sub ecx, dword [eax + 0xc]
mov dword [edx], ecx
jmp 0x45c767
mov ecx, dword [esi + 0x80]
jmp 0x45d0db
mov edi, dword [esi + 0x2c]
or dword [esi + 0xe8], 0xffffffff
movzx edx, dl
call fcn.00427459
cmp bl, 4
je 0x45d36c
mov eax, dword [esi + 0x14]
mov dword [eax], ebx
mov dword [eax + 4], edi
jmp 0x45d0e3