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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bde3a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
cmp byte [ecx + 0xc8], 0
push ebx
push esi
push edi
mov dword [esp + 0x34], ecx
je 0x411769
xor esi, esi
cmp dword [ecx + 0x11c], esi
je 0x411769
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push str.GraphicsI
mov ecx, ebx
call dword [eax + 0x2c]
test al, al
je 0x411769
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xb8]
mov edi, eax
mov eax, dword [edi + 0x40]
add eax, 0xfffffffc
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x3c]
add eax, 0xfffffffc
mov dword [esp + 0x30], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], esi
call dword [eax + 0x3c]
shr eax, 2
push 0x34
mov esi, 0x509b60
mov dword [esp + 0x4c], eax
call fcn.0041d230
lea ecx, [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x60]
xor esi, esi
mov dword [esp + 0xac], esi
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x98]
lea eax, [eax + ecx - 4]
cmp eax, dword [esp + 0x38]
jge 0x411529
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x9c]
lea eax, [eax + edx - 4]
cmp eax, dword [esp + 0x30]
jge 0x411545
mov dword [esp + 0x30], eax
cmp ecx, esi
jle 0x41154d
mov dword [esp + 0x44], ecx
cmp edx, esi
jle 0x411555
mov dword [esp + 0x3c], edx
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call dword [eax + 0xa0]
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0x74]
add dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x78]
add dword [esp + 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x40]
cmp dword [ebx + 0x11c], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], esi
jle 0x411758
lea esi, [ebx + 0x130]
cmp byte [esi + 0x18], 0
je 0x411741
movsx edx, word [esi + 2]
add edx, dword [esp + 0x1c]
movsx eax, word [esi + 6]
add eax, dword [esp + 0x10]
lea ecx, [edx - 4]
cmp ecx, dword [esp + 0x44]
mov dword [esp + 0x18], edx
jl 0x411741
lea ecx, [eax - 4]
cmp ecx, dword [esp + 0x3c]
jl 0x411741
cmp edx, dword [esp + 0x38]
jg 0x411741
cmp eax, dword [esp + 0x30]
jg 0x411741
movsx eax, word [esi - 0xc]
mov ebx, dword [esi - 4]
mov dword [esp + 0x40], eax
mov eax, ebx
and eax, 0xff00
shl eax, 8
mov edx, ebx
mov edi, 0xff
and edx, edi
or eax, edx
cdq
mov dword [esp + 0x28], eax
mov eax, ebx
sar eax, 0x10
and eax, edi
mov edi, dword [esp + 0x28]
or eax, 0xff0000
mov dword [esp + 0x20], edx
cdq
xor edx, edx
or edi, edx
mov edx, dword [esp + 0x20]
or edx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x54], ebx
mov ebx, dword [eax + 0x120]
mov eax, dword [esp + 0x48]
imul ecx, eax
shl ebx, 6
add ecx, dword [esp + 0x18]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x58], edi
lea edi, [edx + ecx*4 - 0x10]
lea eax, [eax*4 - 0x20]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], 8
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
dec dword [esp + 0x20]
add eax, 8
cmp eax, 0x35
mov dword [esp + 0x18], 8
jl 0x411691
push 0x35
cdq
pop ecx
idiv ecx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx*4 + 0x509278]
mov cl, byte [ecx + 0x50923c]
dec dword [esp + 0x18]
sar eax, cl
inc ebx
inc dword [esp + 0x14]
cmp dword [esp + 0x40], 0x40
mov dword [esp + 0x28], eax
jge 0x4116c4
imul eax, dword [esp + 0x40]
sar eax, 6
mov dword [esp + 0x28], eax
cmp eax, 0xff
jl 0x4116d8
mov eax, dword [esp + 0x54]
or eax, 0xff000000
mov dword [edi], eax
jmp 0x411714
test eax, eax
jle 0x411714
push edi
mov edi, dword [esp + 0x28]
movq mm2, qword [esp + 0x5c]
movd mm7, dword [edi]
pxor mm5, mm5
punpcklbw mm7, mm5
psubw mm2, mm7
movd mm3, dword [esp + 0x2c]
psrlw mm3, 1
punpcklwd mm3, mm3
punpckldq mm3, mm3
pmullw mm2, mm3
psraw mm2, 7
paddw mm2, mm7
packuswb mm2, mm5
movd dword [edi], mm2
emms
pop edi
mov edi, dword [esp + 0x24]
add edi, 4
cmp dword [esp + 0x18], 0
mov dword [esp + 0x24], edi
jg 0x411691
add edi, dword [esp + 0x4c]
cmp dword [esp + 0x20], 0
mov dword [esp + 0x24], edi
jg 0x41166f
mov ebx, dword [esp + 0x34]
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
add esi, 0x28
cmp eax, dword [ebx + 0x11c]
jl 0x41159c
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], vtable.util::RectangleNM.0
call fcn.004168e0
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4