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

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [ecx + 4]
push esi
cmp dword [ebx + 0x28], 0
je 0x100654a3
push 1
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
lea ecx, [ebx + 0x18]
push eax
call fcn.10066a10
mov ecx, eax
call fcn.10062490
mov esi, dword [eax]
test esi, esi
je 0x10065481
mov esi, dword [esi]
mov edx, dword [eax + 8]
mov ecx, edx
mov eax, dword [esi + 8]
dec eax
shr ecx, 2
and ecx, eax
mov eax, dword [esi + 4]
and edx, 3
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + edx*4]
mov ebx, dword [eax]
mov dword [esp + 8], ebx
jmp 0x100654b1
mov ebx, dword [ebx]
mov dword [esp + 8], ebx
test ebx, ebx
je 0x100657fb
test ebx, ebx
je 0x100657fb
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x100657fb
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jne 0x100657fb
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
push ebp
push edi
mov edi, dword [esi]
mov ebp, ecx
mov eax, dword [esi + 8]
lea edx, [ecx + ecx]
sub eax, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edx
cmp eax, edx
jge 0x10065501
mov ebp, eax
sar ebp, 1
sub eax, ebp
mov dword [esp + 0x1c], eax
mov edi, dword [esi + 4]
mov esi, dword [esi + 0xc]
mov ecx, dword [esp + 0x48]
sub esi, edi
call fcn.10061880
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100ce250]
mov eax, dword [esp + 0x18]
cvtpd2ps xmm0, xmm0
test eax, eax
je 0x10065546
mov ecx, dword [eax + 4]
jmp 0x10065548
xor ecx, ecx
push 0
push 0
push 0
push 2
sub esp, 0x20
mov eax, dword [esp + 0x44]
movss dword [esp + 0x1c], xmm0
movd xmm0, ebp
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x18], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
movss dword [esp + 0xc], xmm0
movd xmm0, dword [esp + 0x80]
cvtdq2ps xmm0, xmm0
movss dword [esp + 8], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
push ecx
push dword [ebx]
call sub.gdiplus.dll_GdipDrawImageRectRect
test eax, eax
je 0x100655c1
mov dword [ebx + 4], eax
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esi + 8]
mov eax, dword [ecx]
sub ebp, dword [esi]
sub ebp, dword [esp + 0x20]
call dword [eax + 0x20]
mov dword [esp + 0x14], eax
test ebp, ebp
jle 0x100656f6
xor ecx, ecx
mov dword [esp + 0x18], ecx
lea esp, [esp]
movd xmm1, dword [esi]
cmp ebp, eax
movd xmm0, dword [esp + 0x50]
mov edi, ebp
mov ebx, dword [esi + 4]
cmovg edi, eax
mov esi, dword [esi + 0xc]
cvtdq2ps xmm0, xmm0
sub esi, ebx
cvtdq2ps xmm1, xmm1
addss xmm1, xmm0
movd xmm0, ecx
mov ecx, dword [esp + 0x4c]
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
movss dword [esp + 0x24], xmm1
call fcn.10061880
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100ce250]
mov eax, dword [esp + 0x20]
cvtpd2ps xmm0, xmm0
test eax, eax
je 0x10065661
mov ecx, dword [eax + 4]
jmp 0x10065663
xor ecx, ecx
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 2
sub esp, 0x20
movss dword [esp + 0x1c], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x18], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
movss dword [esp + 0xc], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [esp + 8], xmm0
movd xmm0, ebx
mov ebx, dword [esp + 0x40]
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x54]
movss dword [esp], xmm0
push ecx
push dword [ebx]
call sub.gdiplus.dll_GdipDrawImageRectRect
test eax, eax
je 0x100656da
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x14]
sub ebp, eax
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x44]
add ecx, eax
mov dword [esp + 0x18], ecx
test ebp, ebp
jg 0x100655f0
movd xmm0, dword [esi + 8]
movd xmm1, dword [esp + 0x50]
mov edi, dword [esi + 4]
mov esi, dword [esi + 0xc]
mov ebp, dword [esp + 0x48]
sub esi, edi
cvtdq2ps xmm0, xmm0
mov ecx, ebp
cvtdq2ps xmm1, xmm1
subss xmm0, xmm1
movss dword [esp + 0x4c], xmm0
call fcn.10061880
mov edx, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x44], eax
call dword [edx + 0x20]
sub eax, dword [esp + 0x1c]
mov ecx, ebp
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100ce250]
mov eax, dword [ebp]
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x48], xmm0
call dword [eax + 0x24]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100ce250]
mov eax, dword [esp + 0x44]
cvtpd2ps xmm0, xmm0
test eax, eax
je 0x1006577f
mov eax, dword [eax + 4]
jmp 0x10065781
xor eax, eax
movd xmm1, dword [esp + 0x50]
push 0
push 0
push 0
push 2
sub esp, 0x20
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x78]
movss dword [esp + 0x18], xmm1
mov dword [esp + 0x14], 0
movss dword [esp + 0x10], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xc], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [esp + 8], xmm1
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x7c]
movss dword [esp], xmm0
push eax
push dword [ebx]
call sub.gdiplus.dll_GdipDrawImageRectRect
pop edi
pop ebp
test eax, eax
je 0x100657f1
mov dword [ebx + 4], eax
pop esi
mov al, 1
pop ebx
add esp, 0x30
ret 0x10
pop esi
xor al, al
pop ebx
add esp, 0x30
ret 0x10