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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x102683e0]
xor eax, esp
mov dword [esp + 0x84], eax
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edx
cmp dword [edi + 0x78], 0xffffffff
je 0x1003a59d
movdqu xmm0, xmmword [edi + 4]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
movdqu xmmword [esp + 0x30], xmm0
sub eax, ecx
mov dword [esp + 0x24], 0
movd xmm0, dword [edi + 0x68]
sub eax, 2
cvtdq2pd xmm0, xmm0
movd xmm1, eax
divsd xmm0, qword [0x1023a5e8]
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
cvttsd2si eax, xmm1
sub ecx, eax
lea eax, [esp + 0x24]
push eax
inc ecx
push edx
mov dword [esp + 0x30], ecx
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov edx, dword [edi + 0x7c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
cmp edx, 0xffffffff
jne 0x1003a4b3
mov edx, dword [edi + 0x74]
cmp edx, 0xffffffff
je 0x1003a4b0
and edx, 0xffffff
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
movzx ecx, dl
push eax
or ecx, 0xffffff00
mov eax, edx
shr eax, 8
shl ecx, 8
movzx eax, al
or ecx, eax
shr edx, 0x10
shl ecx, 8
movzx eax, dl
or ecx, eax
push ecx
call dword [sym.imp.gdiplus.dll_GdipCreateSolidFill]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 4]
sub eax, ecx
mov esi, dword [esp + 0x14]
push eax
mov eax, dword [edi + 0xc]
sub eax, edx
push eax
push ecx
push edx
push esi
push dword [esp + 0x30]
call dword [sym.imp.gdiplus.dll_GdipFillRectangleI]
push esi
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
jmp 0x1003a522
mov edx, dword [edi + 0x7c]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push ecx
movzx ecx, dl
mov eax, edx
or ecx, 0xffffff00
shr eax, 8
shl ecx, 8
movzx eax, al
or ecx, eax
shr edx, 0x10
shl ecx, 8
movzx eax, dl
or ecx, eax
mov dword [esp], 0x3f800000
push ecx
call dword [sym.imp.gdiplus.dll_GdipCreatePen1]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x10]
sub eax, ecx
push eax
mov eax, dword [edi + 0xc]
sub eax, edx
push eax
push ecx
push edx
push dword [esp + 0x24]
push dword [esp + 0x30]
call dword [sym.imp.gdiplus.dll_GdipDrawRectangleI]
push dword [esp + 0x14]
call dword [sym.imp.gdiplus.dll_GdipDeletePen]
mov edx, dword [edi + 0x78]
lea eax, [esp + 0x14]
push eax
and edx, 0xffffff
mov dword [esp + 0x18], 0
movzx ecx, dl
mov eax, edx
or ecx, 0xffffff00
shr eax, 8
shl ecx, 8
movzx eax, al
or ecx, eax
shr edx, 0x10
shl ecx, 8
movzx eax, dl
or ecx, eax
push ecx
call dword [sym.imp.gdiplus.dll_GdipCreateSolidFill]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
sub eax, ecx
mov esi, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x34]
sub edx, eax
push edx
push ecx
push eax
push esi
push dword [esp + 0x30]
call dword [sym.imp.gdiplus.dll_GdipFillRectangleI]
push esi
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
push dword [esp + 0x1c]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
lea esi, [edi + 4]
jmp 0x1003a615
mov ecx, dword [edi + 0x6c]
test ecx, ecx
je 0x1003a687
cmp dword [edi + 0x70], 0
je 0x1003a687
push ecx
push 1
push 0
push ecx
lea esi, [edi + 4]
push esi
push edx
call fcn.10054240
movdqu xmm0, xmmword [esi]
mov ecx, dword [esi]
mov eax, dword [edi + 0xc]
movdqu xmmword [esp + 0x30], xmm0
sub eax, ecx
movd xmm0, dword [edi + 0x68]
sub eax, 2
cvtdq2pd xmm0, xmm0
movd xmm1, eax
divsd xmm0, qword [0x1023a5e8]
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
cvttsd2si eax, xmm1
sub ecx, eax
lea eax, [esp + 0x30]
inc ecx
push ecx
push 1
push 0
push ecx
push eax
push dword [esp + 0x34]
mov dword [esp + 0x50], ecx
mov ecx, dword [edi + 0x70]
call fcn.10054240
cmp dword [edi + 0x80], 0
je 0x1003a687
xor eax, eax
push 0x3e
push eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push eax
call fcn.101a01b0
add esp, 0xc
lea eax, [esp + 0x48]
push dword [edi + 0x68]
push 0x1022bd78
push 0xffffffffffffffff
push 0x1f
push eax
call fcn.101a197d
lea edx, [esp + 0x5c]
add esp, 0x14
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1003a655
mov eax, dword [edi + 0x3c]
sub edx, ecx
push 0x25
sar edx, 1
push edx
mov ecx, dword [eax + 0x38]
lea edx, [esp + 0x50]
push edx
push esi
push dword [edi + 0x84]
mov eax, dword [ecx]
push 0xff383838
push dword [esp + 0x38]
call dword [eax + 0xc]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret 8