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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
mov eax, dword [0x5d7008]
xor eax, esp
mov dword [esp + 0xf4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [esp + 0x60], 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 + 0x48], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], eax
sub eax, ecx
mov ecx, dword [edi + 0x64]
mov dword [esp + 0x30], eax
mov eax, ecx
mov dword [esp + 0x44], esi
mov dword [edi + 0x1b18], ecx
cmp ecx, 0xffffffff
je 0x45734d
cmp ecx, 2
jle 0x45734d
mov dword [edi + 0x1b18], 2
mov eax, 2
cmp ecx, 9
jne 0x457361
mov dword [edi + 0x1b18], 3
mov eax, 3
movzx esi, byte [edi + 0x20]
shl eax, 5
shr esi, 3
imul esi, dword [eax + 0x585b48]
cmp dword [edi + 0x1b10], esi
jge 0x4573a9
mov eax, dword [edi + 0x1b0c]
test eax, eax
je 0x45738d
push eax
call fcn.0053d63e
add esp, 4
lea eax, [esi + 1]
push eax
call fcn.0053d681
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [edi + 0x1b0c], eax
mov dword [edi + 0x1b10], esi
cmp byte [edi + 0x21], 0x18
jne 0x4573ca
mov eax, 0xff
cmp word [edi + 0x24], ax
jne 0x4573ca
cmp word [edi + 0x26], ax
jne 0x4573ca
cmp word [edi + 0x28], ax
jne 0x4573ca
mov al, 1
jmp 0x4573cc
xor al, al
mov byte [edi + 0x1b14], al
cmp dword [edi + 0x74], 0
je 0x457a12
mov eax, dword [esp + 0x30]
imul eax, dword [esp + 0x48]
mov dword [esp + 0x60], eax
cmp eax, 0x1000
jl 0x457a12
mov eax, dword [edi + 0x1b18]
mov esi, dword [esp + 0x48]
shl eax, 5
mov ecx, dword [eax + 0x585b4c]
cmp esi, ecx
mov eax, dword [eax + 0x585b48]
cmovg esi, ecx
cdq
idiv esi
mov edx, dword [esp + 0x40]
mov ecx, edx
mov esi, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], esi
cmp edx, dword [esp + 0x5c]
jge 0x457a00
imul eax, dword [esp + 0x48]
movsd xmm2, qword [0x5cf010]
movsd xmm3, qword [0x5ceff8]
movsd xmm4, qword [0x5cf050]
mov dword [esp + 0x74], eax
mov eax, ecx
sub eax, edx
cmp eax, esi
jl 0x4574d3
add esi, edx
lea eax, [esp + 0xa0]
push esi
push dword [esp + 0x38]
push edx
push dword [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esp + 0xa0]
mov ecx, edi
push eax
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x28]
call fcn.00458070
mov ecx, dword [esp + 0x28]
push eax
push dword [esp + 0x28]
call fcn.00489710
mov eax, dword [esp + 0x30]
mov edx, esi
sub eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x74]
sub dword [esp + 0x60], ecx
movsd xmm2, qword [0x5cf010]
movsd xmm3, qword [0x5ceff8]
movsd xmm4, qword [0x5cf050]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
jmp 0x4574d7
mov eax, dword [esp + 0x30]
lea edi, [ecx + 0x10]
lea esi, [eax + edx]
mov dword [esp + 0x88], edi
cmp edi, esi
mov dword [esp + 0x8c], esi
mov edi, dword [esp + 0x18]
jg 0x4574fd
mov dword [esp + 0x6c], 0x10
jmp 0x457505
sub eax, ecx
add eax, edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x44]
mov esi, eax
mov dword [esp + 0x14], esi
cmp eax, dword [esp + 0x34]
jge 0x4577b9
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
lea edx, [esi + 0x10]
cmp edx, dword [esp + 0x34]
mov dword [esp + 0x84], edx
mov edx, 0x10
push 0
cmovle eax, edx
lea edx, [esp + 0x5c]
push edx
push dword [esp + 0x74]
push eax
push ecx
push esi
push dword [esp + 0x34]
mov ecx, edi
call fcn.00457f40
test al, al
je 0x457791
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x70], 3
jne 0x4575eb
cmp dword [edx + 0x6c], 0xffffffff
je 0x4575eb
mov ecx, dword [esp + 0x58]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movd xmm1, eax
shr eax, 0x1f
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x5cf170]
mov eax, ecx
shr eax, 8
movzx eax, al
mulsd xmm1, qword [0x5cf000]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5cf170]
movzx eax, cl
mulsd xmm0, xmm2
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5cf170]
mulsd xmm0, xmm3
addsd xmm1, xmm0
addsd xmm1, xmm4
cvttsd2si eax, xmm1
imul eax, eax, 0x10101
mov dword [esp + 0x58], eax
jmp 0x4575ef
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x2c], 0
add eax, dword [esp + 0x40]
mov dword [esp + 0x50], eax
xor eax, eax
mov edx, dword [esp + 0x50]
add edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x5c], edx
cmp ecx, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x38], edi
mov dword [esp + 0x54], ecx
jge 0x457771
nop dword [eax]
lea esi, [ecx + 0x10]
mov dword [esp + 0x80], eax
cmp esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x78], esi
mov esi, 0x10
cmovle eax, esi
mov esi, edi
cmp edi, 0x10
mov dword [esp + 0x68], eax
push 1
mov edi, 0x10
cmovg esi, edi
lea edi, [esp + 0x74]
push edi
mov edi, dword [esp + 0x1c]
push eax
push esi
push ecx
push edi
push dword [esp + 0x34]
mov ecx, edx
call fcn.00457f40
test al, al
je 0x457765
mov edx, dword [esp + 0x38]
add edi, esi
mov esi, dword [esp + 0x14]
lea ecx, [edx + esi]
cmp edi, ecx
jge 0x4576ff
nop word [eax + eax]
lea eax, [edi + 0x10]
cmp eax, ecx
jg 0x4576be
mov esi, 0x10
jmp 0x4576c6
mov esi, edx
sub esi, edi
add esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x70]
push 1
push eax
push dword [esp + 0x70]
push esi
push dword [esp + 0x64]
push edi
push dword [esp + 0x34]
call fcn.00457f40
test al, al
je 0x4576fb
mov edx, dword [esp + 0x38]
add edi, esi
mov esi, dword [esp + 0x14]
lea ecx, [edx + esi]
cmp edi, ecx
jl 0x4576b0
jmp 0x4576ff
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x68]
sub edi, esi
sub eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x78]
add ecx, eax
mov eax, dword [esp + 0x10]
mov edx, ecx
imul eax, dword [esp + 0x2c]
sub dword [esp + 0x50], 0x10
imul edx, edi
mov dword [esp + 0x54], esi
mov esi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x38], edi
cmp edx, eax
mov edx, dword [esp + 0x18]
mov eax, ecx
mov ecx, dword [esp + 0x54]
cmovle esi, dword [esp + 0x7c]
cmovle eax, dword [esp + 0x80]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
cmp ecx, dword [esp + 0x5c]
jl 0x457640
jmp 0x45776d
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
imul eax, ecx
mov dword [esp + 0x2c], ecx
cmp eax, dword [esp + 0x60]
je 0x4577da
cmp eax, 0x800
jge 0x4577da
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x84]
sub eax, 0x10
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], esi
mov dword [esp + 0x3c], eax
cmp esi, dword [esp + 0x34]
jl 0x457521
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x20], ecx
cmp ecx, dword [esp + 0x8c]
jge 0x457a00
mov esi, dword [esp + 0x4c]
jmp 0x457450
mov eax, dword [esp + 0x20]
mov ecx, edx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x44]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x68]
push dword [esp + 0x44]
push dword [esp + 0x60]
push esi
push dword [esp + 0x64]
push dword [esp + 0x40]
call fcn.00457a40
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0xb8]
push edi
push dword [esp + 0x38]
push esi
push dword [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [esp + 0x38]
lea eax, [esp + 0xc8]
add esi, edi
push esi
push dword [esp + 0x14]
push edi
push dword [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x2c]
push esi
push dword [esp + 0x38]
push edi
push eax
lea eax, [esp + 0xe8]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x40]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0xf0]
push esi
push dword [esp + 0x50]
mov esi, dword [sym.imp.USER32.dll_SetRect]
push eax
call esi
xor edi, edi
mov dword [esp + 0x4c], edi
nop dword [eax]
cmp edi, 2
jne 0x457983
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
lea eax, [edi + 1]
push eax
lea eax, [ecx + 1]
push eax
push edi
push ecx
lea eax, [esp + 0xb0]
push eax
call esi
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x90]
movaps xmm0, xmmword [esp + 0xa0]
push ecx
mov ecx, esi
movaps xmmword [esp + 0x94], xmm0
push dword [esi + 0x1b0c]
mov eax, dword [esi]
push dword [esp + 0x24]
call dword [eax + 0x14]
push dword [esp + 0x38]
mov ecx, esi
push dword [esp + 0x30]
push edi
push dword [esp + 0x1c]
call fcn.00458690
cmp byte [esi + 0x1b14], 0
je 0x457916
mov edi, 3
jmp 0x45791d
movzx edi, byte [esi + 0x20]
shr edi, 3
mov ecx, dword [esi + 0x1b08]
mov eax, dword [esi + 0x1b04]
push edi
mov byte [ecx + eax], 0x80
push dword [esi + 0x1b0c]
inc dword [esi + 0x1b08]
push dword [esp + 0x2c]
call fcn.00540f80
mov ecx, dword [esp + 0x34]
add esp, 0xc
push dword [esi + 0x1b08]
push dword [esi + 0x1b04]
call fcn.00489710
mov ecx, dword [esp + 0x28]
push edi
push dword [esp + 0x28]
call fcn.00489710
mov ecx, dword [esi + 0x1b08]
lea eax, [ecx - 0xc]
add eax, edi
add dword [esi + 0x5c], eax
lea eax, [ecx + edi]
add dword [esi + 0x60], eax
mov edi, dword [esp + 0x4c]
jmp 0x457987
mov esi, dword [esp + 0x18]
mov ecx, edi
lea edx, [esp + 0xb8]
shl ecx, 4
add edx, ecx
mov eax, dword [edx]
cmp eax, dword [esp + ecx + 0xc0]
je 0x4579d4
mov eax, dword [esp + ecx + 0xbc]
cmp eax, dword [esp + ecx + 0xc4]
je 0x4579d4
mov eax, dword [esi]
mov ecx, esi
push edx
push dword [esp + 0x28]
push dword [esp + 0x30]
mov eax, dword [eax + 0x18]
push dword [esp + 0x28]
call eax
mov ecx, dword [esp + 0x28]
push eax
push dword [esp + 0x28]
call fcn.00489710
mov esi, dword [sym.imp.USER32.dll_SetRect]
inc edi
mov dword [esp + 0x4c], edi
cmp edi, 4
jl 0x4578a0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret 0x10
push dword [esp + 0x64]
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x28]
jmp 0x457a1f
push dword [esp + 0x64]
push dword [esp + 0x28]
push dword [esp + 0x30]
push edx
mov ecx, edi
call fcn.00458070
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret 0x10