Function at 0x45d11c
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], 0x5042a0
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 0x45d1c3
cmp eax, 1
jne 0x45d21b
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.0043cc1f
test al, al
je 0x45d286
mov eax, dword [esi + 0x14]
mov byte [eax], 4
jmp 0x45d64a
mov eax, dword [edx + 0xc]
mov edi, dword [edx + 0x10]
mov ebx, dword [edx + 0x14]
mov dword [esi], eax
call fcn.0043cc1f
test al, al
jne 0x45d235
mov eax, dword [ebx + 8]
mov dword [esi + 0x4c], edi
mov dword [esi + 0x70], ebx
test eax, eax
mov dword [esi + 0x48], eax
je 0x45d3ac
cmp byte [ebx + 0x10], 0
je 0x45d3ac
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.00428189
pop eax
pop ecx
cmp byte [edi], 4
jne 0x45d8a5
mov edi, dword [esi]
jmp 0x45d8e6
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.0043cc1f
test al, al
je 0x45d240
mov eax, dword [esi + 0x14]
mov byte [eax], 4
jmp 0x45dbb1
mov eax, dword [ebx + 8]
mov dword [esi + 0x60], edi
mov dword [esi + 0x4c], ebx
test eax, eax
mov dword [esi + 0x50], eax
je 0x45d3e5
cmp byte [ebx + 0x10], 0
je 0x45d3e5
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 0x45db69
mov eax, dword [esi + 0x28]
jmp 0x45db65
mov eax, dword [esi]
lea ecx, [eax + 8]
mov dword [esi + 0x24], ecx
call fcn.0045cdd4
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 0x45d340
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 0x585a48
mov dword [esi + 4], edi
push edi
call fcn.0045e1f4
pop ecx
pop edx
cmp byte [eax + 0x14], 0
je 0x45d340
xor ecx, ecx
cmp dword [eax], 0x80000000
je 0x45d31b
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
movsd xmm0, qword [esi + 0x50]
mov byte [esi + 0xb], 1
call fcn.0045e20f
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.0045b321
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
add dword [esi + 0x48], eax
add ecx, 4
jmp 0x45d2c5
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.0045e20f
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.0045cee8
add esp, 0x10
cmp dword [esi + 0x30], 0x3b9aca03
jne 0x45d477
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x68]
mov byte [eax], 4
call fcn.004f1f91
jmp 0x45d64a
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.00428189
pop eax
pop ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x20], edi
cmp byte [eax], 4
jne 0x45d673
mov ebx, edi
mov edi, dword [esi]
jmp 0x45d682
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 0x45d41c
mov eax, dword [esi + 0x28]
cmp al, 4
jne 0x45dba6
mov ebx, edi
sub ebx, 1
jb 0x45d8af
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 0x45d447
mov eax, dword [esi + 0x28]
cmp al, 4
jne 0x45dba6
cmp edi, 1
mov edi, ebx
je 0x45d41c
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 0x45d469
mov edi, ebx
jmp 0x45d41c
mov eax, dword [esi + 0x28]
mov edi, ebx
cmp al, 4
je 0x45d41c
jmp 0x45dba6
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.0045cfe5
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.00459f0e
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.005282a0
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 0x45d587
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 0x585a58
push eax
call fcn.0045e1f4
mov ecx, dword [esi + 4]
add esp, 8
add ecx, 4
cmp dword [eax], 0x80000000
je 0x45d529
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.0045e2a5
mov ecx, dword [esi + 4]
add esp, 4
jmp 0x45d529
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.0045d116
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.0045d11c
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 0x45d605
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.0045b15b
mov edi, dword [esi + 0xc]
jmp 0x45d5d9
mov eax, dword [esi + 0x50]
lea ecx, [esi + 0x28]
mov dword [ecx + 8], eax
call fcn.0045e365
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
cmp eax, 3
je 0x45d621
test eax, eax
jne 0x45d631
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.0045aee6
movzx edx, byte [esi + 0x5c]
mov ecx, dword [esi]
or dword [esi + 0xe8], 0xffffffff
call fcn.00462f94
jmp 0x45dbb1
mov eax, dword [esi + 0x28]
mov ebx, edi
mov edi, dword [esi]
cmp al, 4
jne 0x45dba6
mov eax, ebx
sub eax, 1
mov dword [esi + 4], eax
jb 0x45d87d
mov al, byte [edi + 4]
or dword [esi + 0xe8], 0xffffffff
test al, al
je 0x45d6d2
mov edx, dword [edi]
lea edi, [esi + 0xa0]
mov ecx, edi
push 5
push str._re_2KC:UsersMark.cargo_registry_srcindex.crates.io_6f17d22bba15001fconsole_0.15.7_src_term.rs
call fcn.00427a33
pop eax
pop ecx
cmp byte [edi], 4
je 0x45d77d
mov eax, dword [esi + 0xa0]
cmp al, 4
je 0x45d77d
jmp 0x45de01
mov ecx, dword [edi]
call fcn.004278f4
lea edi, [esi + 0x28]
mov edx, eax
mov ecx, edi
call fcn.00428132
cmp dword [edi], 0
je 0x45d77d
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 0x45d682
cmp byte [edi + 4], 0
je 0x45d81d
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.00429950
mov dword [edx], 0x53edb4
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.00407945
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.00427a33
pop eax
pop ecx
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0xc]
call fcn.00459b3c
cmp byte [esi + 0x7c], 4
mov edi, dword [esi]
je 0x45d862
mov eax, dword [esi + 0x7c]
mov ebx, dword [esi + 4]
cmp al, 4
je 0x45d682
jmp 0x45de50
mov ecx, dword [edi]
call fcn.004278f4
lea edi, [esi + 0x28]
mov edx, eax
mov ecx, edi
call fcn.00428132
cmp dword [edi], 0
je 0x45d860
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.00428299
pop eax
pop ecx
cmp byte [edi], 4
je 0x45d860
mov eax, dword [esi + 0xa0]
cmp al, 4
jne 0x45d86a
mov edi, dword [esi]
mov ebx, dword [esi + 4]
jmp 0x45d682
mov ecx, dword [esi + 0xa4]
mov edi, dword [esi]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], ecx
jmp 0x45d80a
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.00428189
pop eax
pop ecx
cmp byte [edi], 4
jne 0x45d8d3
mov edi, dword [esi]
mov ebx, dword [esi + 0x20]
jmp 0x45d8e6
mov eax, dword [esi + 0x28]
mov edi, dword [esi]
mov edx, dword [esi + 0x14]
jmp 0x45d8de
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 0x45db5f
mov edi, dword [esi + 0xc]
jmp 0x45db69
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x14]
mov edi, dword [esi]
mov ebx, dword [esi + 0x20]
cmp al, 4
jne 0x45dacb
sub ebx, dword [esi + 0x48]
mov eax, 0
jbe 0x45d92b
mov eax, dword [esi + 0x70]
cmp byte [eax + 0x11], 0
mov eax, 0
je 0x45d92b
lea edi, [esi + 0x28]
mov dword [esi + 0x20], ebx
sub ebx, 1
jb 0x45d926
mov eax, dword [esi]
mov ecx, edi
mov edx, dword [eax]
call fcn.00427ff0
cmp byte [esi + 0x28], 4
je 0x45d904
mov eax, dword [esi + 0x28]
cmp al, 4
je 0x45d904
jmp 0x45dba6
mov eax, dword [esi + 0x20]
mov edi, dword [esi]
mov ecx, dword [edi]
mov dword [esi + 0x60], eax
call fcn.0045e1a1
mov ecx, dword [edi]
movzx eax, ax
mov dword [esi + 0x50], eax
call fcn.0045e1a1
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 0x45da87
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
call fcn.0042839a
cmp dword [edi + 8], 0
mov ebx, 1
mov dword [esi + 0x20], eax
je 0x45da05
movd xmm0, eax
por xmm0, xmmword [0x53b570]
subsd xmm0, qword [0x53b500]
divsd xmm0, qword [esi + 0x90]
sub esp, 8
movsd qword [esp], xmm0
call fcn.0052bc30
pop eax
pop ecx
fstp qword [esi + 0xc8]
xorpd xmm1, xmm1
movsd xmm0, qword [esi + 0xc8]
maxsd xmm0, xmm1
minsd xmm0, qword [0x53b580]
cvttsd2si eax, xmm0
subsd xmm0, qword [0x53b588]
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 0x45da87
cmp dword [esi + 4], 0
je 0x45da30
mov eax, dword [esi]
lea ecx, [esi + 0x28]
mov edx, dword [eax]
call fcn.00427ff0
cmp byte [esi + 0x28], 4
je 0x45da30
mov eax, dword [esi + 0x28]
cmp al, 4
jne 0x45dba6
mov eax, dword [esi]
lea ecx, [esi + 0x28]
mov edx, dword [eax]
push dword [edi + 8]
push dword [edi + 4]
call fcn.00427a33
pop eax
pop ecx
cmp byte [esi + 0x28], 4
je 0x45da55
mov eax, dword [esi + 0x28]
cmp al, 4
jne 0x45dba6
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 0x45d979
lea edi, [esi + 0x28]
push 0x20
pop edx
mov ecx, edi
push dword [esi + 0x18]
call fcn.00421d20
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.00427a33
pop eax
pop ecx
cmp byte [esi + 0xa0], 4
mov edx, dword [esi + 0x14]
jne 0x45dad3
mov edi, dword [esi]
jmp 0x45dae3
mov ecx, dword [esi + 0x2c]
jmp 0x45dbac
mov eax, dword [esi + 0xa0]
mov edi, dword [esi]
cmp al, 4
jne 0x45ddd3
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 4]
call fcn.00459b3c
mov edx, dword [edi]
cmp dword [edx + 8], 0
je 0x45de3a
or dword [esi + 0xe8], 0xffffffff
lea edi, [esi + 0x28]
add edx, 0xc
mov ecx, edi
call fcn.00426de8
mov ecx, edi
mov edx, 0x53ee88
call fcn.00427f56
mov ecx, eax
mov eax, dword [eax + 0x10]
test eax, eax
je 0x45de2b
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.00427ae6
pop eax
pop ecx
cmp byte [esi + 0x28], 4
jne 0x45de19
mov ecx, dword [esi + 4]
mov dl, byte [esi + 0x18]
jmp 0x45de27
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0xc]
cmp al, 4
jne 0x45dba6
sub edi, dword [esi + 0x50]
mov eax, 0
jbe 0x45dbcb
cmp byte [ebx + 0x11], 0
je 0x45dbcb
mov ebx, edi
lea edi, [esi + 0x28]
mov dword [esi + 0xc], ebx
sub ebx, 1
jb 0x45dbc5
push 0
push 0x5b9dc0
push dword [esi]
push edi
mov eax, dword [esi + 4]
call dword [eax + 0x30]
add esp, 0x10
cmp byte [esi + 0x28], 4
je 0x45db81
mov eax, dword [esi + 0x28]
cmp al, 4
je 0x45db81
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 0x45dd3b
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
call fcn.0042839a
cmp dword [ebx + 8], 0
mov edi, 1
mov dword [esi + 0x48], eax
je 0x45dca7
movd xmm0, eax
por xmm0, xmmword [0x53b570]
subsd xmm0, qword [0x53b500]
divsd xmm0, qword [esi + 0x70]
sub esp, 8
movsd qword [esp], xmm0
call fcn.0052bc30
pop eax
pop ecx
fstp qword [esi + 0xd0]
xorpd xmm1, xmm1
movsd xmm0, qword [esi + 0xd0]
maxsd xmm0, xmm1
minsd xmm0, qword [0x53b580]
cvttsd2si eax, xmm0
subsd xmm0, qword [0x53b588]
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 0x45dd3b
cmp dword [esi + 0xc], 0
je 0x45dce0
push 0
push 0x5b9dc0
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 0x45dce0
mov eax, dword [esi + 0x28]
cmp al, 4
jne 0x45dba6
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 0x45dd06
mov eax, dword [esi + 0x28]
cmp al, 4
jne 0x45dba6
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 0x45dc1e
lea edi, [esi + 0x28]
push 0x20
pop edx
mov ecx, edi
push dword [esi + 0x24]
call fcn.00421d20
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 0x45dd8c
mov eax, dword [esi + 0xa0]
cmp al, 4
jne 0x45dde6
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0xc]
call fcn.00459b3c
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 0x45ddba
mov eax, dword [esi + 0x28]
cmp al, 4
jne 0x45de0c
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 0x45dbb1
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 0x45ddf7
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.00459b3c
jmp 0x45dbb1
mov ecx, dword [esi + 0xa4]
jmp 0x45dba9
mov ecx, dword [esi + 0x2c]
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x45dbb1
mov ebx, dword [esi + 0x28]
mov ecx, dword [esi + 4]
mov dl, byte [esi + 0x18]
cmp bl, 4
jne 0x45de5b
and dword [ecx + 0x10], 0
or dword [esi + 0xe8], 0xffffffff
movzx edx, dl
call fcn.00427f39
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 0x45d235
mov ecx, dword [esi + 0x80]
jmp 0x45dba9
mov edi, dword [esi + 0x2c]
or dword [esi + 0xe8], 0xffffffff
movzx edx, dl
call fcn.00427f39
cmp bl, 4
je 0x45de3a
mov eax, dword [esi + 0x14]
mov dword [eax], ebx
mov dword [eax + 4], edi
jmp 0x45dbb1