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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d86f8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x510620]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x510620]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], edi
call fcn.0045eef0
test al, al
jne 0x46b84d
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0xf8]
mov eax, dword [ebx]
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call dword [eax + 0xac]
test eax, eax
je 0x46b620
add eax, 4
jmp 0x46b622
xor eax, eax
movdqu xmm0, xmmword [eax]
lea eax, [esp + 0x3c]
push eax
movdqu xmmword [ebx + 0x60], xmm0
push dword [edi]
call dword [sym.imp.gdiplus.dll_GdipSaveGraphics]
test eax, eax
je 0x46b63f
mov dword [edi + 4], eax
mov eax, dword [ebx]
mov ecx, ebx
push str.Scrollable
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x46b722
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
xorps xmm0, xmm0
push eax
movq qword [esp + 0x38], xmm0
call dword [sym.imp.gdiplus.dll_GdipCreateRegion]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x20]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0xac]
mov byte [esp + 0x50], 1
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
inc esi
dec dword [esp + 0x24]
inc eax
dec dword [esp + 0x28]
mov ecx, dword [ebx + 0x58]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
test ecx, ecx
je 0x46b6df
lea eax, [esp + 0x10]
push eax
call fcn.0045f8a0
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sub esi, dword [esp + 0x24]
cdq
mov ecx, eax
mov eax, esi
xor ecx, edx
sub ecx, edx
cdq
push 1
push ecx
xor eax, edx
sub eax, edx
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [edi]
call dword [sym.imp.gdiplus.dll_GdipSetClipRectI]
test eax, eax
je 0x46b710
mov dword [edi + 4], eax
push dword [esp + 0x1c]
mov dword [esp + 0x24], vtable.URect.0
call dword [sym.imp.gdiplus.dll_GdipDeleteRegion]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
xorps xmm0, xmm0
push eax
movq qword [esp + 0x38], xmm0
call dword [sym.imp.gdiplus.dll_GdipCreateMatrix]
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x50], 2
push eax
mov ecx, ebx
call fcn.0045f8a0
movd xmm0, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
push 1
sub esp, 8
movss dword [esp + 4], xmm0
movd xmm0, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
push dword [esp + 0x28]
call dword [sym.imp.gdiplus.dll_GdipTranslateMatrix]
test eax, eax
cmovne esi, eax
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x1c]
push esi
push dword [edi]
call dword [sym.imp.gdiplus.dll_GdipSetWorldTransform]
test eax, eax
je 0x46b7a9
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x130]
xor edi, edi
sub eax, dword [ebx + 0x12c]
sar eax, 2
mov dword [esp + 0x10], eax
test eax, eax
jle 0x46b82f
test edi, edi
js 0x46b7e4
mov eax, dword [ebx + 0x130]
sub eax, dword [ebx + 0x12c]
sar eax, 2
cmp edi, eax
jge 0x46b7e4
mov eax, dword [ebx + 0x12c]
mov esi, dword [eax + edi*4]
jmp 0x46b7e6
xor esi, esi
mov ecx, esi
call fcn.0045eef0
test al, al
jne 0x46b824
mov ecx, esi
call fcn.0045f340
test al, al
je 0x46b824
mov eax, dword [esi]
mov ecx, esi
push dword [esp + 0x18]
call dword [eax + 0xa4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
test eax, eax
jle 0x46b824
mov edx, dword [esi]
mov ecx, esi
push eax
push dword [esp + 0x1c]
call dword [edx + 0xfc]
inc edi
cmp edi, dword [esp + 0x10]
jl 0x46b7c2
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push dword [esp + 0x3c]
push dword [ebx]
call dword [sym.imp.gdiplus.dll_GdipRestoreGraphics]
test eax, eax
je 0x46b846
mov dword [ebx + 4], eax
push esi
call dword [sym.imp.gdiplus.dll_GdipDeleteMatrix]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00494c10
mov esp, ebp
pop ebp
ret 4