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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
mov eax, dword [0x5c3040]
xor eax, esp
mov dword [esp + 0xf4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [esp + 0x54], eax
push edi
mov esi, dword [eax]
mov edi, ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x28], eax
sub eax, esi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x18], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x34], eax
sub eax, ecx
mov ecx, dword [edi + 0x64]
mov dword [esp + 0x38], eax
mov eax, ecx
mov dword [esp + 0x3c], esi
mov dword [edi + 0x1b18], ecx
cmp ecx, 0xffffffff
je 0x46102d
cmp ecx, 2
jle 0x46102d
mov dword [edi + 0x1b18], 2
mov eax, 2
cmp ecx, 9
jne 0x461041
mov dword [edi + 0x1b18], 3
mov eax, 3
movzx esi, byte [edi + 0x20]
shl eax, 5
shr esi, 3
imul esi, dword [eax + 0x57a768]
cmp dword [edi + 0x1b10], esi
jge 0x461089
mov eax, dword [edi + 0x1b0c]
test eax, eax
je 0x46106d
push eax
call fcn.00524771
add esp, 4
lea eax, [esi + 1]
push eax
call fcn.005247b4
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [edi + 0x1b0c], eax
mov dword [edi + 0x1b10], esi
cmp byte [edi + 0x21], 0x18
jne 0x4610aa
mov eax, 0xff
cmp word [edi + 0x24], ax
jne 0x4610aa
cmp word [edi + 0x26], ax
jne 0x4610aa
cmp word [edi + 0x28], ax
jne 0x4610aa
mov al, 1
jmp 0x4610ac
xor al, al
mov esi, 0x1b14
mov ecx, edi
mov byte [ecx + esi], al
cmp dword [edi + 0x74], 0
je 0x4616ea
mov eax, dword [esp + 0x38]
imul eax, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
cmp eax, 0x1000
jl 0x4616ea
mov eax, dword [edi + 0x1b18]
mov esi, dword [esp + 0x40]
shl eax, 5
mov ecx, dword [eax + 0x57a76c]
cmp esi, ecx
mov eax, dword [eax + 0x57a768]
cmovg esi, ecx
cdq
idiv esi
mov ecx, dword [esp + 0x44]
mov esi, ecx
mov edx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x74], edx
cmp ecx, dword [esp + 0x34]
jge 0x4616d8
imul eax, dword [esp + 0x40]
movsd xmm2, qword [0x5b8ac0]
movsd xmm3, qword [0x5b8aa8]
movsd xmm4, qword [0x5b8b00]
mov dword [esp + 0x80], eax
mov eax, esi
sub eax, ecx
cmp eax, edx
jl 0x4611c2
lea esi, [edx + ecx]
push esi
push dword [esp + 0x2c]
lea eax, [esp + 0xa8]
push ecx
push dword [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esp + 0xa0]
mov ecx, edi
push eax
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [esp + 0x24]
call fcn.00461ce0
mov ecx, dword [esp + 0x24]
push eax
push dword [esp + 0x24]
call fcn.0048ee80
mov eax, dword [esp + 0x38]
mov ecx, esi
sub eax, dword [esp + 0x74]
mov edx, dword [esp + 0x80]
sub dword [esp + 0x5c], edx
movsd xmm2, qword [0x5b8ac0]
movsd xmm3, qword [0x5b8aa8]
movsd xmm4, qword [0x5b8b00]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x38], eax
jmp 0x4611c6
mov eax, dword [esp + 0x38]
lea edi, [esi + 0x10]
lea edx, [eax + ecx]
mov dword [esp + 0x8c], edi
cmp edi, edx
mov dword [esp + 0x34], edx
mov edi, dword [esp + 0x48]
jg 0x4611e9
mov dword [esp + 0x78], 0x10
jmp 0x4611f1
sub eax, esi
add eax, ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x3c]
mov ecx, eax
mov dword [esp + 0x10], ecx
cmp eax, dword [esp + 0x28]
jge 0x46148f
mov eax, dword [esp + 0x40]
mov dword [esp + 0x54], eax
nop dword [eax]
lea edx, [ecx + 0x10]
cmp edx, dword [esp + 0x28]
mov dword [esp + 0x88], edx
mov edx, 0x10
push 0
cmovle eax, edx
lea edx, [esp + 0x54]
push edx
push dword [esp + 0x80]
push eax
push esi
push ecx
push dword [esp + 0x30]
mov ecx, edi
call fcn.00461bb0
test al, al
je 0x46146b
cmp dword [edi + 0x70], 3
jne 0x4612dd
cmp dword [edi + 0x6c], 0xffffffff
je 0x4612dd
mov ecx, dword [esp + 0x50]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movd xmm1, eax
shr eax, 0x1f
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x5b8ce0]
mov eax, ecx
shr eax, 8
movzx eax, al
mulsd xmm1, qword [0x5b8ab0]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5b8ce0]
movzx eax, cl
mulsd xmm0, xmm2
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5b8ce0]
mulsd xmm0, xmm3
addsd xmm1, xmm0
addsd xmm1, xmm4
cvttsd2si eax, xmm1
imul eax, eax, 0x10101
mov dword [esp + 0x50], eax
jmp 0x4612e1
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
sub edx, esi
add edx, dword [esp + 0x44]
mov edi, ecx
mov esi, dword [esp + 0x54]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x7c], eax
xor eax, eax
lea ecx, [edx + edi]
mov dword [esp + 0x6c], edx
cmp edi, ecx
mov dword [esp + 0x70], ecx
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], esi
jge 0x46144b
nop word [eax + eax]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x60], eax
lea eax, [ecx + 0x10]
mov dword [esp + 0x68], eax
mov eax, edx
mov edx, dword [esp + 0x70]
cmp dword [esp + 0x68], edx
mov edx, 0x10
push 1
cmovle eax, edx
cmp dword [esp + 0x18], edx
mov dword [esp + 0x68], eax
cmovg esi, edx
lea edx, [esp + 0x80]
push edx
push eax
push esi
push ecx
push dword [esp + 0x24]
mov ecx, edi
push dword [esp + 0x30]
call fcn.00461bb0
test al, al
je 0x461447
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea edi, [esi + eax]
lea ecx, [edx + eax]
cmp edi, ecx
jge 0x4613e9
nop dword [eax]
lea eax, [edi + 0x10]
cmp eax, ecx
jg 0x4613ae
mov esi, 0x10
jmp 0x4613b6
mov esi, edx
sub esi, edi
add esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x7c]
push 1
push eax
push dword [esp + 0x6c]
push esi
push dword [esp + 0x3c]
push edi
push dword [esp + 0x30]
call fcn.00461bb0
test al, al
mov eax, dword [esp + 0x10]
je 0x4613e9
mov edx, dword [esp + 0x14]
add edi, esi
lea ecx, [edx + eax]
cmp edi, ecx
jl 0x4613a0
mov ecx, dword [esp + 0x30]
mov esi, edi
imul ecx, dword [esp + 0x4c]
sub esi, eax
mov eax, dword [esp + 0x64]
mov edi, esi
sub eax, dword [esp + 0x1c]
add eax, dword [esp + 0x2c]
mov edx, eax
mov dword [esp + 0x14], esi
imul edx, esi
cmp edx, ecx
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
cmovle edi, dword [esp + 0x60]
cmovle eax, dword [esp + 0x84]
sub edx, 0x10
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x6c], edx
cmp ecx, dword [esp + 0x70]
jl 0x461330
jmp 0x46144b
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
imul eax, ecx
mov dword [esp + 0x2c], ecx
cmp eax, dword [esp + 0x5c]
je 0x4614af
cmp eax, 0x800
jge 0x4614af
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x88]
sub eax, 0x10
mov dword [esp + 0x10], ecx
mov dword [esp + 0x54], eax
cmp ecx, dword [esp + 0x28]
jl 0x461210
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x1c], esi
cmp esi, edx
jge 0x4616d8
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x74]
jmp 0x461137
mov eax, dword [esp + 0x10]
mov ecx, edi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x60]
push dword [esp + 0x4c]
push dword [esp + 0x58]
push esi
push dword [esp + 0x5c]
push dword [esp + 0x3c]
call fcn.00461720
push dword [esp + 0x10]
lea eax, [esp + 0xbc]
push dword [esp + 0x2c]
push esi
push dword [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
add esi, eax
push esi
push dword [esp + 0x18]
push eax
push dword [esp + 0x48]
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x2c]
push esi
push dword [esp + 0x2c]
push dword [esp + 0x18]
push eax
lea eax, [esp + 0xe8]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push dword [esp + 0x34]
lea eax, [esp + 0xec]
push dword [esp + 0x2c]
push esi
push dword [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor esi, esi
mov dword [esp + 0x34], esi
cmp esi, 2
jne 0x461665
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
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 + 0x30]
mov ecx, edi
push dword [esp + 0x30]
push esi
push dword [esp + 0x20]
call fcn.00462300
mov eax, edi
mov ecx, 0x1b14
cmp byte [eax + ecx], 0
je 0x4615fa
push 1
push dword [edi + 0x1b0c]
mov ecx, edi
call fcn.00463800
mov esi, 3
jmp 0x461601
movzx esi, byte [edi + 0x20]
shr esi, 3
mov eax, dword [edi + 0x1b08]
mov ecx, dword [edi + 0x1b04]
push esi
mov byte [ecx + eax], 0x80
push dword [edi + 0x1b0c]
inc dword [edi + 0x1b08]
push dword [esp + 0x28]
call fcn.005264b0
mov ecx, dword [esp + 0x30]
add esp, 0xc
push dword [edi + 0x1b08]
push dword [edi + 0x1b04]
call fcn.0048ee80
mov ecx, dword [esp + 0x24]
push esi
push dword [esp + 0x24]
call fcn.0048ee80
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 + 0x34]
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 0x4616b2
mov eax, dword [esp + ecx + 0xbc]
cmp eax, dword [esp + ecx + 0xc4]
je 0x4616b2
mov eax, dword [edi]
mov ecx, edi
push edx
push dword [esp + 0x24]
push dword [esp + 0x2c]
mov eax, dword [eax + 0x18]
push dword [esp + 0x24]
call eax
mov ecx, dword [esp + 0x24]
push eax
push dword [esp + 0x24]
call fcn.0048ee80
inc esi
mov dword [esp + 0x34], esi
cmp esi, 4
jl 0x461571
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.00524763
mov esp, ebp
pop ebp
ret 0x10
push dword [esp + 0x58]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [esp + 0x24]
jmp 0x4616f7
push dword [esp + 0x58]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push edx
mov ecx, edi
call fcn.00461ce0
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
xor ecx, esp
call fcn.00524763
mov esp, ebp
pop ebp
ret 0x10