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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
mov eax, dword [0x5b0008]
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 0x45adad
cmp ecx, 2
jle 0x45adad
mov dword [edi + 0x1b18], 2
mov eax, 2
cmp ecx, 9
jne 0x45adc1
mov dword [edi + 0x1b18], 3
mov eax, 3
movzx esi, byte [edi + 0x20]
shl eax, 5
shr esi, 3
imul esi, dword [eax + 0x56ab50]
cmp dword [edi + 0x1b10], esi
jge 0x45ae09
mov eax, dword [edi + 0x1b0c]
test eax, eax
je 0x45aded
push eax
call fcn.005187a7
add esp, 4
lea eax, [esi + 1]
push eax
call fcn.005187ea
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [edi + 0x1b0c], eax
mov dword [edi + 0x1b10], esi
cmp byte [edi + 0x21], 0x18
jne 0x45ae2a
mov eax, 0xff
cmp word [edi + 0x24], ax
jne 0x45ae2a
cmp word [edi + 0x26], ax
jne 0x45ae2a
cmp word [edi + 0x28], ax
jne 0x45ae2a
mov al, 1
jmp 0x45ae2c
xor al, al
mov byte [edi + 0x1b14], al
cmp dword [edi + 0x74], 0
je 0x45b465
mov eax, dword [esp + 0x30]
imul eax, dword [esp + 0x44]
mov dword [esp + 0x60], eax
cmp eax, 0x1000
jl 0x45b465
mov eax, dword [edi + 0x1b18]
mov esi, dword [esp + 0x44]
shl eax, 5
mov ecx, dword [eax + 0x56ab54]
cmp esi, ecx
mov eax, dword [eax + 0x56ab50]
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 0x45b453
imul eax, dword [esp + 0x44]
movsd xmm2, qword [0x5a7c90]
movsd xmm3, qword [0x5a7c78]
movsd xmm4, qword [0x5a7cd0]
mov dword [esp + 0x78], eax
mov eax, esi
sub eax, ecx
cmp eax, edx
jl 0x45af34
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.0045bac0
mov ecx, dword [esp + 0x20]
push eax
push dword [esp + 0x20]
call fcn.00484200
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 [0x5a7c90]
movsd xmm3, qword [0x5a7c78]
movsd xmm4, qword [0x5a7cd0]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], eax
jmp 0x45af38
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 0x45af5e
mov dword [esp + 0x70], 0x10
jmp 0x45af66
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 0x45b202
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.0045b990
test al, al
je 0x45b1db
cmp dword [edi + 0x70], 3
jne 0x45b048
cmp dword [edi + 0x6c], 0xffffffff
je 0x45b048
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 + 0x5a7de0]
mov eax, ecx
shr eax, 8
movzx eax, al
mulsd xmm1, qword [0x5a7c80]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5a7de0]
movzx eax, cl
mulsd xmm0, xmm2
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5a7de0]
mulsd xmm0, xmm3
addsd xmm1, xmm0
addsd xmm1, xmm4
cvttsd2si eax, xmm1
imul eax, eax, 0x10101
mov dword [esp + 0x54], eax
jmp 0x45b04c
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 0x45b1bb
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.0045b990
test al, al
je 0x45b1b7
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
lea edi, [esi + eax]
lea ecx, [edx + eax]
cmp edi, ecx
jge 0x45b14f
lea eax, [edi + 0x10]
cmp eax, ecx
jg 0x45b114
mov esi, 0x10
jmp 0x45b11c
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.0045b990
test al, al
mov eax, dword [esp + 0x28]
je 0x45b14f
mov edx, dword [esp + 0x4c]
add edi, esi
lea ecx, [edx + eax]
cmp edi, ecx
jl 0x45b106
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 0x45b0a0
jmp 0x45b1bb
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 0x45b222
cmp eax, 0x800
jge 0x45b222
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 0x45af82
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x2c], esi
cmp esi, edx
jge 0x45b453
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
jmp 0x45aeb0
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.0045b490
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 0x45b3e0
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.0045c0e0
cmp byte [edi + 0x1b14], 0
je 0x45b375
push 1
push dword [edi + 0x1b0c]
mov ecx, edi
call fcn.0045d550
mov esi, 3
jmp 0x45b37c
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.0051a200
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push dword [edi + 0x1b08]
push dword [edi + 0x1b04]
call fcn.00484200
mov ecx, dword [esp + 0x20]
push esi
push dword [esp + 0x20]
call fcn.00484200
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 0x45b42d
mov eax, dword [esp + ecx + 0xbc]
cmp eax, dword [esp + ecx + 0xc4]
je 0x45b42d
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.00484200
inc esi
mov dword [esp + 0x48], esi
cmp esi, 4
jl 0x45b2f0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret 0x10
push dword [esp + 0x5c]
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x24]
jmp 0x45b472
push dword [esp + 0x5c]
push dword [esp + 0x20]
push dword [esp + 0x28]
push edx
mov ecx, edi
call fcn.0045bac0
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret 0x10