Function at 0x45a580
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 + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 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 + 0x20], 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 0x45a60d
cmp ecx, 2
jle 0x45a60d
mov dword [edi + 0x1b18], 2
mov eax, 2
cmp ecx, 9
jne 0x45a621
mov dword [edi + 0x1b18], 3
mov eax, 3
movzx esi, byte [edi + 0x20]
shl eax, 5
shr esi, 3
imul esi, dword [eax + 0x56ab90]
cmp dword [edi + 0x1b10], esi
jge 0x45a669
mov eax, dword [edi + 0x1b0c]
test eax, eax
je 0x45a64d
push eax
call fcn.00519467
add esp, 4
lea eax, [esi + 1]
push eax
call fcn.005194aa
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [edi + 0x1b0c], eax
mov dword [edi + 0x1b10], esi
cmp byte [edi + 0x21], 0x18
jne 0x45a68a
mov eax, 0xff
cmp word [edi + 0x24], ax
jne 0x45a68a
cmp word [edi + 0x26], ax
jne 0x45a68a
cmp word [edi + 0x28], ax
jne 0x45a68a
mov al, 1
jmp 0x45a68c
xor al, al
mov byte [edi + 0x1b14], al
cmp dword [edi + 0x74], 0
je 0x45ad26
mov eax, dword [esp + 0x30]
imul eax, dword [esp + 0x44]
mov dword [esp + 0x60], eax
cmp eax, 0x1000
jl 0x45ad26
mov eax, dword [edi + 0x1b18]
mov esi, dword [esp + 0x44]
shl eax, 5
mov ecx, dword [eax + 0x56ab94]
cmp esi, ecx
mov eax, dword [eax + 0x56ab90]
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 0x45ad14
imul eax, dword [esp + 0x44]
movsd xmm2, qword [0x5a7d18]
movsd xmm3, qword [0x5a7d00]
movsd xmm4, qword [0x5a7d58]
mov dword [esp + 0x78], eax
mov eax, esi
sub eax, ecx
cmp eax, edx
jl 0x45a7ad
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 + 0x14]
push dword [esp + 0x1c]
push dword [esp + 0x2c]
call fcn.0045b380
mov edx, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [edx + 8]
cmp eax, 0xffffffff
jne 0x45a768
mov eax, dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x45a775
push eax
push ecx
push dword [esp + 0x18]
mov ecx, edx
call fcn.00484bb0
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 [0x5a7d18]
movsd xmm3, qword [0x5a7d00]
movsd xmm4, qword [0x5a7d58]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], eax
jmp 0x45a7b1
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 0x45a7d7
mov dword [esp + 0x70], 0x10
jmp 0x45a7df
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 0x45aa82
mov eax, dword [esp + 0x44]
mov dword [esp + 0x64], eax
nop dword [eax + 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 + 0x38]
mov ecx, edi
call fcn.0045b250
test al, al
je 0x45aa5b
cmp dword [edi + 0x70], 3
jne 0x45a8ca
cmp dword [edi + 0x6c], 0xffffffff
je 0x45a8ca
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 + 0x5a7e70]
mov eax, ecx
shr eax, 8
movzx eax, al
mulsd xmm1, qword [0x5a7d08]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5a7e70]
movzx eax, cl
mulsd xmm0, xmm2
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5a7e70]
mulsd xmm0, xmm3
addsd xmm1, xmm0
addsd xmm1, xmm4
cvttsd2si eax, xmm1
imul eax, eax, 0x10101
mov dword [esp + 0x54], eax
jmp 0x45a8ce
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 + 0x18], 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 + 0x18]
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4c], esi
jge 0x45aa3b
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 + 0x38]
call fcn.0045b250
test al, al
je 0x45aa37
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
lea edi, [esi + eax]
lea ecx, [edx + eax]
cmp edi, ecx
jge 0x45a9cf
lea eax, [edi + 0x10]
cmp eax, ecx
jg 0x45a994
mov esi, 0x10
jmp 0x45a99c
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 + 0x28]
push edi
push dword [esp + 0x38]
call fcn.0045b250
test al, al
mov eax, dword [esp + 0x28]
je 0x45a9cf
mov edx, dword [esp + 0x4c]
add edi, esi
lea ecx, [edx + eax]
cmp edi, ecx
jl 0x45a986
mov ecx, dword [esp + 0x18]
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 + 0x1c]
mov edx, ecx
imul eax, dword [esp + 0x24]
imul edx, esi
mov dword [esp + 0x18], edi
mov edi, esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x4c], esi
cmp edx, eax
mov edx, dword [esp + 0x38]
mov eax, ecx
mov ecx, dword [esp + 0x18]
cmovle edi, dword [esp + 0x7c]
cmovle eax, dword [esp + 0x80]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
cmp ecx, dword [esp + 0x58]
jl 0x45a920
jmp 0x45aa3b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], eax
imul eax, ecx
mov dword [esp + 0x24], ecx
cmp eax, dword [esp + 0x60]
je 0x45aaa2
cmp eax, 0x800
jge 0x45aaa2
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 0x45a800
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x2c], esi
cmp esi, edx
jge 0x45ad14
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
jmp 0x45a710
mov eax, dword [esp + 0x28]
mov ecx, edi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x64]
push dword [esp + 0x44]
push dword [esp + 0x5c]
push esi
push dword [esp + 0x60]
push dword [esp + 0x44]
call fcn.0045ad50
push dword [esp + 0x1c]
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 + 0x1c]
mov esi, dword [esp + 0x38]
add esi, eax
push esi
push dword [esp + 0x1c]
push eax
push dword [esp + 0x4c]
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x24]
push esi
push dword [esp + 0x38]
push dword [esp + 0x24]
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 0x45ac8c
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
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 + 0x28]
call dword [eax + 0x14]
push dword [esp + 0x38]
mov ecx, edi
push dword [esp + 0x28]
push esi
push dword [esp + 0x24]
call fcn.0045b970
cmp byte [edi + 0x1b14], 0
je 0x45abf5
push 1
push dword [edi + 0x1b0c]
mov ecx, edi
call fcn.0045cde0
mov esi, 3
jmp 0x45abfc
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 + 0x18]
call fcn.0051aed0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [edi + 0x1b08]
mov edx, dword [edi + 0x1b04]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
jne 0x45ac49
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x45ac55
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.00484bb0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x45ac69
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x45ac74
push eax
push esi
push dword [esp + 0x18]
call fcn.00484bb0
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 0x45acee
mov eax, dword [esp + ecx + 0xbc]
cmp eax, dword [esp + ecx + 0xc4]
je 0x45acee
mov eax, dword [edi]
mov ecx, edi
push edx
push dword [esp + 0x14]
push dword [esp + 0x1c]
mov eax, dword [eax + 0x18]
push dword [esp + 0x2c]
call eax
mov edx, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [edx + 8]
cmp eax, 0xffffffff
jne 0x45ace1
mov eax, dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x45acee
push eax
push ecx
push dword [esp + 0x18]
mov ecx, edx
call fcn.00484bb0
inc esi
mov dword [esp + 0x48], esi
cmp esi, 4
jl 0x45ab70
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret 0x10
push dword [esp + 0x5c]
push dword [esp + 0x14]
push dword [esp + 0x1c]
push dword [esp + 0x2c]
jmp 0x45ad33
push dword [esp + 0x5c]
push dword [esp + 0x14]
push dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.0045b380
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret 0x10