Function at 0x456950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
mov eax, dword [0x5a6008]
xor eax, esp
mov dword [esp + 0xf4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [esp + 0x58], eax
push edi
mov esi, dword [eax]
mov edi, ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x34], eax
sub eax, esi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x18], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x58], eax
sub eax, ecx
mov ecx, dword [edi + 0x64]
mov dword [esp + 0x30], eax
mov eax, ecx
mov dword [esp + 0x40], esi
mov dword [edi + 0x1b18], ecx
cmp ecx, 0xffffffff
je 0x4569dd
cmp ecx, 2
jle 0x4569dd
mov dword [edi + 0x1b18], 2
mov eax, 2
cmp ecx, 9
jne 0x4569f1
mov dword [edi + 0x1b18], 3
mov eax, 3
movzx esi, byte [edi + 0x20]
shl eax, 5
shr esi, 3
imul esi, dword [eax + 0x561a88]
cmp dword [edi + 0x1b10], esi
jge 0x456a39
mov eax, dword [edi + 0x1b0c]
test eax, eax
je 0x456a1d
push eax
call fcn.00511347
add esp, 4
lea eax, [esi + 1]
push eax
call fcn.0051138a
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [edi + 0x1b0c], eax
mov dword [edi + 0x1b10], esi
cmp byte [edi + 0x21], 0x18
jne 0x456a5a
mov eax, 0xff
cmp word [edi + 0x24], ax
jne 0x456a5a
cmp word [edi + 0x26], ax
jne 0x456a5a
cmp word [edi + 0x28], ax
jne 0x456a5a
mov al, 1
jmp 0x456a5c
xor al, al
mov byte [edi + 0x1b14], al
cmp dword [edi + 0x74], 0
je 0x457095
mov eax, dword [esp + 0x30]
imul eax, dword [esp + 0x44]
mov dword [esp + 0x60], eax
cmp eax, 0x1000
jl 0x457095
mov eax, dword [edi + 0x1b18]
mov esi, dword [esp + 0x44]
shl eax, 5
mov ecx, dword [eax + 0x561a8c]
cmp esi, ecx
mov eax, dword [eax + 0x561a88]
cmovg esi, ecx
cdq
idiv esi
mov ecx, dword [esp + 0x3c]
mov esi, ecx
mov edx, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], edx
cmp ecx, dword [esp + 0x58]
jge 0x457083
imul eax, dword [esp + 0x44]
movsd xmm2, qword [0x59db08]
movsd xmm3, qword [0x59daf0]
movsd xmm4, qword [0x59db48]
mov dword [esp + 0x78], eax
mov eax, esi
sub eax, ecx
cmp eax, edx
jl 0x456b64
lea esi, [edx + ecx]
push esi
push dword [esp + 0x38]
lea eax, [esp + 0xa8]
push ecx
push dword [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esp + 0xa0]
mov ecx, edi
push eax
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x24]
call fcn.004576f0
mov ecx, dword [esp + 0x20]
push eax
push dword [esp + 0x20]
call fcn.0047d600
mov eax, dword [esp + 0x30]
mov ecx, esi
sub eax, dword [esp + 0x48]
mov edx, dword [esp + 0x78]
sub dword [esp + 0x60], edx
movsd xmm2, qword [0x59db08]
movsd xmm3, qword [0x59daf0]
movsd xmm4, qword [0x59db48]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], eax
jmp 0x456b68
mov eax, dword [esp + 0x30]
lea edi, [esi + 0x10]
lea edx, [eax + ecx]
mov dword [esp + 0x8c], edi
cmp edi, edx
mov dword [esp + 0x88], edx
mov edi, dword [esp + 0x50]
jg 0x456b8e
mov dword [esp + 0x70], 0x10
jmp 0x456b96
sub eax, esi
add eax, ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x40]
mov ecx, eax
mov dword [esp + 0x28], ecx
cmp eax, dword [esp + 0x34]
jge 0x456e32
mov eax, dword [esp + 0x44]
mov dword [esp + 0x64], eax
lea edx, [ecx + 0x10]
cmp edx, dword [esp + 0x34]
mov dword [esp + 0x84], edx
mov edx, 0x10
push 0
cmovle eax, edx
lea edx, [esp + 0x58]
push edx
push dword [esp + 0x78]
push eax
push esi
push ecx
push dword [esp + 0x30]
mov ecx, edi
call fcn.004575c0
test al, al
je 0x456e0b
cmp dword [edi + 0x70], 3
jne 0x456c78
cmp dword [edi + 0x6c], 0xffffffff
je 0x456c78
mov ecx, dword [esp + 0x54]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movd xmm1, eax
shr eax, 0x1f
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x59dc60]
mov eax, ecx
shr eax, 8
movzx eax, al
mulsd xmm1, qword [0x59daf8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x59dc60]
movzx eax, cl
mulsd xmm0, xmm2
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x59dc60]
mulsd xmm0, xmm3
addsd xmm1, xmm0
addsd xmm1, xmm4
cvttsd2si eax, xmm1
imul eax, eax, 0x10101
mov dword [esp + 0x54], eax
jmp 0x456c7c
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub edx, esi
add edx, dword [esp + 0x3c]
mov edi, ecx
mov esi, dword [esp + 0x64]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x74], eax
xor eax, eax
lea ecx, [edx + edi]
mov dword [esp + 0x38], edx
cmp edi, ecx
mov dword [esp + 0x58], ecx
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], esi
jge 0x456deb
nop word [eax + eax]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x7c], eax
lea eax, [ecx + 0x10]
mov dword [esp + 0x6c], eax
mov eax, edx
mov edx, dword [esp + 0x58]
cmp dword [esp + 0x6c], edx
mov edx, 0x10
push 1
cmovle eax, edx
cmp dword [esp + 0x50], edx
mov dword [esp + 0x6c], eax
cmovg esi, edx
lea edx, [esp + 0x78]
push edx
push eax
push esi
push ecx
push dword [esp + 0x3c]
mov ecx, edi
push dword [esp + 0x30]
call fcn.004575c0
test al, al
je 0x456de7
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
lea edi, [esi + eax]
lea ecx, [edx + eax]
cmp edi, ecx
jge 0x456d7f
lea eax, [edi + 0x10]
cmp eax, ecx
jg 0x456d44
mov esi, 0x10
jmp 0x456d4c
mov esi, edx
sub esi, edi
add esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x74]
push 1
push eax
push dword [esp + 0x70]
push esi
push dword [esp + 0x20]
push edi
push dword [esp + 0x30]
call fcn.004575c0
test al, al
mov eax, dword [esp + 0x28]
je 0x456d7f
mov edx, dword [esp + 0x4c]
add edi, esi
lea ecx, [edx + eax]
cmp edi, ecx
jl 0x456d36
mov ecx, dword [esp + 0x10]
mov esi, edi
sub dword [esp + 0x38], 0x10
sub esi, eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x6c]
add ecx, eax
mov eax, dword [esp + 0x14]
mov edx, ecx
imul eax, dword [esp + 0x24]
imul edx, esi
mov dword [esp + 0x10], edi
mov edi, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x4c], esi
cmp edx, eax
mov edx, dword [esp + 0x38]
mov eax, ecx
mov ecx, dword [esp + 0x10]
cmovle edi, dword [esp + 0x7c]
cmovle eax, dword [esp + 0x80]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x14], eax
cmp ecx, dword [esp + 0x58]
jl 0x456cd0
jmp 0x456deb
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], eax
imul eax, ecx
mov dword [esp + 0x24], ecx
cmp eax, dword [esp + 0x60]
je 0x456e52
cmp eax, 0x800
jge 0x456e52
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x84]
sub eax, 0x10
mov dword [esp + 0x28], ecx
mov dword [esp + 0x64], eax
cmp ecx, dword [esp + 0x34]
jl 0x456bb2
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x2c], esi
cmp esi, edx
jge 0x457083
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
jmp 0x456ae0
mov eax, dword [esp + 0x28]
mov ecx, edi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x64]
push dword [esp + 0x44]
push dword [esp + 0x5c]
push esi
push dword [esp + 0x60]
push dword [esp + 0x3c]
call fcn.004570c0
push dword [esp + 0x14]
lea eax, [esp + 0xbc]
push dword [esp + 0x38]
push esi
push dword [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x38]
add esi, eax
push esi
push dword [esp + 0x14]
push eax
push dword [esp + 0x4c]
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x24]
push esi
push dword [esp + 0x38]
push dword [esp + 0x1c]
push eax
lea eax, [esp + 0xe8]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x3c]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0xf0]
push esi
push dword [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor esi, esi
mov dword [esp + 0x48], esi
nop dword [eax]
cmp esi, 2
jne 0x457010
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea eax, [esi + 1]
push eax
lea eax, [ecx + 1]
push eax
push esi
push ecx
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [edi]
lea ecx, [esp + 0x90]
movaps xmm0, xmmword [esp + 0xa0]
push ecx
push dword [edi + 0x1b0c]
mov ecx, edi
movaps xmmword [esp + 0x98], xmm0
push dword [esp + 0x20]
call dword [eax + 0x14]
push dword [esp + 0x38]
mov ecx, edi
push dword [esp + 0x28]
push esi
push dword [esp + 0x1c]
call fcn.00457d10
cmp byte [edi + 0x1b14], 0
je 0x456fa5
push 1
push dword [edi + 0x1b0c]
mov ecx, edi
call fcn.00459180
mov esi, 3
jmp 0x456fac
movzx esi, byte [edi + 0x20]
shr esi, 3
mov ecx, dword [edi + 0x1b08]
mov eax, dword [edi + 0x1b04]
push esi
mov byte [ecx + eax], 0x80
push dword [edi + 0x1b0c]
inc dword [edi + 0x1b08]
push dword [esp + 0x24]
call fcn.00512db0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push dword [edi + 0x1b08]
push dword [edi + 0x1b04]
call fcn.0047d600
mov ecx, dword [esp + 0x20]
push esi
push dword [esp + 0x20]
call fcn.0047d600
mov ecx, dword [edi + 0x1b08]
lea eax, [esi - 0xc]
add eax, ecx
add dword [edi + 0x5c], eax
lea eax, [ecx + esi]
mov esi, dword [esp + 0x48]
add dword [edi + 0x60], eax
mov ecx, esi
lea edx, [esp + 0xb8]
shl ecx, 4
add edx, ecx
mov eax, dword [edx]
cmp eax, dword [esp + ecx + 0xc0]
je 0x45705d
mov eax, dword [esp + ecx + 0xbc]
cmp eax, dword [esp + ecx + 0xc4]
je 0x45705d
mov eax, dword [edi]
mov ecx, edi
push edx
push dword [esp + 0x20]
push dword [esp + 0x28]
mov eax, dword [eax + 0x18]
push dword [esp + 0x24]
call eax
mov ecx, dword [esp + 0x20]
push eax
push dword [esp + 0x20]
call fcn.0047d600
inc esi
mov dword [esp + 0x48], esi
cmp esi, 4
jl 0x456f20
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.00511339
mov esp, ebp
pop ebp
ret 0x10
push dword [esp + 0x5c]
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x24]
jmp 0x4570a2
push dword [esp + 0x5c]
push dword [esp + 0x20]
push dword [esp + 0x28]
push edx
mov ecx, edi
call fcn.004576f0
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
xor ecx, esp
call fcn.00511339
mov esp, ebp
pop ebp
ret 0x10